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.

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.

CJOtheReal , in Always

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

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.

sbv , in Always

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

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

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.

HiddenLayer5 , in Rust project startup kit

For people who don’t know, there is already a fully Rust OS: www.redox-os.org

Microkernel too which is pretty cool.

rambling_lunatic ,

IIRC the filesystem was literally just a text file.

spez ,

I have heard about Redox. What’s the difference between a microkernel and a kernel? Does redox use the linux kernel? Or has the guy written that in rust too?

vrighter ,

lots and lots more IPC. So lots and lots of context switches. So worse performance

dukk ,

Well, think microkernels as the bare minimum. They give you just enough to write your own OS on top of that: only the bare essentials run in kernel space, whilst everything else runs in user space and has to communicate with the kernel. Compare this to a monolithic kernel, like the Linux kernel: here, the whole operating system is run in kernel space, which means that data doesn’t need to be moved between user and kernel space: this makes the OS faster, but at the cost of modularity. Redox doesn’t use the Linux kernel, it uses its own microkernel written in Rust.

Edit: A good example would be driver. In a microkernel, these run separately from the kernel and interact with it when needed. In a monolithic kernel, these drivers would be included in the kernel itself. They both have their pros and cons: if you’re interested, feel free to look it up.

spez ,

thanks for the explanation! I was thought it had something to do with linux since the lead dev works for System76.

dukk ,

No problem! Actually, System76 is currently working on rewriting the COSMIC desktop in Rust (or really, just writing a new DE in Rust). It’s a pretty ambitious project that should hopefully get released some time this year. I wouldn’t be surprised if the lead redox dev was working on it too: low-level Rust knowledge is exactly what they need.

spez ,

Yeah, I am waiting for a new blog post from them of that.

Rom , in Rust project startup kit
@Rom@hexbear.net avatar

Small science projects:

  • Baking soda and vinegar volcano
  • Moon landing
  • Splitting the atom
dukk ,

I love how simple and small scale splitting an atom sounds. Then you get to doing it…

jasory ,

Splitting individual atoms isn’t that difficult, you just need a neutron supply and some material (paraffin wax works) to slow them down and it will eventually happen at least with uranium. Doing it reliably and efficiently is a much harder problem.

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

Maybe they meant your account is 915 days old as of this year?

Username ,

I think that’s fairly obvious with the smaller text and context.

blackn1ght , in Always

This isn’t my experience. I’m way more focused in the morning and then it’s all downhill after lunch. By the time it’s the evening I have zero motivation to do any code.

oce ,
@oce@jlai.lu avatar

My best focus is before lunch and before the end of the day.

CodingCarpenter ,

I’m the opposite I’m useless until after lunch

weird_nugget ,

Jokes on you, I’m useless all the time

OttoVonNoob , in Always

As a hobbyist, daughter goes to bed I start reading and experimenting.

HiddenLayer5 , in Always

Coding at night with the lights off makes you feel like one of the cool movie hackers.

lseif , in Always

visual studio finished starting

GnomeKat , in Always
@GnomeKat@lemmy.blahaj.zone avatar

ITT: a lot of undiagnosed sensory issues

oce , in Always
@oce@jlai.lu avatar

I think some of it is the mental load expectation to go back to a difficult process. I find using genAI to start the task allows the load to come more progressively.

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