There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

DeltaTangoLima , in Hacking
@DeltaTangoLima@reddrefuge.com avatar

One show I watched where the genius “tech” girl told the hero she’d just “hacked the open source TCP port”.

mvee , in Too close to home

I’m gonna have to borrow this book

HeavyRust ,
@HeavyRust@lemm.ee avatar

Me too. I also want to make some changes to it at the same time.

mvee ,

Better apply for a mutable library card now before someone else does

savvywolf , in How it feels to learn JS in ~~2016~~ 2023
@savvywolf@pawb.social avatar

I stepped out of webdev like 5 years ago. Now every time I try to get back into things to work on an open source project or whatever I just give up because I do not understand things.

Everything seems to be based on React which is some kind of magic templating library that does everything? And also dynamically updates thing in response to changes and talks to the server?

I much prefer the days of just using vanilla js to manipulate a DOM and talk to a well defined API.

gornius ,

The thing is, they look like too much for a simple app with near none interactive elements.

But once app starts growing, concepts like reusable components, reactivity and state management become such an important tool.

Imagine tracking shopping cart’s total value. With these frameworks it’s just one store containing total value, exposing the value as reactive state. Once the value changes, all components using directly or indirectly that value update immediately. In vanilla you would have to keep track of every instance where that value is used manually.

Additionally, if you decide keeping total value of cart in frontend is stupid (because it is), you just modify your store to provide only readonly value, and create setters that require you to pass item or item id. Then that setter would hit up backend keeping your cart’s total value, add an item, and backend would return new total, which would now be set as that store’s new total value.

These frameworks are kind of SOLID principles applied to chaotic world of user interfaces.

Beanie , in Program in C [0:52]

Haha I’ve already watched that video countless times

Edit: dammit, they cut off the last second of the video where there’s a segfault :(

KaeruCT , in Creating a password in 2023 be like

My bank requires your password to contain NO vowels. I always forget when I update the password (forced to every 3 months) and the error never mentions it.

zarp86 ,

I’m struggling to think why this would be a thing. The only guess I have is someone was told to enforce “no dictionary words in a password” and saw that as an ‘easier’ way to implement?

roofuskit , in Creating a password in 2023 be like
@roofuskit@kbin.social avatar

Nothing enrages me more than a password character limit. Thank you for making sure my password is LESS secure with your idiotic requirements based on security recommendations that are at least a decade old.

darcy ,
@darcy@sh.itjust.works avatar

banks using EXACTLY 8 character passwords 💀 (srsly)

stevecrox , in Inm looking at you Typescript dev
@stevecrox@kbin.social avatar

I am currently teaching python and JavaScript devs Typescript. Everytime they hit a problem they switch to any

Sigh

selawdivad , in Creating a password in 2023 be like

I just use the KeePassXC password generator. :)

malloc , in Creating a password in 2023 be like

Reminds me of “The Password Game” 😂

aloso , in Creating a password in 2023 be like
Idrunkenlysignedup , in All programmer humor memes

If I had a dollar for every time I proposed spending more time on something to make it flexible and able to grow but being told to “hard code it” to save time, I’d have several dollars. If I had a dollar for every time I had to patch that 6 months later, I’d have several more dollars.

asyncrosaurus ,

You couldn’t pay me enough dollars to cover the therapy caused by having to maintain the “flexible” code that added complexity and abstraction for a single use case that was never expanded to handle more.

nulldev , in Javascript is the most popular scripting language in use today

The explanation is about as understandable as the JS code, however thanks OP, TIL

Sonotsugipaa ,
@Sonotsugipaa@lemmy.dbzer0.com avatar

Iirc this is called “JSFuck”, and it has a number of compilers

Deebster ,
@Deebster@lemmyrs.org avatar

The line breaks haven't worked, here's it formatted correctly:

Explanation: it's mostly due to how js does type conversion.

For the Ls, it's:

  • [] is an empty array
  • ![] is treated as false
  • combining a boolean with the empty array returns "false" as a string (so true + [] = "true", false + [] = "false")
  • ! + [] is treated as true
  • ! + [] + ! + [] is treated as 2 since true + true = 1 + 1 = 2
  • so you have "false"[2], which is l

for the o it's:

  • [] is an empty array
  • [] + {} returns "[object Object]" as a string ({} + [] returns 0)
  • ![] is false
  • !![] is true
  • +!![] casts it to an integer
  • so that part is "[object Object]"[1], which returns "o"-
Jakylla , in ways to close vim
@Jakylla@sh.itjust.works avatar
  • Unplug the computer
  • Shut the house electric safety switch down
  • Cut the electricity pole nearest to the house
  • Bomb the nearest electricity distribution post
ZILtoid1991 , in Every time
@ZILtoid1991@kbin.social avatar

I did that many times with my game engine, and every time I have had to postpone a release by at least two weeks: one week of implementing the feature, one week of debugging it. (Where can I find people who want to work on an open source game engine?)

addie , in Javascript is the most popular scripting language in use today
@addie@feddit.uk avatar

Javascript might be the most widely-used scripting language in use today, due to its browser dominance. Most popular would imply that it’s not completely despised by everyone that has to use it, which is misleading. Even TypeScript tutorials are about 50% ‘you have to understand what Javascript does wrong here’.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines