programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

PanArab, (edited ) 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>
floofloof, in Programming: The Horror Game

Makes a change from Visual Studio turning white because it has hung yet again.

SomeoneWhoIsntMe, 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.

SatanicNotMessianic, in Programming: The Horror Game

TFW when all of your bugs are like cockroaches that run away from the light but hide in the dark where you can’t see them.

xia, in Programming: The Horror Game

With a good eye-tracker and some tweaking, this might be usable…

chemical_cutthroat, in Programming: The Horror Game
@chemical_cutthroat@lemmy.world avatar

This is a blessing. You won’t have to look at the spaghetti the last dev left behind.

HipsterTenZero, in Programming: The Horror Game
@HipsterTenZero@dormi.zone avatar

From what i’ve heard of the game industry, being a gamedev is already survival horror.

agent_flounder, in Devotion to duty
@agent_flounder@lemmy.world avatar

Die Hard: Five Nines

janabuggs, in ifn't

I’m struggling to understand if this is true or ifn’t true

Thcdenton, in ifn't
davidgro,

Ding ding ding ding ding ding…

nickwitha_k, in The Perfect Solution

Quick! Make this a library, then encourage its widespread use. Nothing could go wrong. Who’s that behind me? No, one. No. It’s absolutely not node.js.

Diabolo96, in Devotion to duty

I liked the idea so i asked bing to write a movie synopsis about it. What’s fascinating is that bing knew which xkcd comic i was referring to from my horrible description of it. Anyway, here’s next year mindless, generic Hollywood blockbuster action movie :

Server Down

Jack Bauer is a nerdy and obsessive system administrator who works in the basement of a high-tech skyscraper. He loves his servers more than anything else, and he will do anything to keep them running smoothly.

When a group of terrorists take over the building and hold the employees hostage, they cut off all communication lines, disable the security cameras, and demand a ransom from the government. But they didn’t count on one thing: Jack.

Jack notices that his servers are offline, and decides to take matters into his own hands. He crawls through the ventilation ducts, walks across broken glass, and kills anyone who stands in his way, just to reconnect his servers to the internet. He doesn’t care about the hostages, the terrorists, or the ransom. He only cares about his uptime.

But as he reaches the server room, he realizes that he has unwittingly become the only hope for the hostages. The terrorists have planted a bomb in the building, and they are ready to detonate it unless their demands are met. Jack has to use his skills, his gadgets, and his devotion to duty to stop them and save the day. He is the sysadmin, and he is the hero.

Server Down is a thrilling action-comedy that parodies the genre of Die Hard and pays homage to the geek culture. It is a film that celebrates the power of technology, the importance of passion, and the absurdity of heroism.

fckreddit,

Now this is one movie I would watch, no doubt.

IsoKiero,

Firewall kinda-sorta plays with this idea, but all the tech is pretty stupid (and main focus, if memory serves, isn’t even in the technology). It’s not a bad movie as a hollywood 13-in-a-dozen action category, but it’s a far cry from “Server Down” we have here.

marcos,

I’m pretty sure the comic was supposed to be a joke about Die Hard.

xmunk,

If you have any doubts… Observe the goatee.

StrongHorseWeakNeigh,

I like the idea but I think it would be more fun to reframe it as a thriller movie from the terrorist’s perspective. They’re being hunted down one by one by an angry sysadmin and they can do nothing to stop him.

I think that would be a very fun horror b movie

thejodie, (edited )

This is starting to make sysadmins sound like John Wick.

“And then my son, a few days after his wife died, you steal his 3d printers and smash his fcking Apple 1.”
“The sysadmin will come for you, and you will do nothing because you can do nothing,”

toast,

I gasped when I read Apple 1

Well done

Diabolo96, (edited )

It would be a great action comedy if the story was set in japan and the sysadmin used to be a feared yakuza member. Kinda like GTA (great teacher onizuka).

IsoKiero,

Bing Chat (so ChatGPT) wrote an opening scene (or maybe more like a trailer, prompt was opening scene) too:

The opening scene of “Server Down” begins with a shot of a high-tech skyscraper. The camera then zooms into the basement of the building, where we see Jack Bauer, a nerdy and obsessive system administrator, working on his servers. He is surrounded by racks of blinking machines, tangled cables, and humming fans. Jack is wearing a t-shirt with a witty tech joke printed on it, and he is sipping a cup of coffee from a “World’s Best Sysadmin” mug.

Suddenly, the lights flicker, and the servers go offline. Jack’s face turns pale, and he drops his coffee mug. He frantically tries to reboot the servers, but nothing works. He checks the network connections, the power supply, and the cooling system, but everything seems fine. He then realizes that the problem is not with his servers, but with the building’s infrastructure. He rushes to the security room, where he finds out that the building has been taken over by terrorists.

The camera then cuts to the terrorists, who are holding the employees hostage and demanding a ransom from the government. They have cut off all communication lines, disabled the security cameras, and planted a bomb in the building. They are confident that they can get away with their plan, but they didn’t count on one thing: Jack Bauer.

The scene ends with Jack staring at the security monitors, his eyes burning with determination. He knows that he has to act fast to save his servers, his colleagues, and himself. He takes a deep breath, puts on his backpack, and heads towards the ventilation ducts. The adventure begins!

olafurp, in ifn't

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

Appoxo,
@Appoxo@lemmy.dbzer0.com avatar

ifnt instead of ifn’t

csm10495, in ifn't
@csm10495@sh.itjust.works avatar

Imagine the regex needed to highlight code with that extra single quote.

ohlaph, 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) {}

  • All
  • Subscribed
  • Moderated
  • Favorites
  • programmer_humor@programming.dev
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #