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.

peak_dunning_krueger , in If Architects had to work like Programmers

Please take care that modern design practices and the latest materials are used in construction of the house, as I want it to be a showplace for the most up-to-date ideas and methods. Be alerted, however, that kitchen should be designed to accommodate, among other things, my 1952 Gibson refrigerator.

That’s actually too easy, because electrical systems have been standardized for a long time.

Should be something like “15 highpowered electrical stoves, but keep the total power consumption below 15 Watts.”

Or, homeautomation and integration with google/alexa, but using the old fridge.

suction , in If Architects had to work like Programmers

This hurts in special ways

zerofk , in If Architects had to work like Programmers

“This button turns on the light in the hallway. Sometimes it brings the whole house down on you, but we haven’t found a way to reliably reproduce this. If that happens just crawl from under the rubble, rebuild the house, and try again. This time the light should turn on.“

“Oh, and send us the log messages.”

Moghul , in Hey, I'm new to GitHub!

The machine spirit requires that you submit the correct incantations

ekky , (edited )

like this?


<span style="font-style:italic;color:#969896;"># Let Git take a rest with some yummy awk chocolate logs with delicious nuts and seeds, and don't be pushy!
</span><span style="color:#323232;">git reset --hard $(git log --reverse </span><span style="font-weight:bold;color:#a71d5d;">| </span><span style="color:#323232;">sed -n 1p </span><span style="font-weight:bold;color:#a71d5d;">| </span><span style="color:#323232;">awk -F </span><span style="color:#183691;">"[ ]" '{print $2}'</span><span style="color:#323232;">) </span><span style="font-weight:bold;color:#a71d5d;">&& </span><span style="color:#323232;">git push -f
</span>

EDIT: Don’t actually run it.

subtext ,

Can you explain what this does? I’m thinking something along the lines of reverting all commits except the very first one?

ekky ,

You are correct! It sets HEAD to the first commit and then force pushes, deleting everything after HEAD.

Though, it only affects the currently selected branch.

No_Eponym ,
@No_Eponym@lemmy.ca avatar

The thingmabob that does the job is bippity-boppity-boo.

RIP_Cheems , in Good luck web devs
@RIP_Cheems@lemmy.world avatar

Why would you want this?

asterfield ,

What if your monitor has a bullet hole you want to avoid looking at?

RIP_Cheems ,
@RIP_Cheems@lemmy.world avatar

Why does your monitor have a bullet hole?

Jerkface ,

Why do you ask so many questions? ಠ⁠_⁠ಠ

anarchist ,
@anarchist@lemmy.ml avatar

to display Java class names on a single line

cupcakezealot , in Good luck web devs
@cupcakezealot@lemmy.blahaj.zone avatar

Linux is the only major operating system to support diagonal mode

MashedTech ,

I’d just like to interject for a moment. What you’re refering to as Linux, is in fact, GNU/Linux, or as I’ve recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.

Many computer users run a modified version of the GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called Linux, and many of its users are not aware that it is basically the GNU system, developed by the GNU Project.

There really is a Linux, and these people are using it, but it is just a part of the system they use. Linux is the kernel: the program in the system that allocates the machine’s resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Linux is normally used in combination with the GNU operating system: the whole system is basically GNU with Linux added, or GNU/Linux. All the so-called Linux distributions are really distributions of GNU/Linux!

brbposting ,

No, Richard, it’s ‘Linux’, not ‘GNU/Linux’. The most important contributions that the FSF made to Linux were the creation of the GPL and the GCC compiler. Those are fine and inspired products. GCC is a monumental achievement and has earned you, RMS, and the Free Software Foundation countless kudos and much appreciation.

Following are some reasons for you to mull over, including some already answered in your FAQ.

One guy, Linus Torvalds, used GCC to make his operating system (yes, Linux is an OS – more on this later). He named it ‘Linux’ with a little help from his friends. Why doesn’t he call it GNU/Linux? Because he wrote it, with more help from his friends, not you. You named your stuff, I named my stuff – including the software I wrote using GCC – and Linus named his stuff. The proper name is Linux because Linus Torvalds says so. Linus has spoken. Accept his authority. To do otherwise is to become a nag. You don’t want to be known as a nag, do you?

(An operating system) != (a distribution). Linux is an operating system. By my definition, an operating system is that software which provides and limits access to hardware resources on a computer. That definition applies whereever you see Linux in use. However, Linux is usually distributed with a collection of utilities and applications to make it easily configurable as a desktop system, a server, a development box, or a graphics workstation, or whatever the user needs. In such a configuration, we have a Linux (based) distribution. Therein lies your strongest argument for the unwieldy title ‘GNU/Linux’ (when said bundled software is largely from the FSF). Go bug the distribution makers on that one. Take your beef to Red Hat, Mandrake, and Slackware. At least there you have an argument. Linux alone is an operating system that can be used in various applications without any GNU software whatsoever. Embedded applications come to mind as an obvious example.

Next, even if we limit the GNU/Linux title to the GNU-based Linux distributions, we run into another obvious problem. XFree86 may well be more important to a particular Linux installation than the sum of all the GNU contributions. More properly, shouldn’t the distribution be called XFree86/Linux? Or, at a minimum, XFree86/GNU/Linux? Of course, it would be rather arbitrary to draw the line there when many other fine contributions go unlisted. Yes, I know you’ve heard this one before. Get used to it. You’ll keep hearing it until you can cleanly counter it.

You seem to like the lines-of-code metric. There are many lines of GNU code in a typical Linux distribution. You seem to suggest that (more LOC) == (more important). However, I submit to you that raw LOC numbers do not directly correlate with importance. I would suggest that clock cycles spent on code is a better metric. For example, if my system spends 90% of its time executing XFree86 code, XFree86 is probably the single most important collection of code on my system. Even if I loaded ten times as many lines of useless bloatware on my system and I never excuted that bloatware, it certainly isn’t more important code than XFree86. Obviously, this metric isn’t perfect either, but LOC really, really sucks. Please refrain from using it ever again in supporting any argument.

Last, I’d like to point out that we Linux and GNU users shouldn’t be fighting among ourselves over naming other people’s software. But what the heck, I’m in a bad mood now. I think I’m feeling sufficiently obnoxious to make the point that GCC is so very famous and, yes, so very useful only because Linux was developed. In a show of proper respect and gratitude, shouldn’t you and everyone refer to GCC as ‘the Linux compiler’? Or at least, ‘Linux GCC’? Seriously, where would your masterpiece be without Linux? Languishing with the HURD?

If there is a moral buried in this rant, maybe it is this:
Be grateful for your abilities and your incredible success and your considerable fame. Continue to use that success and fame for good, not evil. Also, be especially grateful for Linux’ huge contribution to that success. You, RMS, the Free Software Foundation, and GNU software have reached their current high profiles largely on the back of Linux. You have changed the world. Now, go forth and don’t be a nag.

Thanks for listening.

TheWoozy ,

Don’t feed the trolls.

I’m pretty sure everyone here understands both sides of the argument, but just don’t concider it important enough to change their vocabulary.

brbposting ,

Was only treating you to delicious copypasta!

wiki.installgentoo.com/index.php/Interjection

bleistift2 , (edited ) in I had to design a simple general purpose language for university, so I tried creating "ZoomerScript" with Jetbrains MPS

<span style="font-weight:bold;color:#a71d5d;">class </span><span style="color:#0086b3;">Scratch </span><span style="color:#323232;">{
</span><span style="color:#323232;">  </span><span style="font-style:italic;color:#969896;">// Start of file
</span><span style="color:#323232;">
</span><span style="color:#323232;">  </span><span style="font-weight:bold;color:#a71d5d;">public static void </span><span style="font-weight:bold;color:#795da3;">main</span><span style="color:#323232;">(args</span><span style="background-color:#f5f5f5;font-weight:bold;color:#b52a1d;">:</span><span style="color:#323232;"> </span><span style="color:#0086b3;">string</span><span style="font-weight:bold;color:#a71d5d;">[]</span><span style="color:#323232;">) {
</span><span style="color:#323232;">    </span><span style="font-weight:bold;color:#a71d5d;">int</span><span style="color:#323232;"> number1 </span><span style="font-weight:bold;color:#a71d5d;">= </span><span style="color:#0086b3;">2</span><span style="color:#323232;">;
</span><span style="color:#323232;">    number </span><span style="color:#0086b3;">1 </span><span style="font-weight:bold;color:#a71d5d;">= </span><span style="color:#0086b3;">10</span><span style="color:#323232;">;
</span><span style="color:#323232;">    </span><span style="font-weight:bold;color:#a71d5d;">int</span><span style="color:#323232;"> number2 </span><span style="font-weight:bold;color:#a71d5d;">= </span><span style="color:#0086b3;">13</span><span style="color:#323232;">;
</span><span style="color:#323232;">    </span><span style="font-weight:bold;color:#a71d5d;">boolean</span><span style="color:#323232;"> fo_sure </span><span style="font-weight:bold;color:#a71d5d;">= </span><span style="color:#0086b3;">true</span><span style="color:#323232;">;
</span><span style="color:#323232;">  
</span><span style="color:#323232;">    </span><span style="font-weight:bold;color:#a71d5d;">if </span><span style="color:#323232;">(fo_sure) {
</span><span style="color:#323232;">      number1 </span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#323232;"> number1 </span><span style="font-weight:bold;color:#a71d5d;">+ </span><span style="color:#0086b3;">5 </span><span style="font-weight:bold;color:#a71d5d;">- </span><span style="color:#0086b3;">10 </span><span style="font-weight:bold;color:#a71d5d;">* </span><span style="color:#0086b3;">2 </span><span style="font-weight:bold;color:#a71d5d;">/ </span><span style="color:#0086b3;">3</span><span style="color:#323232;">;
</span><span style="color:#323232;">    }
</span><span style="color:#323232;">  
</span><span style="color:#323232;">    </span><span style="color:#0086b3;">System</span><span style="color:#323232;">.out.println(number1);
</span><span style="color:#323232;">  
</span><span style="color:#323232;">    </span><span style="font-weight:bold;color:#a71d5d;">boolean</span><span style="color:#323232;"> canYouSeeMee </span><span style="font-weight:bold;color:#a71d5d;">= </span><span style="color:#0086b3;">false</span><span style="color:#323232;">;
</span><span style="color:#323232;">    </span><span style="color:#0086b3;">System</span><span style="color:#323232;">.out.println(canYouSeeMe);
</span><span style="color:#323232;">    </span><span style="font-weight:bold;color:#a71d5d;">if </span><span style="color:#323232;">(</span><span style="color:#0086b3;">false</span><span style="color:#323232;">) {
</span><span style="color:#323232;">      canYouSeeMe </span><span style="font-weight:bold;color:#a71d5d;">= </span><span style="color:#0086b3;">false</span><span style="color:#323232;">;
</span><span style="color:#323232;">    } </span><span style="font-weight:bold;color:#a71d5d;">else </span><span style="color:#323232;">{
</span><span style="color:#323232;">      canYouSeeMe </span><span style="font-weight:bold;color:#a71d5d;">= </span><span style="color:#0086b3;">true</span><span style="color:#323232;">;
</span><span style="color:#323232;">    }
</span><span style="color:#323232;">    </span><span style="color:#0086b3;">System</span><span style="color:#323232;">.out.println(canYouSeeMe);
</span><span style="color:#323232;">  } 
</span><span style="color:#323232;">}
</span>

What’d I win?

I find it interesting and unnerving that I understood the code, but not the youthspeak.

prof OP ,
@prof@infosec.pub avatar

Well done, here’s your price: 🏅

You may redeem it for a star on a GitHub repo of your choice.

It all gets put into the main method though in this version 😄

RedditWanderer ,

canYouSeeMe = !canYouSeeMe;

bleistift2 ,

There are even more optimization possibilities, but I wanted to stay as close to the original as possible.

Buddahriffic ,

Yeah, it can be optimized down to a single constant print statement.

steersman2484 ,

Isn’t the second if condition false?

bleistift2 ,

Thanks, I corrected it.

Flipper , in Hey, I'm new to GitHub!

You guys realize this was on a joke community, right? Most of the original comments missed it too…

MonkCanatella ,

r/github is a joke community?

Flipper , (edited )

The original text was not on github.

Saw it on copypasta yesterday. It’s possible this is an old screenshot and I could’ve seen the repost.

EDIT : seems I’m wrong and this is just an old picture.

Fisherswamp ,
Flipper ,

Good find. I guess this is an old picture.

MonkCanatella ,

The post was made 3 days ago. The picture is of this exact post. It’s not exactly old

LinearArray OP ,
@LinearArray@programming.dev avatar

I took the screenshot before the post was even locked, you can also find a comment by me on that thread.

AeonFelis ,

At this point r/ itself is a joke community.

Redkey ,

Yes, I think that most of us realized from some of the self-aware wording that this is a parody. But like many parodies it’s a real trope taken to a silly extreme, so we’re talking about users who fit that trope (including ourselves, sometimes!).

MonkCanatella , in Hey, I'm new to GitHub!

Yo did a character from a Tim Robinson skit write this?

https://sh.itjust.works/pictrs/image/fb10f7ce-b29d-46d9-b6bb-057284cbe28a.jpeg

Kolanaki ,
@Kolanaki@yiffit.net avatar

“Just compile it you fucking asshole!”

“I CAN’T! I DON’T KNOW WHAT ANY OF THIS SHIT IS AND I’M FUCKING SCARED!”

Katzastrophe , in Hey, I'm new to GitHub!

Sherlock is command line only too…

r00ty Admin ,
r00ty avatar

Follow up post.

"I don't want to write a fucking essay nerds! Just make a GUI and put it in an .EXE!!!!!!1111111111 spittle sp[pzpzzzzzzzqawjpoidqweiofrjowqefj"

frezik ,

If they pay me more, I’ll make them one in Visual Basic and trace an IP address.

kautau ,

Also, it’s literally a script for stalking people on social media. So it’s pretty clear why they want this script so bad.

Katzastrophe ,

Oh absolutely, anyone in a red team position is more than capable of running a few command lines. The guy is without a doubt trying to stalk someone

A_Very_Big_Fan ,

Why would you even need a script for that? Like, what functionality is it actually providing that can’t be done through the app / web UI

kautau ,

It’s only a script. The software is command line. There is no native or web UI. The script isn’t some additional interface, the script is the software

github.com/sherlock-project/sherlock

A_Very_Big_Fan ,

I meant the app / web UI for whichever social media lol

Like, if you wanna stalk someone on Instagram, what can you get out of a script that you can’t get by just opening their page the normal way

kautau ,

Oh the idea is that it hunts down users across different social media accounts with limited information. Just a way to automate something someone could do themselves.

As you can see here though, it checks a lot of sites

raw.githubusercontent.com/…/data.json

Samsy , in Hey, I'm new to GitHub!

Sometimes I can understand this struggle. For example let’s play a game. There is this app from e-foundation “Blisslauncher” it’s the default of eOS. And since I like it but don’t use eOS I want to download the apk from their gitlab page.

gitlab.e.foundation/e/os/BlissLauncher

So tell me, where is the latest release apk?

pseudopsyche ,

Is the only option to download build artifacts?

Samsy ,

Yes, and they come in three variants, apiQ, apiS and apiR. And I don’t understand the difference.

chellomere ,

These are Android API levels: apilevels.com

Samsy ,

Ty, I thought something like that and this link explains it very well.

acetanilide ,

What’s with the codenames? They’re making me hungry lol

chellomere ,

They actually call the android releases “cookies” because of this tradition for the code names. You can read phrases like “This will be fixed in the next cookie”

acetanilide ,

This is fascinating

brunofin , in I had to design a simple general purpose language for university, so I tried creating "ZoomerScript" with Jetbrains MPS

Is flex X on the haters a way of logging to console?

prof OP ,
@prof@infosec.pub avatar

Yes, it pretty much just wraps the expression in a “System.out.println(<expression>);”

Aatube ,
@Aatube@kbin.social avatar

Maybe "flex X" outputs to stdout and "flex X on the haters" outputs to stderr?

prof OP ,
@prof@infosec.pub avatar

I like the way you think! 😂

mwguy ,

flex X on the fools does verbose logs only.

brunofin ,

I’m curious to know how your language throws and catches errors :)

Roderik , in Hey, I'm new to GitHub!
@Roderik@lemmy.world avatar

He eventually found the executable by Googling for it online and is now part of a botnet.

NeatNit ,

This reads like www.youtube.com/watch?v=ycLpMlC3O4o (5 second film)

lowleveldata ,

Happy ending then I take it

casual_turtle_stew_enjoyer ,

Then created a GitHub account to post three separate issues complaining about how the project’s executable is an obvious Trojan, patting themself on the back for keeping the community safe with their expert sleuthing.

A_Very_Big_Fan ,

about how the project’s executable is an obvious Trojan

Which I bet was only obvious to him when Norton Antivirus told him

mocep , in Hey, I'm new to GitHub!

I fucking hate zoomers

MrWafflesNBacon ,

As a zoomer myself I can confirm

darkmatternoodlecow ,

The “digital natives” 🙄

ech ,

All this really means is they grew up navigating digital spaces socially. I’ve discovered first hand that the generation at large has little-to-no knowledge of the technical workings of even the computers they use regularly, imo due to the “apple-fication” (one button? Really?) of digital devices. Most exclusively use their cell phone as their digital device, or a chromebook provided by their school, all of which have been streamlined to the extreme to “enhance” the user experience, but have in actuality given them absolutely zero-experience learning how to troubleshoot or incentive to dig into how their devices operate. I’ve had to walk teens through how to navigate the file directories on their laptops.

In the past, the only people to be “techies” (ie people seeking out spaces like the Internet) were ones willing and able to deal with hurdles and issues, and the window is apparently quiet narrow for people who grew up with tech (to an extent) and also had to learn how to handle issues like that. The majority of others are either those described above, or those that never saw tech as important or worth it (though we’re also seeing the consequences of those people finding their way onto the “one-button” internet in meme/conspiracy addicted boomers).

Ethalis ,

Agreed, Big Tech’s quest for UX and frictionless Interfaces has lead to a generation of people who vastly overestimate their tech savviness and are basically only great at navigating walled gardens made specifically to be easy to use.

It’s not really their fault though: in addition to frontends becoming ever easier to use, backends are also becoming increasingly complex. 20 years ago you could learn a bit of HTML and CSS and throw a decent website together, but nowadays you need to master tons of other skills (graphical design, scripting, etc.) to make even so much as a web page that won’t scare people away immediately. It’s hard to get interested in this stuff when the barrier of entry is getting higher and higher, while tons of GAFAM-made alternative are already available for “free”

ech ,

It’s not really their fault though

Definitely not, and to clarify, I am laying any blame there is to be doled out at the feet of companies.

I do wonder if it’s reversible at this point, though. I don’t see any company choosing to reverse course, at least not in a way that would cause a large-scale shift. Incapable users are the best they could hope for - uninterested in seeking out anything other than what they are handed and, if they ever did decide to look around, unable to adapt to “harsher” alternatives. Legislation certainly isn’t going to be expected. No government is going to mandate citizens have a “worse” experience. Perhaps a purposeful cultural shift, but that would take a lot of coordination of people that likely don’t see the issue or simply don’t care. I feel like we’re past the watershed here, as frustrating and concerning as that is.

Adanisi ,
@Adanisi@lemmy.zip avatar

Seriously. It’s infuriating. Everything is so damn dumbed down now it’s ridiculous! People are incapable of doing so much as reading error messages and doing basic troubleshooting, sometimes I wonder where society went wrong. They’re completely helpless with the technology that makes up more and more of our lives, and I hate to see it.

deur ,

20 years ago you could learn a bit of HTML and CSS and throw a decent website together, but nowadays you need to master tons of other skills (graphical design, scripting, etc.) to make even so much as a web page that won’t scare people away immediately

Looking at it this way is what stops people from trying though :(

peter ,
@peter@feddit.uk avatar

Expecting people who grew up after the Internet was mainstream to all be developers is like expecting everyone who grew up in the 60s and 70s to be a mechanic

PlasterAnalyst ,

You can usually find step by step instructions for fixing most cars. My library has a subscription to Chilton online, so I can use it from home and look at repair procedures and wiring diagrams. Just use forums and YouTube to fill in the gaps. I've even diagnosed a car from Amazon reviews since I suspected a certain part was bad and looked at reviews that said the exact symptoms.

peter ,
@peter@feddit.uk avatar

Sure, a lot of people can do that. A lot of people absolutely can’t, too. A lot of people can look up and solve computer issues too, and a lot of people can’t. It’s not a generational thing or specific to computers.

PlasterAnalyst ,

Car enthusiasts are much more welcoming and helpful than computer experts. Just look at stack exchange.

Deceptichum ,
@Deceptichum@sh.itjust.works avatar

Why are you assuming they’re a zoomer?

I fucking hate douches that rag on younger generations for stupid petty shit like Boomers did.

FMT99 ,

Ragging on older generations though, comedy gold.

Deceptichum ,
@Deceptichum@sh.itjust.works avatar

The stuff they get ragged on for is earnt at least.

jbk ,

Reddit gold ⁉️⁉️😨😨😨🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰

mocep ,

Zoomer detected

Deceptichum ,
@Deceptichum@sh.itjust.works avatar

I wish, my body wouldn’t hurt as bad as it does for another 10 years.

I’m a millennial who refuses to do the same shit that was done to them.

Or you could say millennials are killing the moaning about younger generations industry.

mocep ,

On second thoughts you’re probably right. It lacks ebonics and other n*ggerspeak so it might not be a zoomer or it may be an extremely rare zoomer that knows some english.

Deceptichum ,
@Deceptichum@kbin.social avatar

Fuck off ya racist piece of shit.

mocep ,

I censored it…

Deceptichum ,
@Deceptichum@kbin.social avatar

Go neck yaself mate, “ugh I censored my racism so its no longer racist” fucking shit for brains.

mocep ,

It’s not even racist it’s just the word used to describe this new language they call “english”. Nothing racist in that.

datavoid ,

Kindergarten level trolling detected

Milk_Sheikh , in Hey, I'm new to GitHub!

Man these comments are fun. The patricians defending the (admittedly) bad UI/UX as the skill-hurdle it is, while the rest are finding inventive ways to rephrase “gib button plz”

SpaceCadet ,
@SpaceCadet@feddit.nl avatar

The UI is fine.

It’s just that Github is a code sharing and collaboration platform for developers, not a software package distribution platform for end users.

bermuda ,

Plenty of developers also use GitHub for software distribution for end users, so that’s where the problems lie. I’m not saying GitHub should change their UI to match something the site wasn’t made for, but it’s still an issue for people who choose to use it that way.

The_Sasswagon ,

But it is often additionally used as a software package distribution platform, so it would be helpful for some developers to reach their users by having a clearer path to the most current release.

I can personally do without a special button, and the op is obviously making a joke, but why not improve the UX for some users? It’s certainly possible to do this without impacting the smelly nerds who wouldn’t use the button.

Milk_Sheikh ,

While it may have begun that way (and may still be the overwhelming use case, idk the breakdown) devs are using it for FOSS releases, and that’s where the ‘less literate’ crowd enters. Sourceforge was very simple to use, and had a consistent layout. GitHub wasn’t meat to be a SF replacement, but here we are having this discussion

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