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.

gencha , in Stop use docker

Containers are a great way run applications.

Docker is a piece of garbage by a company way too far down the enshittification slide.

Varyk , (edited ) in Linus Torvalds to Rewrite the Linux Kernel in PHP

Update: thank you for pointing out to me which community this was posted on.

I’m going to leave this post up as a cautionary tale for people like me who don’t pay enough attention!


But Linux is cool cuz it’s so fast and it doesn’t break.

Long as I’ve been using it anyway.

So now linux is going to be much slower, going to break and be more susceptible to security breaches?

I’m not a programmer, is the upside supposed to be that with so many more programmers able to work on the kernel, those issues will be able to be fixed by the extra programmers?

It’s not like there’s anything wrong with Linux right now.

morgunkorn OP , (edited )
@morgunkorn@discuss.tchncs.de avatar

Don’t forget to look in which community this was posted

Varyk ,

Pppffbbbthhh haha thanks.

Guess I’ll just sit in this, I guess.

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

are there a lot of new things to say about this after it was posted 4 days ago? https://kbin.run/m/[email protected]/t/503264/I-Will-Fucking-Piledrive-You-if-You-mention-AI-Again#comments

orangeboats , in JavaScript

This is why I try my damnedest not to write in weakly typed languages.

string + object makes no logical sense, but the language will be like “'no biggie, you probably meant string + string so let’s convert the object to string”! And so all hell breaks loose when the language’s assumption is wrong.

zalgotext ,

You don’t necessarily need types for that kind of thing though, a strict linter that flags that code works just as well

Blackmist ,

Some automatic conversion is fine.

a=3+0.2

print(“Hello {name}. You are {age} years old”)

That kind of thing. But the principle of least surprise definitely applies. If you get to the point where you’re adding two booleans and a string, I feel like the language should at least say something. At least until the technology exists for it to physically reach out of your screen and slap you.

raspberriesareyummy , (edited ) in Not everything can be done in constant time, that's O(k)

N00b. True pros accomplish O((n^2)!)

JPAKx4 ,

Your computer explodes at 4 elements

Krakaval , in Old timers know

Somehow I miss those days. Now you need weeks of training to understand the black magic behind all the build/deployment stuff in whatever cloud provider your company decided to use…

SupraMario ,

Naa, once you figure out one the rest click usually.

xtapa ,

We got our own platform based on kubernetes and cncf stuff and we don’t have to care anymore about the metal underneath. AWS? OTC? Azure? Thats just a target parameter, platform does the rest. It’s great.

widerporst ,

How often do you switch cloud providers that this is even a real rather than a hypothetical benefit? (Compared to the cost of dealing with a much more complicated stack.)

xtapa ,

It’s not about switching, it’s about hosting our services on different platforms at the same time.

bamboo ,

I manage a stack like this, we have dedicated hardware running a steady state of backend processing, but scale into AWS if there’s a surge in realtime processing needed and we don’t have the hardware. We also had an outage in our on prem datacenter once which was expensive for us (I assume an insurance claim was made), but scaling to AWS was almost automatic, and the impact was minimal for a full datacenter outage.

If we wanted to optimize even more, I’m sure we could scale into Azure depending on server costs when spot pricing is higher in AWS. The moral of the story is to not get too locked into any one provider and utilize some of the abstraction layers so that AWS, Azure, etc are just targets that you can shop around for by default, without having to scramble.

PlexSheep , in It's easier to remember the IPs of good DNSes, too.

Ipv6 is not 6 bytes? 8 segments of 2 bytes for a sum of 16 bytes?

Or am I stupid right now?

awesome_lowlander , (edited )

2 bytes would give you 0-4 per segment. Or about IPv2

jjagaimo ,

2 bytes would be 0-65535 and 8 sets is ~3.4×10^(38)

awesome_lowlander ,

Whoops, bits vs bytes. This is why I should stop commenting before I’ve had coffee

NeatNit ,

Yes, you’ve got it right. <> means ≠. 16 is not equal to 6.

PlexSheep ,

Never seen that Notation.

lambalicious OP ,

IPv6 is unfortunately not six bytes, no. For some weird, ass-backwards reason.

purplemonkeymad ,

Because 48 bits over 32 bits does not really solve the problems with ip4. 128 bits basically gives one ip4 address space to each square meter of earth. Ip6 also drops all the unused and silly parts of ip4 too.

lambalicious OP ,

128 bits basically gives one ip4 address space to each square meter of earth.

That sounds like terminal stage capitalism to me. Why would we want every tree in the Amazons to be cybergorized with its own IP? I don’t know Rick, 64 kbits bits ought to be enough for everybody, and I’m already risking it.

orangeboats , (edited )

Our network architecture has the tendency to waste IP addresses. A subnet may have 10 devices but have 256 IPs (e.g. a /24 network like 192.168.0.0 to 192.168.0.255) - that’s 246 wasted addresses. This wastage is kinda unavoidable since we’d need to keep our routing tables from being too fragmented.

With that in mind it is entirely possible for 64-bit addressing space to not be enough, unless we revert to methods like NAT which come with their own disadvantages.

We have already used up about one /11 block of the IPv6 internet. That’s 128-11=117 bits. If we replace the standardized /64 subnets of IPv6 with old /24 subnets typical in IPv4 networks, you get 61 bits. That’s dangerously close to the upper limit of a hypothetical 64-bit IPv5 internet.

brianorca ,

Because bits are not expensive anymore, and if we used 64 bits, we might run out faster than the time needed to convert to a new standard. (After all, IPv4 is still around 26 years after IPv6 was drafted.) Also see the other notes about how networks get segmented in non-optimal ways. It’s a good thing to not have to worry about address space when designing your network.

PlexSheep ,

Why should it be? Also, MAC addresses are that size.

FlyingSquid , in What the heck is a god dang cloud?
@FlyingSquid@lemmy.world avatar

Adobe pulls that shit too.

And it’s really easy to not really think about what you’re doing and accidentally save to the cloud.

Then later wonder what the fuck happened to the file you spent three hours on when you came back from lunch.

Fucking Adobe.

BlackPenguins , (edited )

Adobe also recently snuck into their ToS that they could use whatever you made with their products for training AI and then gaslit everyone saying “we never said that” and changed their ToS. You know where you can’t access my stuff? Offline.

jose1324 ,

You mean can access?

BlackPenguins ,

Ah good catch

cheddar , in Easy choice
@cheddar@programming.dev avatar

needs a few seconds to run

Depends on what you’re compiling!

gnutrino ,

It’s always true for sufficiently large values of “a few”

MacedWindow , in My CSS ain't like the other developers...
@MacedWindow@lemmy.world avatar

“My eyes are down here”

SpaceNoodle , in Programmer Pain Chart

Documentation should be larger than code.

Tests as well.

umbraroze OP ,

Tests as well.

In most programming languages, yes.

In Ruby? …eeeeeeeehhhhhhhhh.

SpaceNoodle ,

Programming, not Ruby.

RedSeries , in Not really sure whether S-expressions or Python indentation-based scoping get more hate...

ITT: Developers who think their code is readable complaining about Python and YAML.

onlinepersona ,

People with bracketed languages just want to write the most unreadable code ever to feel superior.

Anti Commercial-AI license

IronKrill ,

Might just be me but YAML is some of the least readable shit I’ve ever used.

RedSeries ,

Honestly, I agree. But I don’t think Python is anywhere near that bad.

fruitycoder ,

I write my short hand notes in yaml.

30p87 , in Certified in AI

If I see someone boasting about programming with AI, in 0.1% of cases they use it responsibly (as a tool to quickly get introduced into a topic and brainstorm ideas) and the rest of times they’re probably a script kiddie letting ChatGPT do advent of code or smth and calling themselves programmers.

wizardbeard ,

Same thing with all the folks who took the “copy pasting from stackoverflow” joke literally.

I regularly have to find guidance online through code examples, but you need to understand what the code you’ve found actually does under the hood for when it inevitably has issues because it wasn’t made for your specifc use case.

floofloof ,

Do people actually copy and paste code with no understanding of how it works, from SO or Copilot? I always thought this was just a joke.

datavoid ,

I feel like there is almost no chance of a copilot program working as expected without having an understanding of the code it writes. It makes some hilariously bad choices at times, and frequently drops and changes code that was added previously.

Redkey , (edited )

As someone who has often been asked for help or advice by other programmers, I know with 100% certainty that I went to university and worked professionally with people who did this, for real.

“Hey, can you take a look at my code and help me find this bug?”
(Finding a chunk of code that has a sudden style-shift) “What is this section doing?”
“Oh that’s doing XYZ.”
“How does it work?”
“It calculates XYZ and (does whatever with the result).”
(Continuing to read and seeing that it actually doesn’t appear to do that) “Yes, but how is it calculating XYZ?”
“I’m not 100% sure. I found it in the textbook/this ‘teach yourself’ book/on the PQR website.”

lars , in The easiest problem

An important professor constantly and frustratingly said

we can call this variable whatever we want, so we’ll call it Fred

Made me panic and irate and focus on the wrong part of the problem. Every. Single. Time.

firadin , in Like getting 9 women pregnant and expecting a baby in 1 month

I mean no, but also… yes? Like having a one person dev team is a little ridiculous for a game selling as well as Manor Lords. 50 people is a lot, but do you really think the game would have less features a year from now if the dev hired like 3 people to help?

Obviously development would slow down in the short term, but a one person dev team is asking for disaster

Aquila ,

Ideally the solo dev and visionary would cease development and move into a product owner role. Bringing other devs up to speed on the code base while also maintaining quality, vision, and cultivating a team is no trivial task. Not to mention this particular dev may not want or be able to such things.

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