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.

Digital_man , in Always

Been trying to understand why I’m like this and I’m noticing the minute the sun starts going down , I become more focused.

I think this is because the sun is no longer a massive glaring ball of gas my brain has to manage.

I can’t tell if my hypothesis has any scientific validity but it’s what I tell my managers.

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

To be fair, they probably meant “this year, you reached 915 days with us”

420stalin69 ,

You do not gotta give it to them

sbv , in Always

Alternatively, the first three panels could be answering 734 emails, 6383 slack messages, and avoiding two required trainings.

brokenlcd , in Always

I’m not sure why but i just flat out work better at night when everyone is asleep, pretty mutch all of the “last modified” time on my project files is from 10 pm to 3 am

xor ,

no distractions…
one metaphor i heard is, holding a program in your head is like building a house of cards, every time a phone rings or something breaks your concentration, you have to rebuild the house

ripcord ,
@ripcord@lemmy.world avatar

every time a phone rings or something breaks your concentration, you have to rebuild the house

Holy moley.

I guess this is why programmers generally don’t do construction.

xor ,

house of cards

Croquette ,

Some people are more diurnal, some are more nocturnal.

My productivity peak is between 8PM and 11PM, but with kids this is impossible.

CJOtheReal , in Always

Bugs come out at night the most, so its just natural to hunt them in the dark.

0x4E4F , in Revisiting code I wrote last year
@0x4E4F@sh.itjust.works avatar

I was once like “🤨… what drugs was I on when I wrote this 🤨”. Comments didn’t help, I must’ve been under the influence of something, it didn’t make any sense.

The weird thing is, it works 😂.

fidodo ,

You gotta comment what drugs you were on when you wrote the code

0x4E4F ,
@0x4E4F@sh.itjust.works avatar

Darn, forgot to do that.

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

Well, that escalated rather quickly.

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.

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

Frequent flyer?

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

More days per day

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

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... :(

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.

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!

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

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