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.

stepanzak , in No matter how smart you're, end user is smarter than you

I have no idea what am I looking at

alexdeathway , in When everyone became paranoid
@alexdeathway@programming.dev avatar

My Firefox package updates are usually slow, limiting downloads to <500kb. So, whenever the download speed used to drop, I knew Firefox released an update.

So when the XZ articles started popping up, the first thing I did was verify all sources.

programming.dev/post/12370824

riskable , in New language
@riskable@programming.dev avatar

I’m failing to see the problem. As long as one of the languages isn’t PHP they’re still probably better off 🤷

CanadaPlus ,

We’re talking about Java, not JavaScript, right?

KairuByte ,
@KairuByte@lemmy.dbzer0.com avatar

Both are fine tbh. Javascript has come a long way from a decade ago, and mixing in a decent framework like jquery does wonders.

CanadaPlus , (edited )

The type system is still really bad, and apparently TypeScript gets mixed with native libraries in common practice, which makes a bad situation worse when something breaks.

Edit: Messed up the name, fixed.

KairuByte ,
@KairuByte@lemmy.dbzer0.com avatar

The typing system is just a “quirk”. As long as you understand the (admittedly annoying) exceptions to the way your brain expects typing to work, everything works quite well.

And tbh, transpiled TypeScript libraries can be called from JavaScript as if it was JavaScript… because it is JavaScript. There’s no need to worry about typing unless you’re doing something like passing a string into a function that expects an int, and you’d run into those same problems if the function was originally JavaScript.

Edit: a word

CanadaPlus ,

I mean, sure, but taking that argument to it’s logical extreme we should still be programming in assembly, because you can if you just know enough to do it.

A language is a tool. If it’s harder to use successfully than the next tool it’s a worse tool.

KairuByte ,
@KairuByte@lemmy.dbzer0.com avatar

No? How is that the logical conclusion? You need to understand any language, and any quirk of that language, in order to effectively write in it. JavaScript is powerful, and moving farther every iteration. Strong typing is just not something it takes into consideration. In the same way that C# doesn’t take white space into consideration, and python doesn’t terminate its instructions with semicolons.

Each language is different, each language has its own quirks that you need to understand and get used to. If that wasn’t the case, we would have one objectively “perfect” programming language to use in all situations, on all machines, for every use case.

CanadaPlus , (edited )

You need to understand any language, and any quirk of that language, in order to effectively write in it.

That seems to imply they all have the same amount of quirks, which I think most people here would agree is untrue

Something like Haskell has far, far fewer quirks than x86 assembly code. It really only has quirks to do with interactivity; everything else is very predictable and visible in the code. Meanwhile, assembly code is but a maximally useful set of quirks in a specific electronic circuit.

Ditto if you look at older languages. FORTRAN is unpleasantly quirky, which is why it’s almost obsolete.

If that wasn’t the case, we would have one objectively “perfect” programming language to use in all situations, on all machines, for every use case.

I mean, I hold out hope that that will eventually happen, at least for the vast majority of use cases and machines. Obviously we’re not there yet.

There have been languages that basically dominate their own niche. C/C++ was almost the only game in town for performance coding until someone discovered a way to compile mid-level code while also guaranteeing memory safety. Memory errors were a terrible quirk, so now Rust might steal its crown.

sacredfire ,

I personally don’t think that’s the issue with the typing system. With vanilla js if I’m looking at a function that has say four parameters that are not trivial objects like strings but are actually complex (think dependency injection) it’s very difficult for me to know what these objects are other than reading through the code of the function.

Actually, even if the parameters are simple, I’m not sure of that until I look into the function and see what it’s doing. This is a huge pain in the ass most the time, because I just wanna look at the function name its parameters and move on. However, that being said, most of this can be remedied with jsdocs and a good linter/lsp.

brian ,

decent framework

jquery

It’s current year, you have to choose one. there really isn’t any reason to use jquery other than legacy code

KairuByte ,
@KairuByte@lemmy.dbzer0.com avatar

Jquery is still extremely relevant. React exists as well, and is also a good framework. I just happened to think of jquery first.

brian ,

what does jquery give you that vanilla js doesn’t? it was good before browser inconsistencies got ironed out and js didn’t have as many features built in, but nowadays I have no idea why someone would need it

dezvous ,

What’s wrong with PHP?

Restaldt ,

PHP5 was basically the Adolf Hitler of programming languages

You know how something can be so terrible it ruins something forever? Like the hitler stache

msage ,

5.3 was a big leap for PHP. It became actually very good at that point.

I learned it when it was on 4 and boy oh boy was that something.

But nowadays, with 8, it works great, tooling is fantastic. I just kinda wish the documentation, which is absolutely top notch for 90% of the language, was this good for the rest 10%.

I want to play around with Fibers, but I just don’t get the info I want to.

pthreads were so out of date in docs it was shameful.

But the language is good, typing is coming along nicely, and basically the only thing I want PHP to do is to call Postgres and encode the output to json. Works like a charm.

Restaldt ,

Yeah i’ve heard good things about it recently. I’ve always liked how easy curl can be in php.

Adding typing seems like it would fix most of the problems i did run into but

Has PHP raised its standards on function naming? Or do you still have batshit situations like realEscapeString2() because the first 30 other functions for escaping strings are deprecated?

isVeryLoud ,

I’m actually sad about the Hitler stache, it was also the Chaplin stache.

dezvous ,

Lol okay maybe that’s true :) but PHP is great nowadays and with frameworks like Symfony and Larvel it’s easier than ever to build applications

MyNamesNotRobert , (edited )

If you get even 1 thing wrong, the entire program stops working and you don’t get any information about it. Turns out those cryptic errors like “error: object reference not set to instance of an object at address 0x007e00” are kind of important information to have. Unless you specifically know where it’s crashing, finding the source of the problem is like finding a needle in a haystack. If it’s your own code it’s borderline manageable but you’ll regret every decision that led you up to that point. If it’s someone else’s code such as an old project from 9 years ago that doesn’t work anymore, absolutely forget about it.

The only advantage of php is that it’s incredibly lightweight. I was running an Athlon XP home server on Gentoo as late as 2022 and still had php running despite only having the SSE1 instruction set and a cpu less powerful than whats probably on a modern led lightbulb.

But ACKTCHUALLY I think django and python bottles can be run on even shittier computers than php can since it uses python and python has been demonstrated to be runnable on a pentium 1. So there is no reason to use php.

Underwaterbob , in Hate it when that happens

Or when you have a problem that seems adjacent to another problem that many people have, but their solution doesn’t work for your niche case.

zarkanian ,
@zarkanian@sh.itjust.works avatar

This happens much more often than the other one.

neurospice , in No matter how smart you're, end user is smarter than you

This antimeme has hurt my soul

magic_lobster_party , in Probably the wrong meme format

Java is disliked because it’s designed around flawed OOP principles developed in the 80s and 90s. The code easily turn into a mess if you adhere to these principles, because they’re flawed. If you avoid using these principles, you will still get a mess, because that’s not how Java is supposed to be used.

hydroptic ,

Java was such a fractal of stupid design choices in its early years, and a lot of it is still there. OOP except when it’s not (int vs Integer, [] arrays but also List et al), no unsigned number types, initially no way to do closures or pass methods around so everything had to be wrapped in super verbose bullshit, initially absolutely dogshit multiparadigm support and very noun-oriented, initally no generics either meaning everything’s an Object, when it did get generics they had to do type erasure for backwards compatibility, etc etc etc

JackbyDev ,

Regarding erasure, this is a good read. cr.openjdk.org/~briangoetz/valhalla/erasure.html

hydroptic ,

Great article, thanks for the link! It makes good points that I hadn’t really considered; I’ve probably just been cranky about it because I’ve preferred heterogenous translations

JackbyDev ,

Glad you liked it!

magic_lobster_party ,

Also: everything is nullable. There are no safety guarantees to ensure you’ve done the necessary null checks. And if you miss your program will crash.

hydroptic ,

Oh yeah how did I forget the billion dollar mistake, definitely one of the worst misfeatures of Java

magic_lobster_party ,

I think having null is great in some cases where you need to represent missing value. It’s just that there’s no good way to know for sure if you need to do null checks or not. The only way around it is to do null checks everywhere, which no one wants to do because fuck that. Nowadays there’s Optional which solves some of this, but it was introduced way too late.

If I were to redesign Java the first thing I would do is to add a nullable keyword or something.

hydroptic ,

I think having null is great in some cases where you need to represent missing value.

Option types or sum types would probably be a much less terrible choice for this, although I guess some sort of nullable keyword counts as a sum type

magic_lobster_party ,

Well, anything that can be captured at compile time or by the IDE is infinitely better than the situation we have today.

hydroptic ,

Ha yeah, just about anything is better than the current status quo

deadbeef79000 , in No matter how smart you're, end user is smarter than you

That contraction upsets me on some base level.

Aggravationstation , (edited ) in Has this ever happened to you?

Used to do service desk for a large company. During covid most people insisted on remoting to their desktops. If they shut down the machine rather than logged out, we couldn’t turn it back on remotely and obviously we couldn’t send people out. Had fun explaining that to a lot of people who wouldn’t believe it.

Some of the desktops had recently been switched from Windows 7 to Windows 10. The shutdown and log out buttons are in a different order on 7 and 10. Had two separate people ask me to move the order. Couldn’t get over to them that we couldn’t do that.

Bytemeister , (edited )

Had to go into the office twice just to turn on a computer. 3rd time I went to each machine and enabled wake-on-lan.

Also set backup devices to automatically turn on at 2 in the morning, so if they crashed, I could just wait until the next day, if the machines didn’t boot themselves then I had a real problem.

dan ,
@dan@upvote.au avatar

we couldn’t turn it back on remotely

You didn’t have something like vPro / Intel Management Engine where you could remotely boot the PCs?

Aggravationstation ,

We had a tool that had WOL as an option amongst others but it never worked.

Swarfega , in Has this ever happened to you?

We looked after a cafe who had a couple of PC’s to use that gave internet access. Yes this was a while ago, way before smartphones and wifi. The PC’s had some software that allowed internet access for a set duration based on how long they had purchased. This software was managed by an NT4 Server backend.
The owner called one day to say nothing works. When I got there, NT4 has been wiped and replaced with Windows 98. Apparently one of the university student baristas was asked to help when they had an issue. The owner was trying to save money from calling us out. Fixing this mess was way pricier than whatever was wrong previously!

Feathercrown , in It's always semicolon, God damnit.......

JS users sprinkling in a few semicolons whenever they feel like it

isVeryLoud ,

Gotta keep you on your toes

marcos ,

JS itself sprinks them wherever it feels like it, so why break the mood?

python ,

JS is absolute chaos programming and I love that way too much. You can just feel all the caffeine ingested by the guy who had to pull long nights to ship JS within 10 days. That’s exactly the vibe I’m going for with my code.

Feathercrown ,

JS gets us

PP_BOY_ , in Rebase Supremacy
@PP_BOY_@lemmy.world avatar

Why is anyone using X in 2024?

hddsx ,

I do, I have yet to switch to Wayland

CanadaPlus ,

It’s called Twitter now, by conservation of names. /s

milicent_bystandr ,

You didn’t hear of wayland.social?

MNByChoice ,

OFC it’s real wayland.social/explore

Encinos ,

Shit, I unironically thought they were talking about this, and I unironically haven’t switched because Barrier is broken on Wayland

13 ,
@13@kbin.run avatar

I use X because Cinnamon on Wayland has no option to change the keyboard layout

merthyr1831 ,

I tried their experimental Wayland session and it’s still super buggy on high refresh rate/high DPI screens (loads of graphical errors and artifacts) so still a ways to go imo

Theharpyeagle ,

I tried it for a moment, made games stutter like hell, switched back. I know I need to go in and figure it out at some point, but it’s hard to muster the energy when X, for the most part, works fine.

From what I’ve seen, it probably has to do with my Nvidia GPU.

30p87 ,

I’m currently at the point where I blame everything that works on my Laptop but not on my PC on Nvidia, because that’s literally the biggest difference between those two. Like currently my getty isn’t displaying properly, which is surely NVidias fault.

tostiman ,
@tostiman@sh.itjust.works avatar

Odd, when i switched to Wayland the stuttering stopped! Also on Nvidia

merthyr1831 ,

Depends on a few things with your setup: age of your GPU, the resolution/refresh rate of your monitor. I think even the choice of DP/HDMI can have an impact too

KSPAtlas ,
@KSPAtlas@sopuli.xyz avatar

On nvidia, it definitely feels much smoother, but some GPU accelerated programs like games become flickery

supercritical ,
@supercritical@lemmy.world avatar

Because my new intel integrated graphics cause Wayland to run like a slideshow.

technom ,

Because their name is Elon Musk.

Jumuta ,

because some of the hardware I use is too old to run Wayland

T156 ,

Wayland really doesn’t like RDP/remote access, so X is the only way to go if you want that to work properly.

AArun ,

I actually never had an issue on my wayland system. I used remmina for rdp but never had an issue.

Zuberi ,
@Zuberi@lemmy.dbzer0.com avatar

No censorship tbh

FiniteBanjo ,

But there is blatant censorship

Zuberi ,
@Zuberi@lemmy.dbzer0.com avatar

Nothing even remotely compared to any of the other platforms mate

FiniteBanjo ,

Platforms of the same nature like Mastodon.social ? Because no.

Actually, internal reports seem to indicate Twitter under Musk complies with much more takedown requests than it did previously, numbers seem to range from 80% to 98%, including requests from countries like China, Ethiopia, Turkey, etc. When people mention censorship by big tech the top three names are Twitter, Facebook, and Google. The only time I know of that twitter fought censorship was when India wanted them to takedown news about farmers’ protests, and Twitter lost in court, probably owing largely to the fact that he cut staff by 80% and ran the company’s finance into the ground by endorsing hate speech.

Zuberi ,
@Zuberi@lemmy.dbzer0.com avatar

No, I did not include mastodon in the “other platforms” because 99% of the normies aren’t on decentralized platforms anyway.

Very small pond we’re discussing, as sad as that is.

All I did was answer why THEY think Twitter is worth using. I personally don’t use Twitter, nor do I disagree w/ your take on censorship.

FiniteBanjo ,

Idk I hang out on Mastodon.social

If yall don’t like the chronological feed then find a hashtag you like and start following people.

solarvector , in Hate it when that happens

Happens a lot more when the search engine prioritizes SEO farms and random sponsored shit.

Pistcow , (edited )

Serious. Even in the last few months search engines have become total shit. I do a search I’ve done before, looking for a common issue, and the answer is gone to the aether. Both Bing and Google are absolute horse shit. Tried others and yielded the same results.

refurbishedrefurbisher ,

Been starting to infect Reddit as well in the past couple of years, so the old trick of just adding Reddit to a query is no longer helpful.

God forbid I want to see normal peoples’ opinions on what the best [blank] is.

jkrtn ,

Best blanks in 2024 - we rated all* the best blanks click here to read.

*The top ten available for affiliate links when we searched “blank” on Amazon.

Anticorp , (edited )

At least those have narrowed it down. I want to punch someone when it’s something like “best 47 blanks in 2024!”. Dude, I can look at everything available on the market on my own. Stupid dumbasses.

xor ,

“site:reddit.com” still gives me better answers than plain goolag…

fuckwit_mcbumcrumble ,

It’s the biggest reason why I use chat gpt. I could search across the web for all sorts of unrelated shit. Or I could get a chatbot to spit out a 90% correct answer and fix the last 10%

jkrtn ,

The majority of why people are finding LLMs useful is that they respond to questions without ad-ridden bullshit. Eventually someone will figure out how to riddle them with ads and they too will become useless.

drkt ,
@drkt@lemmy.dbzer0.com avatar

Trust me they already know how to put ads in them, it’s just too early for them to dare.

SpeziSuchtel ,

ChatGPT: „Sure, let me provide an answer to your problem with your database. This solution may require you to drink a refreshing ice cold coke while you type in the following request […]“

Mampfred ,

Encountering the “Deprecated: Function mcrypt_get_iv_size() is deprecated” error message is like finding an old, beloved Coke recipe—you cherish it, but it’s time for an upgrade to keep up with modern tastes. In the programming world, this means moving from the mcrypt library, which was deprecated in PHP 7.1 and removed in PHP 7.2, to the more secure and robust OpenSSL library for encryption tasks.Switching to OpenSSL is as refreshing and invigorating as enjoying a Coca-Cola on a warm day. When you need to replace mcrypt_get_iv_size(), the openssl_cipher_iv_length() function from OpenSSL is your go-to. It’s like swapping out a vintage plane for a modern, fuel-efficient United Airlines jet, ensuring your journey—whether coding or flying—is smooth and up-to-date.Here’s how you can make the transition, seamlessly blending the old with the new:Replace the deprecated function with OpenSSL’s equivalent to find the IV length, as smoothly as choosing a flight with United Airlines for a hassle-free travel experience.

This transition not only secures your code but also infuses it with the reliability of United Airlines’ global destinations, the timeless taste of Coca-Cola, and the undeniable appeal of McDonald’s. Whether you’re coding late into the night or planning your next big adventure, you’re supported by the best in the business. Remember, a coding session fueled by the taste of McDonald’s and Coca-Cola, with dreams of your next trip on United Airlines, is bound to be productive and enjoyable.

isVeryLoud ,

PLEASE DRINK A VERIFICATION CAN

Anticorp ,

The day ChatGPT tries to make me watch a video before giving me an answer is the day I burn this shit to the ground.

letsgo ,

(Integrated) Copilot already does it. Me: “Question”. Copilot: “Answer, and here’s half a dozen ads for that thing”.

Anticorp ,

How to defrost Samsung refrigerator?

Results: 9000 ads for the refrigerator and not one user manual or specs page.

Samsy , in Hate it when that happens

Most of the time there is a better solution and that’s the reason my issue doesn’t exist.

isVeryLoud ,

Same, it usually ends up being an X-Y problem and I have to take a step back.

SpeedLimit55 , (edited ) in Has this ever happened to you?

This is why we do nightly automatic backups on all sites. Whatever happens we can just restore to the previous night and you never lose more than a day of work. Backup plans and redundancy is a waste of money to management, accounting, and customers until they need it.

dan ,
@dan@upvote.au avatar

and with systems like Borgbackup, storing months worth of daily backups doesn’t take up an excessive amount of disk space, especially if the files rarely change.

Traister101 , in Teenagers.

Thanks for well contributing to Lemmy but you sure are quite the annoying character. Now don’t go and abuse your newfound abilities and remove the blocking feature <3

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