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.

onlinepersona , in Linus Torvalds to Rewrite the Linux Kernel in PHP

Anything is better than C, right? Even 🤮 PHP.

Anti Commercial-AI license

xmunk ,

PHP and C are both fine languages, they have their strengths and their weaknesses. They’re tools and if you feel the need to shit on them then you clearly need more practice using a diversity of languages.

onlinepersona ,

Ah yes, the almighty counter “everything is relative”. “Malbolge is a fine language with its strengths and weaknesses. It has perfectly valid usecases and can never be shit on, ever.”

Anti Commercial-AI license

toastboy79 ,

PHP is probably a fine language, my issue is I suffered dealing with so many shitty applications written in php when I was still coming up through the ranks of IT.

God the number of broken WordPress installs and shitty WordPress plugins.

xmunk ,

I understand your pain - the real reason for that is that PHP was the first “hobbyist” programming language so a lot of self trained folks built websites that ended up slowly morphing into successful businesses.

One of the things I’m actually most proud of from the PHP community is that around 5.2 the maintainers looked around and saw sites like Quora and StackOverflow were littered with the worst fucking PHP advice endorsing functions like mysql_query and ill-advised features like magic_quotes so the community invested a lot of resources in purging answers that preached anti-patterns and replace them with non-terrible answers.

I work in PHP and it’s perfectly serviceable now, we’ve got strict typing, namespaces, lambdas, all the nice shit you’d expect in a modern language.

toastboy79 ,

That really helps explain the context for one of my favorite PHP bashes ever.

https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/

It's a great read but it should be noted that the post was written in 2012 and considered under such a context.

VaalaVasaVarde ,

Jokes on them PHP is itself written in C

frightful_hobgoblin , in I Will Fucking Piledrive You If You Mention AI Again

cringe

MehBlah , in Sysadmin comes out of the goon cave. And he is not happy in the slightest.

One of my favorite xkcd.

alexdeathway , in Not everything can be done in constant time, that's O(k)
@alexdeathway@programming.dev avatar

Did you write an algorithm to manually drag and drop elements?

match , in Someone escaped the Matrix
@match@pawb.social avatar

ooh, has anyone made something that transfers ownership of unmaintained codebases via bug bounty? like a sword-in-the-stone for critical fixes?

Daxtron2 ,

Just fork it

Kolanaki , in Someone escaped the Matrix
@Kolanaki@yiffit.net avatar

I could be a farmer…

An MMO gold farmer. 😌

yeather , in Someone escaped the Matrix

Don’t be fooled he’s going out there to hsck tractors now.

Kowowow ,

Spend years automating small farm tasks that take minutes

uis ,
uis , (edited )
The_Picard_Maneuver , in Who lives in a Pineapple in the Algorithms Library for C? SpongeBob BinaryTreePants!
@The_Picard_Maneuver@lemmy.world avatar

The pirate voice in my head nearly ran out of breath singing the post title.

danhab99 , in Life is hard
@danhab99@programming.dev avatar

Age or experience? Because both are funny

TheReturnOfPEB ,

const_cast<pain>

umbrella , in Start ups when that VC funding kicks in
@umbrella@lemmy.ml avatar

everything except pay me a decent wage and let me have free time.

NegativeLookBehind , in Life is hard
@NegativeLookBehind@lemmy.world avatar

And pain is immutable

OpenStars , in Stop comparing programming languages
@OpenStars@discuss.online avatar

What is C essential for anymore these days? Genuine question btw.

I thought C++ was essential for microprocessor control, but that it depends and sometimes I gather people use C instead, but not always.

Use the language that the company hires you to know:-).

MiltownClowns ,

Used to be embedded systems mostly. Microwaves and the like. Although with the advance of the smart home I don’t know I’d that’s still true.

odium ,

The majority of microwaves, fridges, etc. Still don’t connect to WiFi. It’s mostly the high end ones which do.

whotookkarl ,
@whotookkarl@lemmy.world avatar

Pretty much all of the command line coreutils programs I use daily are in C; cd, ls, pwd, touch, rm, etc. If I want to write some small utility I’ll usually reach for a scripting language first like bash python ruby etc, but if it needs to be small and fast I’ll use C instead.

BatmanAoD ,

Genuine question: if you’re writing a new CLI utility, why not Rust? This is arguably where Rust has most excelled, most famously with ripgrep.

whotookkarl ,
@whotookkarl@lemmy.world avatar

I don’t have anything against Rust, I’m just not very familiar with it

Brosplosion ,

Most of the Linux kernel is written in C

Norodix ,

I do embedded. Its all C. You can’t replace it.

Shareni ,

You can’t replace it.

Zig?

tehbilly ,

Wait, that’s like C with extra fewer steps

Shareni ,

And I think they rewrote a bunch of C libraries in order to have a better cross-platform compiler for C and zig. Or something along those lines

xigoi ,
@xigoi@lemmy.sdf.org avatar

Or Nim?

Agrivar ,

Inertia is a mofo. I did embedded programming for industrial automation almost thirty years ago, building upon and expanding an existing nightmare of C code… and I bet there’s still some of mine running something out there to this day.

257m ,

any sort of FFI on a modern OS will need to be done through C

psycho_driver ,

The thing with C is that it’s almost always going to be the fastest high-ish level language and it has an extremely stable ABI. Self contained code written 30 years ago will likely compile with only minor (and sometimes no) tweaks today. You’re lucky to go 3 years on C++ without something fairly big breaking due to changes in the underlying language and ABI.

OpenStars ,
@OpenStars@discuss.online avatar

That’s the kind of insight I was hoping for, thanks for sharing!

C is also just a fun language to code in. You know, aside from pointers ofc:-). Though I have never done more than dabble around personally.

BatmanAoD ,

This is a really good post about why C is so difficult to seriously consider replacing, or even to avoid by using a different language for certain projects: faultlore.com/blah/c-isnt-a-language/

OpenStars ,
@OpenStars@discuss.online avatar

It isn’t just a language, but it is a language - as it eventually gets around to saying, but it starts off by saying that it isn’t, then later corrects itself to say that it is, etc. I feel like the focus of this ignores the historical context of what C was written to be for - at the time there was like Assembly, BASIC, Fortran (?), other long-dead languages like was it A and/or A* or whatever, there was a B language too! (developed by Bell Labs, if Google can be trusted these days), etc. - and C was developed to be better than those. So saying that like it lacks type conversions is very much missing the point - those were not invented yet. A lawn mower also lacks those, but it’s okay bc it doesn’t need them:-) I am probably nit-picking far too many points, I suppose to illustrate that the style of the article became a hindrance to me to read it b/c of those reasons. But thank you for sharing regardless.

BatmanAoD ,

I don’t really like the title either, but the article does demonstrate how unfortunate it is that we’re effectively locked in to using the ABI at some level of nearly every piece of software.

That said, there definitely were languages with better type systems prior to the invention of C. Pascal is a frequently-cited example.

OpenStars ,
@OpenStars@discuss.online avatar

Oh wow, good points!:-)

ThePantser , in Easy choice
@ThePantser@lemmy.world avatar

You fuck your complier?

pivot_root ,

You don’t?

SatouKazuma , in Repeat after me "this problem isn't bothering me". There! fixed it

Chaotic evil is “creates ticket, but intentionally words the problem poorly before logging off, leaving the junior help desk worker to fend for himself, giving you the solution to a different problem that isn’t relevant in your case”

CanadaPlus ,

Really, there’s a vast number of ways for IT support to be evil or chaotic. I wonder if there was ever a viral fiction series in the early internet about it…

GorGor ,

that would make someone a real bastard…

ReplicantBatty ,

Sounds like somebody straight from hell

chahk ,

Chaotic evil is “makes you create a ticket, doesn’t work on it, and then blames the ticket for the downtime to the CEO.”

SatouKazuma ,

Goddamn I felt this one!

luciole , in "PM, want a cracker?"
@luciole@beehaw.org avatar

If it listens and nods to the unedited, director’s cut version of my woes and frustrations, I’ll give it a cookie.

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