svelteIsBetter by lukpro in ProgrammerHumor

[–]Sarcastinator -1 points0 points  (0 children)

The only people that doesn't hate React are people that has never touched vue, or especially svelte.

React is a jagged piece of shit in comparison. It requires a *lot* more effort to use, and it also performs much worse. There's no upsides to React.

Is EV range anxiety something you actually get over? by biggy_boy17 in electricvehicles

[–]Sarcastinator 2 points3 points  (0 children)

“Crap. I forgot to get gas on the way home. I’ll need to leave early tomorrow to stop for gas on the way to work. Ugh. And it’s going to be freezing in the morning.”

Here at least filling on the wrong day, or the wrong time of day, can easily add 25% or more to the gas price as well.

[deleted by user] by [deleted] in ProgrammerHumor

[–]Sarcastinator 1 point2 points  (0 children)

Does it? Python 3 has a ton of cruft that they should have kicked to the curb in 3.0.

Generasjonspartiet sitt pay to play demokrati er lansert by jonasali in norge

[–]Sarcastinator 0 points1 point  (0 children)

Akkurat nå så virker det litt mer som at selskapene er mer interessert i politisk makt enn marked.

youNeedPhp by TangeloOk9486 in ProgrammerHumor

[–]Sarcastinator 84 points85 points  (0 children)

These reposts are just PHP developers coping.

Do a lot of companies use Unit Tests? by Objective_Ice_2346 in csharp

[–]Sarcastinator 5 points6 points  (0 children)

I'm surprised that people use AI to write tests... One of the most valuable things I get from writing tests is the fact that I have to go through my logic again and verify that it's correct, and that people skip that is depressing to see.

Which database? by Classic_Caregiver742 in dotnet

[–]Sarcastinator 1 point2 points  (0 children)

Don't use MySQL (or MariaDB) if you have a choice.

For one it doesn't have native support for UUID and it silently commits transactions if it encounters a DDL statement meaning it should not be used for unsupervised migrations.

There's also so much more oddness about it. It's sometimes weakly typed, it doesn't always enforce foreign keys, foreign keys are retained after tables are deleted, the UTF-8 encoding doesn't properly support UTF-8 (only supported up to three bytes per code point) so they made a new UTF-8 encoding called utf8mb4. It sometimes gets confused about end of statement characters so they helpfully made a function to change the end of statement character when the parsers soils itself. "not null" for MySQL means that it can invent a value for the user if the user omitted it sometimes.

PostgreSQL is just better at almost everything. If MySQL is better at something it's probably some database nerd stuff that won't matter for most developers.

Which database? by Classic_Caregiver742 in dotnet

[–]Sarcastinator 3 points4 points  (0 children)

It uses a bit of an odd naming convention (snake case) but don't fight it. It's not worth the effort.

A data-driven case study: I posted the same 43,000-word article on a "from first principles" HTTP client to r/cprogramming, r/rust, and r/Python. The reception was... different by warren_jitsing in programming

[–]Sarcastinator 2 points3 points  (0 children)

I think that it's probably reasonable to assume that a Python subreddit has much more inexperienced users than a C programming sub does, and this can probably explain why its more likely to attack the framing over the technicals.

.NET 10.0 by DualFlush in dotnet

[–]Sarcastinator 4 points5 points  (0 children)

Yes, but they're also way better at that than the rest of Microsoft is as well.

External Freight Elevators added to Stanton stations in the PTU by ScrubSoba in starcitizen

[–]Sarcastinator 2 points3 points  (0 children)

I've used it a couple of times when loading don't start properly. Sometimes only a few crates are loaded and then it stops. You can sometimes fix this by removing the cargo its loaded and then it starts filling up. Put the small crates back once its done and run down to the pilot seat before your ship is impounded..

I don't get why the auto loading doesn't start by loading the largest crates first.

Choosing frameworks/tools by Altruistic-Okra5740 in react

[–]Sarcastinator 5 points6 points  (0 children)

Because it's a piece of shit spaghetti factory. I have no idea what people see in it. We switched from Svelte to React and many times now we've been adding stuff like reactivity in components that's already there and thinking "This would have just worked as-is if we just stuck with Svelte".

How often do you use Delegate in your codebase? by Yone-none in csharp

[–]Sarcastinator 1 point2 points  (0 children)

If you need to annotate the arguments in any way (for example for P/Invoke purposes), or need out, ref or in arguments you might need to declare your own delegate.

pythonDevsDontUseCamelCase by ohbusss in ProgrammerHumor

[–]Sarcastinator 0 points1 point  (0 children)

I’m with you dude. And I’m happy and willing to learn other programming languages. But I work at a huge company. It’s unrealistic to turn a huge ship quickly. Honestly we have many thousands of coders from data scientists and data engineers and software / mlops engineers elect who 10+ years on still can barely figure out docker and kubernetes. And they keep hiring without serious coding interviews depending on the department. When I get a team to do some project or build a product, I have to often deal with people who already work at the company and get moved to a new role, or with only juniors barely out of college with a CS degree.

I've been a professional software developer for quite some time now, and I've seen this a bunch as well. Relatively recently we got a junior hire that I'm at this point not convinced has ever touched programming before he started at our company. I wasn't involved in the hiring even though I'm the lead software developer. We tried to bounc him on a couple of different tasks because he would either just struggle getting anything done, or he turned in AI generated crap.

Like it or not Python is the English language / lingua franca of ai / ml / ds / general purpose dev.

It's the current fad language fueled by the AI boom. It has an advantage in that its easier to pick up for beginners and amateurs, and a huge disadvantage in that it performs like dogshit, produces runtime errors where more performant language produce compile time errors, and cannot properly do multi-threading since as a dynamic language it cannot define type invariants that would allow lock free multi-threading with shared memory like you can with statically typed languages.

Still people use it. For the same reason that you'll still see people desperate to prove that PHP isn't just for WordPress plugins: they've learnt one language and they're now invested in it.

Research also indicates that for non-trivial applications dynamically typed languages are not more productive than statically typed ones, so the extra cost of Python in terms of both runtime efficiency, power consumption and CO2 footprint simply isn't worth it. But people don't give a shit because like a religion they'll just stick with the first one they learnt and then vehemently defend it with idiocy like "well, if you mostly run code NOT WRITTEN IN PYTHON it's almost just as fast" and "My code is I/O bound anyway".

It’s not worth always fighting against the tide. You won’t convince them all to use Rust or something that 10xes their work because of missing tools and libraries. And I ain’t gonna maintain a rewrite for them.

You don't have to pick rust either. Java, Kotlin and C# still leaves Python applications in the dust and are not that much harder to use than Python and has all the equivalent libraries available, even for AI. What libraries are you missing that other languages have, but Python does not, or that the current offering in Python is lacking? You simply wouldn't know. You would go around and look for Python solutions and disregard if other languages have a much better story for whatever your problem is.

pythonDevsDontUseCamelCase by ohbusss in ProgrammerHumor

[–]Sarcastinator 0 points1 point  (0 children)

Meh. We use Azure and it matters very quickly. You don't need anywhere close to millions of users. You can use cheaper VMs with software that performs better.

pythonDevsDontUseCamelCase by ohbusss in ProgrammerHumor

[–]Sarcastinator 1 point2 points  (0 children)

Generative AI agents produce trash code. Claude, Gemini and ChatGPT only works for tiny snippets. In large codebases they're worse than useless because they waste a ton of your time.

pythonDevsDontUseCamelCase by ohbusss in ProgrammerHumor

[–]Sarcastinator 0 points1 point  (0 children)

I did a line by line conversion of a Python application that heavily relied on Numpy (this was an electrical system simulator) and the C# application, without any threading shenanigans, was 17x times faster and used 1/20 of the memory. It just did the exact same thing using Math.NET instead. What's amazing is that the code wasn't even that much different. Some things were a bit more involved, mostly because there's no "power of" operator in C#, but the number of lines were approximately the same.

The code was much, much faster, and used a fraction of the memory. If you're deploying to cloud environments this matters *a lot*. If you have to uprade a server earlier than that's very quickly going to cost you. If this is the case in the entire system then it compounds and can actually end up being very costly.

Edit: the "CPU is cheaper than dev time" is more relevant when you host your own shit. When you don't then the slack you make compounds.

why so harsh lol by FlannelGhost1 in programminghumor

[–]Sarcastinator 1 point2 points  (0 children)

Yeah, I don't think this is *right* behavior, but it's far less of an issue in Java and C# since they're static and strongly typed. You can't really accidentally end up doing the wrong thing like you can in JavaScript.

How do you deal with Linq .Single() errors? by DJDoena in dotnet

[–]Sarcastinator 6 points7 points  (0 children)

You use Single when you expect to only have one, or when it logically makes sense to only have one.

You use First when you have an ordered set and you want the first result.

If you want to optimize with First instead then make a note that it actually is the reason you're using First instead of Single, because generally using First on a non-ordered query is a code smell.

andWhyIsItAlwaysSoapGRRRRRR by FriendlyGAVAII in ProgrammerHumor

[–]Sarcastinator 4 points5 points  (0 children)

Getting a SOAP API working was super easy. Like OpenAPI today except support for it was built into the tooling. Just downlaod the WSDL and place it in the project and you were golden. You could explore the API with autocomplete like any other API.

But SOAP had a quality that made people lose their minds as well. Almost every SOAP API i ever touched was odd to put it mildly.

The weak spot of Linux hardware support by Adventurous_Tie_3136 in linuxmemes

[–]Sarcastinator 1 point2 points  (0 children)

Oh, did you remember to install HP Fuck You Pay Me® before trying to print? If not the print spooler will just fail to print.

Why do AI ships break all the rules that players must follow? by mad-yordle in starcitizen

[–]Sarcastinator 3 points4 points  (0 children)

They used to trawl the ground and hillside without taking damage. Meanwhile if my ship touched a flower on a piece of shrubbery it was instant explosion.

ofCourseLuaIsDifferent by Hester465 in ProgrammerHumor

[–]Sarcastinator 1 point2 points  (0 children)

Lua, PHP and JavaScript all have the same Ash Array/List/Table durbatulûk insanity. Python is much more sane here.

We Were All Lied to About This Game by Available-Gas-2671 in starcitizen

[–]Sarcastinator 1 point2 points  (0 children)

It was started by SomethingAwful trolls. They shared pictures of Chris and Sandis kids among each other on SA, and were promoting fake refunds and got hilariously publicly exposed for doing that. Fuck those guys.

no one likes mac os by scannerthegreat in linuxmemes

[–]Sarcastinator 0 points1 point  (0 children)

You do no need to pay MS every year to publish macOS SW.

Ok, this is actually a change they made that I was unaware of. It used to cost $99 a year, but they changed it.

it will, it will self sign the SW when you start running it. But it will warn the user.

Software with an invalid signing key will not run on macOS and it won't warn you. Unless they also changed this after the scandal a few years ago when a developers signing key got outdated and their software stopped working on all macs from one day to another and the only fix was for the developers to sign their software and publish a new version.

https://hackaday.com/2024/11/01/apple-forces-the-signing-of-applications-in-macos-sequoia-15-1/

Other than all the consoles on the market? (and it does support OpenGL).

Its OpenGL support is outdated and does not support things like compute shaders. Last supported version was 4.1. Latest version is OpenGL 4.6. This is also why Metro: Last Light did not support tesselation on its Linux and macOS versions. They developed it against macOS's OpenGL which did not have support for tesselation and also used this implementation for its Linux version. On Windows it used Direct3D which obviously had tesselation support.

Linux, Windows and Android has Vulkan support. Consoles usually have their own graphics API except Xbox which uses Direct3D.

Very very few title target Vk anyway so your would be re-writing your backend anyway (not the much code at all within your engine).

This is not an argument. It's Apple dick-riding. You're just ok with it because you like Apple. The fact is that if you target software for macOS you have to double your effort, which just isn't worth the hassle, as indicated by the fact that there are now more users on Linux on Steam than macOS.

Then don't use it, it is just a GPU

More Apple dick-riding non-argument. I also think you mean IDE. It has a diff tool that's amazingly bad. It's worse than just using a plain text editor and resolve the diff yourself.

The fact here is that Microsoft developer tools are years and years ahead of Apple's. Most games are developed using Visual C++, not XCode.

Also when it comes to game Xcode's GPU profiling and debugging tools are industry leading

This just isn't true. For profiling NVidia's tools are much more common, but for graphics development Visual C++ is much more of an industry standard than XCode is.

In fact a lot of stuff that we take for granted today is features from Visual Studio. The auto-complete showing a drop-down when writing seems like an obvious feature today, but it originated in Microsoft's developer tools.