programming.dev

trustnoone, to programmer_humor in Programming: The Horror Game

Does anyone remember when something like this actually happened? Maybe it’s the Mandela effect but U sweat at one stage a whole heap of sites were using black/dark mode to save the planet

SqueakyBeaver,

I use it to save my eyeballs

Nightwind, to programmer_humor in Programming: The Horror Game

Knew a programmer that was near blind who only used magnifier on maximum zoom with his IDE. One of the best programmers I met, but his screen looked very much like that. Don’t know how he did it.

2deck,
@2deck@lemmy.world avatar

Programming happens in the mind. Whats on the screen is a pale and lifeless polaroid devoid of the moving, complex soul of real code.

Nightwind,

Well put, however I find code formatting itself has a shape, texture and smell. How the programmer weaves the patterns of formatting tells a lot about his mind and style.

2deck,
@2deck@lemmy.world avatar

Agreed; or their mind and style style.

Auto formatting is often too rigid for me and gets in the way of context driving the style.

fibojoly,

That feels like that scene in Amadeus, when Mozart dictates his music to Salieri.

fibojoly,

Albino? There was an albino in my IT and the poor dude would literally be like 4 inches from the screen at all times. I guess that must be pretty close to his experience, yeah.

locuester,

Yeah, I worked with an albino like that who used a handheld magnifying glass. It actually inspired me to write a magnifier application for windows (which didn’t have one at the time, this was in 2006). That then led me to write little windows apps every day for a month, which got a lot of attention.

ohlaph, to programmer_humor in ifn't

<span style="color:#323232;">aint (something) {
</span><span style="color:#323232;">    somethingElse()
</span><span style="color:#323232;">}
</span>
Facebones,

As a Virginian learning coding, this would make my damn day.

Threeme2189,

<span style="font-weight:bold;color:#a71d5d;">#define </span><span style="font-weight:bold;color:#795da3;">aint</span><span style="color:#323232;">(x) </span><span style="font-weight:bold;color:#a71d5d;">if </span><span style="color:#323232;">(</span><span style="font-weight:bold;color:#a71d5d;">!</span><span style="color:#323232;">(x))
</span>
15liam20,

Or maybe

taint(condition) {}

Ubettawerk, to comicstrips in Tie on the doorknob

Felipe is such an arbitrary name for a praying mantis! lol

quaddo,

He has a brother named Jesús.

olafurp, to programmer_humor in ifn't

I’d take a not or “if not” operator tbh.

Appoxo,
@Appoxo@lemmy.dbzer0.com avatar

ifnt instead of ifn’t

SomeoneWhoIsntMe, to programmer_humor in Programming: The Horror Game

I kinda want this to be real…

BatmanAoD,

It’s not too far off from how ed works!

UndercoverUlrikHD,
@UndercoverUlrikHD@programming.dev avatar

How does ed work?

BatmanAoD,

ed, the “standard editor” (according to its man page) and the predecessor of vi (the “visual editor”), is a terminal editor that doesn’t automatically display any of the text you’re working on; you have to use the p (“print”) command to display the lines your wish to see.

UndercoverUlrikHD,
@UndercoverUlrikHD@programming.dev avatar

ಠ_ಠ

pmjv, (edited )
@pmjv@lemmy.sdf.org avatar
BatmanAoD,

If you have a Linux or Mac handy, you can trying it out! It’s…kinda wild. If you know some Vim commands that start with :, there’s a good chance they’ll work in ed, except you don’t type : itself (effectively you’re always in “command mode”).

There’s also a novelty Twitter account, @ed1conf, that tweets about ed.

Some coworkers told me a story about a previous job candidate who said his preferred editor was ed. They thought it would be really interesting to see someone actually use it. But during the actual interview, when he opened ed, he didn’t recognize or understand it; he was actually accustomed to a graphical editor that he thought was called ed because he apparently did all his work on a system where someone had symlinked or aliased ed to a modern tool.

THE_ANON, to memes in Sounds delicious

Based

INHALE_VEGETABLES,

Omg I forgot all about the tripping through time subreddit. Keep em coming!

Rusty, (edited )

There is lemmy.ca/c/trippinthroughtime but it’s not very active

Anticorp,

On what?

THE_ANON,

Studies

ghostdoggtv, to programmer_humor in Programming: The Horror Game

Not really visual anymore innit

ji17br,

Spotlight studio

xmunk, to programmer_humor in ifn't

Still not as good as whence

fartsparkles,

Is this a reference to something because I’d love to read it if you have a time to share.

xx3rawr,

Woah. I did a quick google and it’s not just a meme, but actually used in some major lang’s libraries.

jjjalljs,

This is one of those “modern Google/search sucks” moments because I couldn’t immediately find examples of it in a programming language.

xx3rawr,

I actually used DDG and most I’ve seen, they’re just used as arguments for functions notably in C and Python

LeFrog, (edited )
@LeFrog@discuss.tchncs.de avatar

It is used in ksh korn shell to see what executable responds to a command:

superuser.com/a/351995

Edit: Oh, what a rabbit hole: Why not use “which”? What to use then?

SubArcticTundra, (edited )
@SubArcticTundra@lemmy.ml avatar

Legislation (which feels similar to programming languages sometimes) seems to have some keywords of its own. I remember seeing a lot of Whereas … and Having regard to ….

DrPop, to memes in Sounds delicious

I got my annual gardettos implant two days ago and the rye chips still hurt.

KreekyBonez,

bold choice

PanArab, (edited ) to programmer_humor in ifn't

This can’t be for real. I’ll stick with C11 thank you.

stardreamer,
@stardreamer@lemmy.blahaj.zone avatar

Here you dropped this:


<span style="font-weight:bold;color:#a71d5d;">#define </span><span style="font-weight:bold;color:#795da3;">ifnt</span><span style="color:#323232;">(x) </span><span style="font-weight:bold;color:#a71d5d;">if </span><span style="color:#323232;">(</span><span style="font-weight:bold;color:#a71d5d;">!</span><span style="color:#323232;">(x))
</span>
casmael, (edited ) to programmer_humor in Programming: The Horror Game

Yeah so you gotta buy the lumafly lantern before you go in that area

minyakcurry,

I never expected a Hollow Knight reference here

the_of_and_a_to, to programmer_humor in ifn't

I like “unless” in Ruby

JPDev,

unlessn’t

Goun,

I’m sorry, I hate the “unless” so much

NotSteve_,

At one of my first jobs, I was tasked to rewrite a bunch of legacy Perl scripts in Python and the unless lines always made me trip up. I don’t know why but it really messed with my mental flow when reading Perl code

marcos,

The Perl version of it is even greater!

EnderMB,

I haven’t written any Ruby for years, but I still praise it in every conversation I have regarding programming languages. It’s basically a much simpler Python, with some design ideas that are both beautiful and deeply strange.

OskarAxolotl,

Ruby was designed to evoke joy and they absolutely succeeded. Usually, programming is mostly a means to an end to me. But using Ruby just feels so amazing, it’s almost impossible to even describe to somebody who has never used it before.

xia, to programmer_humor in ifn't

“Help’s with readability”? You know what else helps? Not using contractions and introducing an unbalanced single quote.

bdonvr,

If they’d’nt’ve done that, it’d’ve been better. Agreed.

fsr1967,

TIHI

Cwilliams,

they’d’nt’ve

Aside: rip Tom Scott

survivalmachine,

This feels racist against Appalachia. We naturally speak with contractions and are commonly referred to as “unbalanced”.

frezik,

Runs havoc on parsing, too. It’s bad for both humans and robots. I say we ship it.

Mastershelf, to programmer_humor in The Perfect Solution

TIL Python dictionaries allow trailing commas.

GBU_28,

List

dalegribble,

While there are not actually any trailing commas in the dictionaries present and you are correct to say the ones present are part of a list, you can also have trailing commas in Python dictionaries. OP might have researched “Python trailing commas” and learned that part.

Trailing commas are fantastic to reduce changed lines in git diffs. Makes life much better. Same thing with leading commas in SQL queries.

GBU_28,

Yeh

Ephera,

Yeah, I think, that’s only really JSON which is so pedantic about it…

owenfromcanada,
@owenfromcanada@lemmy.world avatar

Yeah…

sweats nervously in C

  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #