Programmer Humor

This magazine is not receiving updates (last activity 54 day(s) ago).

Sanctus , in Windows95Man to represent Finland in Eurovision. Linus Torvalds must be so disappointed
@Sanctus@lemmy.world avatar

Someone needs to crash it dressed as 90's Linus

SnotFlickerman ,
@SnotFlickerman@lemmy.blahaj.zone avatar

Windows 95 is quite capable of crashing itself.

reverendsteveii , in got him

rules aren't there to be enforced, they're there so that when you break them you take a second to think about why.

algernon , in got him
@algernon@lemmy.ml avatar

Sadly, that's not code Linus wrote. Nor one he merged. (It's from git, copied from rsync, committed by Junio)

riodoro1 ,

You really think someone would do that? Just go on the internet and tell lies?

ngn OP ,
@ngn@lemy.lol avatar
Epzillon ,

Isn't that from 1991 while the quote is from 1995? If we're nitpicking maybe we shouldn't time travel 🤓

lowleveldata ,

Damn it Time Patrol! You can't stop me!

avidamoeba ,
@avidamoeba@lemmy.ca avatar
  • Time Troll
metallic_z3r0 ,

I mean it was 0.01, at that point he was screwed anyway, and he fixed his program.

redcalcium ,

He wouldn't make that statement unless he experienced the horror himself.

Now, if he still does it these days...

nialv7 ,

He barely ever code these days.

rwhitisissle ,

I've heard similar from the worst first year CS students you could ever meet. People talk out their ass without the experience to back up their observations constantly. The indentation thing is a reasonable heuristic that states you are adding too much complexity at specific points in your code that suggests you should isolate core pieces of logic into discrete functions. And while that's broadly reasonable, this often has the downside of you producing code that has a lot of very small, very specific functions that are only ever invoked by other very small, very specific functions. It doesn't make your code easier to read or understand and it arguably leads to scenarios in which your code becomes very disorganized and needlessly opaque purely because you didn't want additional indentation in order to meet some kind of arbitrary formatting guideline you set for yourself. This is something that happens in any language but some languages are more susceptible to it than others. PEP8's line length limit is treated like biblical edict by your more insufferable python developers.

refalo ,

line 152 is the only thing past 3 levels and I'd say that one gets a pass.

laughterlaughter ,

Plus it shows three levels of indentation. Well... there is the extra one created by the compiler directives, but do they really count?

kinttach , in Junior Dev VS Senior Dev
@kinttach@lemm.ee avatar

Another senior dev here, one of those weirdos who likes light mode. Sometimes. VS Code’s light mode is blinding to me, and I never use it. But Nova’s is beautiful and I prefer it. It depends how well the app renders fonts and colors. The oversaturated colors used in most apps are a big problem.

poinck ,
@poinck@lemm.ee avatar

VSCode has theme support; there are light themes, that are not so bright and dark themes that aren't that dark.

I prefer a very dark gray, a very good font (Iosevka, tuned to my needs) and an appropiate font size (because wearing glasses).

I hope, I never get this senior title. It is complete BS to me. And I am glad, that my junior status is gone for good and I have a job title that does not try to tell something about my expierience!

Magister , in Junior Dev VS Senior Dev
@Magister@lemmy.world avatar

Senior dev here, and dark theme is the best, really, how could we used white as shit screens/IDE before is beyond me. Everything is dark theme here. Using dual 27" 4K (in Linux, using 120DPI for fonts), lot of spaces, readable, smooth fonts

NightAuthor ,

I live in a mid rise apartment with big beautiful windows, and light mode is easier to read in a bright ass room. And I don’t need to deprive myself of sunlight be working in a pitch black basement office, I’m depressed enough as it is.

Just explaining my situation, in a mid-lit room I could go either way. Dark room -> dark mode

evatronic ,

I don't know how other devs tolerate IDEs in the first place. Is not (neo)vim and CLI sufficient?

Magister ,
@Magister@lemmy.world avatar

I was using standard editor and cli for years, but for a couple of years now I'm using code in Linux and it's really good

joyjoy , in Junior Dev VS Senior Dev

Senior developer gets blinded by the morning sun as they code.

tetris11 ,
@tetris11@lemmy.ml avatar

Red sky in morning, developer's warning.
Red sky at night, go home and eat something.

xmunk , in canYouTakeALookAtThisDateTimeBug

If you're not using tz_database or equivalents for literally all date-time logic, if 24 or 60*60 are constants defined in your project... you're doing it fucking wrong. I don't know how many times we need to break out the idiot club, but date, time and timezones are extremely complicated - unless your business is primarily concerned with them you must use a library or service.

Do Not Reinvent This Wheel

jsomae ,

What does tz_database do? Wikipedia makes it seem like it basically converts a pair (geocoordinatr, utc time) to local time

InputZero ,

From my very basic understanding, yeah that's basically what it does. However it accounts for a whole lot more into adding or subtracting from UTC. Timezones aren't absolute, they're political. Timezones have weird rules, and history that needs to be somehow expressed in the code to get the right time. That's what's sets tz_database apart from just looking at a map and saying it's +7 UTC.

aBundleOfFerrets , in http tutorial

Everyone give it up for the fella who ran a webserver on a teapot

IHawkMike ,

I like returning 418 instead of 404 or 403 on the files the script kiddies are hunting for on my web servers. I'm sure it does nothing but I'd like to think I've wasted some of their time at least once.

Nougat ,

You had one chance to use 420 and you squandered it.

Bahnd ,

420 is still avalable. Not sure what you would put there ("Server too high?") and given the controversy over 418 I think its best to leave that one blank instead of making a weed joke.

aphlamingphoenix ,

There was an attempt by Twitter at one point to use "420 Enhance Your Calm" as a code to indicate you're being rate limited.

Juice , in got him

Broad generalizations aren't for the people who make them, they're for the suckers who consistently fall for them

Jumuta , in When everyone became paranoid
@Jumuta@sh.itjust.works avatar

windows: slower by 50s

gravitas_deficiency ,

MS:

we added AI!

CCF_100 ,

M$*

eatham ,
@eatham@aussie.zone avatar

More like 150y

Nighed , in got him
@Nighed@sffa.community avatar

This posts entire comment chain is an interesting example of people that have extensive knowledge in completely different areas of programming to me. And have some concepts I had never heard/thought of.

1984 , in How hard can it be
@1984@lemmy.today avatar

Even worse when you have a bug and you cant stop trying to find it and fix it. I often have the feeling that if I stop now, I lose the entire context of what I'm doing and it's just so hard to get started again the next day.

I prefer to dig in until I find it, even when tired and hungry.

kakes ,

Then you pass out and dream the solution lol.

Baku ,
@Baku@aussie.zone avatar

Solutions always seem to come to me in that weird phase of thought between almost asleep and actually asleep

nexussapphire , in How hard can it be

Feature creep? It's so easy when you convince yourself you'll reuse it!

TurtleTourParty ,

I basically need to stick this xkcd chart next to my computer or I'll spend days creating something that saves me minutes per years.

Although sometimes it's fun to automate things just for the hell of it.

nexussapphire ,

This is just Linux for anyone who uses it for work or school.😂

olsonexi , in "The kickflip was implied, so I didnt think it was worth mentioning"

A QA tester walks into a bar,
orders a beer,
orders 2 beers,
orders 0 beers,
orders 4294967296 beers,
orders -1/12 beers,
orders HGdIhFNPiHPWUDmUfWIFi beers,
orders a zebra

First real customer walks in,
asks where the bathroom is,
the whole bar catches on fire

Classy ,

He didn't order null beers? What a fraud

Drusenija , in No context validation

I can only assume this was the registration form for that Mr Beast video where he had 100 people in a room with one person of each age from 1 to 100.

roon OP ,
@roon@lemmy.ml avatar

This was the same thought that came to my mind as well! hah

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • kbinchat
  • All magazines