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.

colournoun , in What are variables and semicolons for actually?

Isn’t this basically how lisp works?

TheAgeOfSuperboredom ,

Yup! Also languages in the ML family and others I’m sure.

sudo , in Teenagers.

Manic episode, part 3

TheAgeOfSuperboredom , in What are variables and semicolons for actually?

Yeah, semicolons are ugly anyway and they’d ruin the beautiful expression of your code.

OpenStars ,
@OpenStars@startrek.website avatar

POV: your project manager went in an “cleaned” it all up by removing them - your (sic) welcome! 😜

dohpaz42 ,
@dohpaz42@lemmy.world avatar

On a more serious note, does rust suffer some of the same issues as JavaScript when it comes to omitting semicolons?

Deebster ,
@Deebster@programming.dev avatar

No…?

marcos ,

Do not expect to find anything like Javascript craziness on other languages. Or you’ll be severely disappointed.

FizzyOrange ,

There are plenty of languages with warts at least as bad as JavaScript’s. Bash, PHP, C, even relatively sane languages like Python still have huge issues like implicit variable declaration.

SpaceNoodle ,

JS and PHP are by themselves in a special ring of hell.

TadoTheRustacean OP ,

Bash is a bigger one. Luckily there’s nushell

jubilationtcornpone ,

<span style="color:#323232;">for (const item in items) { }
</span>

!=


<span style="color:#323232;">for (const item of items) { }
</span>
xigoi ,
@xigoi@lemmy.sdf.org avatar

Still better than


<span style="color:#323232;">for _, item in ipairs(items)
</span>
TheAgeOfSuperboredom ,

Nope. In Rust, a semicolon denotes a statement while a lack of semicolon is an expression so you can’t just omit them at will. This does lead to cool things though like if/else blocks being able to produce values if they end in an expression. But the expression type is checked so you’re less likely to make a mistake. You can see an example here: doc.rust-lang.org/rust-by-example/…/if_else.html

In JavaScript I never skip semicolons because I’ve seen those subtle bugs.

stepanzak , in No matter how smart you're, end user is smarter than you

I have no idea what am I looking at

alexdeathway , in When everyone became paranoid
@alexdeathway@programming.dev avatar

My Firefox package updates are usually slow, limiting downloads to <500kb. So, whenever the download speed used to drop, I knew Firefox released an update.

So when the XZ articles started popping up, the first thing I did was verify all sources.

programming.dev/post/12370824

makingStuffForFun , in No matter how smart you're, end user is smarter than you
@makingStuffForFun@lemmy.ml avatar

I get the feeling the meme creator is a senior dev. Putting themselves right up there. At the top.

FlaminGoku ,

Head in the clouds, no idea what’s going on?

makingStuffForFun ,
@makingStuffForFun@lemmy.ml avatar

Ahhh now I get it. Nice.

neurospice , in No matter how smart you're, end user is smarter than you

This antimeme has hurt my soul

deadbeef79000 , in No matter how smart you're, end user is smarter than you

That contraction upsets me on some base level.

photonic_sorcerer , in Teenagers.
@photonic_sorcerer@lemmy.dbzer0.com avatar

Okay so this place being coded by dumbasses is a security issue, right?

onlinepersona ,

Hey at least you’re not hosting it! And alternatives are being worked on like PyFed (PieFed?), another thing in Java, Mbin, and probably others.

Anti Commercial AI thingyCC BY-NC-SA 4.0

Batman ,

We hooked up chatgpt to do code reviews so this is no longer a problem. The Children yearn for the stack

Underwaterbob , in Hate it when that happens

Or when you have a problem that seems adjacent to another problem that many people have, but their solution doesn’t work for your niche case.

zarkanian ,
@zarkanian@sh.itjust.works avatar

This happens much more often than the other one.

Blackmist , in Hate it when that happens

No, there’s one other person, it was 14 years ago, and the only response was themselves saying “nvm, figured it out”

Mesa ,
@Mesa@programming.dev avatar

Marked as solution.

Swarfega , in Has this ever happened to you?

We looked after a cafe who had a couple of PC’s to use that gave internet access. Yes this was a while ago, way before smartphones and wifi. The PC’s had some software that allowed internet access for a set duration based on how long they had purchased. This software was managed by an NT4 Server backend.
The owner called one day to say nothing works. When I got there, NT4 has been wiped and replaced with Windows 98. Apparently one of the university student baristas was asked to help when they had an issue. The owner was trying to save money from calling us out. Fixing this mess was way pricier than whatever was wrong previously!

Traister101 , in Teenagers.

Thanks for well contributing to Lemmy but you sure are quite the annoying character. Now don’t go and abuse your newfound abilities and remove the blocking feature <3

Anticorp , in Hate it when that happens

When you Google a problem and see 15 Reddit posts asking about the same problem and all the answers are “just Google it”.

Adalast , in *Angry programmers noise getting louder and louder*

I have had to stop telling people that HTML is not a programming language. I crushed too many souls that way.

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