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.

autokludge , in What you are according to you fav language
@autokludge@programming.dev avatar

Thanks nerd

wviana , in Happy New Year Coders.

I would find it funny a couple of years ago. Nowadays, it feels kind of sad.

ExperimentalGuy , in When rubber duck debugging just doesn't cut it.

So rude for not dropping the link for that duck in the post tsk tsk tsk

isti115 OP ,

Well, I’d suggest asking around your nearest toddler, that’s how I managed to borrow this one. 😀 Probably it has been inherited through several generations, that might explain it’s wisdom!

jwt , in When rubber duck debugging just doesn't cut it.

Ah typescript properties possibly undefined, eh? My advice would be to sprinkle some more question marks on your code.

mrkite ,
@mrkite@programming.dev avatar

Nah… wrap entire templates in @if statements.

umbrella , in Revisiting code I wrote last year
@umbrella@lemmy.ml avatar

Whos the fucking idiot that wro… oh it was me.

sirico , in Rust project startup kit
@sirico@feddit.uk avatar

Let me on the Linux kernel irq I can redo the whole thing!

bjoern_tantau , in Rust project startup kit
@bjoern_tantau@swg-empire.de avatar

How about a federated link aggregator?

pineapplelover ,

Didn’t know Lemmy was written in Rust.

Edit: yep, it is github.com/LemmyNet/lemmy

Yoo it uses AGPL v3 too. That’s pretty cool. Love to see it

hypnotic_nerd , in Rust project startup kit
@hypnotic_nerd@programming.dev avatar

Very small projects 😂 after mastering it try building whooping to-do app in rust!

Sheeple , in When you forget to set a boundary conditions in your logic
@Sheeple@lemmy.world avatar

It’s cryptocurrency. What did you expect. THAT garbage is bound to be poorly coded.

Norgur , in Rust project startup kit

So I watched a few guides and did all that... what now? Would you think a shopping list app is doable for my knowledge after this? It looks really hard compared to NorgurOS... :(

rimu , in Revisiting code I wrote last year
@rimu@piefed.social avatar

Writing really good comments is an under-appreciated skill.

lurch ,

Even though comments are very helpful, often it’s even enough to name variables and methods/functions really good. At least do that. You don’t want i, j and value. Believe me. You want rowCount, colCount and deliveryOption instead. You just may not know it now, but you will, when it has to be changed in a few months.

aksdb ,

Where comments are useful most is in explaining why the implementation is as it is. Otherwise smart ass (your future self) will come along, rewrite it just to realize there was indeed a reason for the former implementation.

loutr ,
@loutr@sh.itjust.works avatar

Comments are good when you’re doing something weird to handle an edge case or something. But yeah most of the time clear variable names, and extracting complicated code to a dedicated and clearly named function, are enough.

There are only two hard things in Computer Science: cache invalidation and naming things.

Phil Karlton

MonkderZweite ,

// don’t know anymore, just leave this block alone

9point6 , in When you forget to set a boundary conditions in your logic

More days per day

bleistift2 , in When you forget to set a boundary conditions in your logic

Frequent flyer?

lurch , in When you forget to set a boundary conditions in your logic

Did you live on a very fast spaceship maybe?

… or did you travel back to the start of 2023 multiple times, trying to fix the world? It would explain a lot of things.

0x4E4F , in Rust project startup kit
@0x4E4F@sh.itjust.works avatar

Well, that escalated rather quickly.

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