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.

RagingHungryPanda , in Programming as a hobby means I can do whatever I want!

At least the code on the bottom is actual code and not just signatures

PoolloverNathan , in Programming as a hobby means I can do whatever I want!

A MONAD IS A MONOID IN THE CATEGORY OF ENDOFUNCTORS

Thelie OP ,

Wow you sound so smart!

JackbyDev , in University Students

<span style="background-color:#f5f5f5;font-weight:bold;color:#b52a1d;">}</span><span style="color:#323232;"> </span><span style="font-style:italic;color:#969896;">// End of if
</span>
lseif ,

okay but which ‘if’ is ending ??

JackbyDev ,

The outer most. (There were 4 layers of nested ifs.)

lseif ,

too few. i like to have a nice big gap on the left of the code so theres a place to write notes when i screenshot the code

brettvitaz ,

This brings back trauma

best_username_ever ,

CMake does that…

Hossenfeffer , in Defragged Zebra
@Hossenfeffer@feddit.uk avatar

Defragged cows. System files cannot be moved.

https://feddit.uk/pictrs/image/a6c852bc-1ee6-4031-8b9a-89ec396a807f.jpeg

Kolanaki ,
@Kolanaki@yiffit.net avatar

If they stand close enough and you scan them with a barcode scanner, they show up in the system as beef, but for only $0.21/per pound.

Emmie , (edited )

How much is dog meat these days anyways dear husky?

mlg , in Defragged Zebra
@mlg@lemmy.world avatar

EXT4 watching NTFS solve its fragment problem by upgrading to SSDs instead of upgrading their allocation algorithm.

catastrophicblues , in Cupholder.exe

I remember a guy who tied his baby’s rocker to the drive and wrote code to open and close the CD drive repeatedly lol. Fun times.

CanadaPlus ,

Hmm. Did the motor last? It’s obviously not built to provide that much torque/force, although I can’t say for sure it would be damaged by it.

elbarto777 ,

They don’t say how much the seat was being rocked.

Maybe just a couple of inches. Enough for babby to sleep.

CanadaPlus ,

Yeah, but the baby alone would weigh far more than the tray and disk ever would. And then they’re doing it over and over again for an extended period.

elbarto777 ,

Just a little push from pops at the beginning.

And they didn’t say it was a long term solution. For all we know, the drive was going to be replaced the following week.

CanadaPlus ,

Oh, so you’re thinking he’d start it first, and then start the program to be perfectly synced with the period of the rocking? I suppose that could work, although it would be tricky to get the timing just right by hand, or it would be for me.

And they didn’t say it was a long term solution. For all we know, the drive was going to be replaced the following week.

Yeah, and it might have electronics that will handle the extra load just by virtue of properties of the standard parts. Like I said, I don’t know that it’s bad idea, but I do wonder.

elbarto777 ,

I think you’re taking this whole thing too seriously.

People can do whatever they want for the lulz.

CanadaPlus , (edited )

I know, but I’ve been nerdsniped. I’m not mad or something, lol.

elbarto777 ,

Lol we’ve all been there, friend!

mctoasterson , in "PM, want a cracker?"

If a parrot is on its perch, can it lead a standup meeting?

privatizetwiddle , in this is what peak web traffic looks like

“Not my problem” code

jimp , in Cupholder.exe

I remember back when this was going around as cokegift.exe in the 90s.

KillingTimeItself , in Cupholder.exe

man i miss these days.

These days not only would it open your CD drive, it would open your tax documents, your crypto wallet, your account cookies, probably even your banking information.

The modern internet fucking sucks dude.

booly ,

Oh don’t worry, malicious .exe files were all over the forums back then.

KillingTimeItself ,

u aren’t wrong.

soggy_kitty ,

Put the rose tinted glasses to one side. We still had harmful viruses back in the day, difference is these days you are storing more private information “online” so the effect of compromise is larger.

ssj2marx ,

Yeah I haven’t had harmful application on my computer in over a decade. I feel like you really have to go out of your way to get one these days (not including spyware that you download intentionally, like Windows 11).

Sphks ,
@Sphks@lemmy.dbzer0.com avatar

The thing is, harmful apps are now difficult to detect compared to years ago. The hackers prefer to get the control of your device without ruining it.

en.m.wikipedia.org/wiki/Botnet

Trainguyrom ,

There’s even extreme edgecases where a compromised machine being part of a botnet actually improves security because the malware shores up security to help itself remain persistent and not find itself removed/blocked by other malware or attackers

ChaoticNeutralCzech ,

Back then, there were still lots of “wipers” that deleted files and/or destroyed the OS. Now it’s all spyware and ransomware.

ICastFist ,
@ICastFist@programming.dev avatar

Vandalism became theft and kidnapping

KillingTimeItself ,

i’m mostly just sad that the funny side of malicious software is gone.

There’s no more funny malware. It’s all ransomware and stealers.

lukecooperatus ,

There’s no more funny malware.

That depends who gets infected.

You or me infected by malware? No thanks!

Egon Mark infected by malware? Absolute hilarity!

KillingTimeItself ,

i mean yeah, but that’s only situationally funny.

MummifiedClient5000 ,

Sub7 existed before 2000 if I’m not mistaken.

redbr64 ,
@redbr64@lemmy.world avatar

I was just about to comment that this reminded me of the sub7 days. Not sure when it was released, but I definitely used it in 1998

Edit, memory was wrong, it was released in February 1999

bigredcar , in Roses are red, violets are blue, everyone is using IPv6, why aren't you?

Just remember we got rid of TLS 1.0 the same thing can be done with IPv4. It’s time for browser makers to put “deprecated technology” warnings on ipv4 sites.

NocturnalEngineer ,

IPv4 isn’t depreciated, it’s exhausted. It’s still a key cornerstone of our current internet today.

We still have “modern” hardware being deployed with piss-poor IPv6 support (if any at all). Until that gets fixed, adoption rates will continue to be low. Adding warnings will only result in annoying people, not driving for improvement.

gamermanh ,
@gamermanh@lemmy.dbzer0.com avatar

Adding warnings will only result in annoying people, not driving for improvement.

Given how poorly adoption has gone so far this might be the only way to get actual fast support rolled out. Piss people off, get change

KillingTimeItself ,

IPv4 isn’t depreciated, it’s exhausted.

exhaustion probably also constitutes as “deprecated” once the utility of a system designed to be, well, useful no longer meets the usefulness quotient that it previously provided. Suddenly It’s “deprecated technology”

Hammerheart ,

IPv4 should be deprecated, but it’s not

KillingTimeItself ,

genuine question, any reason not to just actually deprecate it then? Like just stop producing hardware that routes IPV4. Chances are there’s enough that’ll already do IPV4 it won’t be a problem, and im sure if you really needed to, you could figure something out.

fubarx , in this is what peak web traffic looks like

All 418 error codes. We good.

tgxn ,
@tgxn@lemmy.tgxn.net avatar

It’s all teapots all the way down.

bruhbeans , in this is what peak web traffic looks like

Deleting all the S3 buckets on my way to the exit interview

the_doktor , in Roses are red, violets are blue, everyone is using IPv6, why aren't you?

Working in computing for years and this is what I’ve heard

2000: IPv4 is about to dry up, we really need to start moving to v6!

2005: OH NO THE SKY IS FALLING IPv4 IS ALMOST GONE! IPv6 IN THE NEXT YEAR OR TWO OR THE INTERNET WILL DIE!

2010: WE’RE SERIOUS THIS TIME IPv6 NEEDS TO BE A THING RIGHT NOW! HELP!

2015: Yeah, okay, NAT has served us well so far, but we can only take it so far, we really need v6 to be the standard in the next 5-10 years or we’re in trouble!

2020: Um… guys? IPv6? Hello? Anyone? crickets

2024: IPv6ers are now the vegans of networking

this may or may not be satire, just laugh if unsure

r00ty Admin ,
r00ty avatar

But new IPv4 allocations have run out. I've seen ISPs that won the lottery in the 90s/2000s (when the various agencies controlling IP allocations just tossed them around like they were nothing) selling large blocks for big money.

Many ISPs offer only CGNAT, require signing up to the higher speed/more expensive packages to get a real IP, or charge extra on top of the standard package for one. I fully expect this trend to continue.

The non-move to IPv6 is laziness, incompetence, or the sheer fact they can monetize the finite resource of IPv4 addresses and pass the costs onto the consumer. I wonder which it is.

umbrella ,
@umbrella@lemmy.ml avatar

a combination of all of these, most likely

szczuroarturo ,

Oooh is that why ipv6 adoption is so regional ( Based on www.google.com/intl/en/ipv6/statistics.html ) . Like france ,germany or india having more than 70 % while italy or poland hanging below 20% ? Also judging from this site it seems like ipv6 is actually getting adopted at quite the rapid pace. Even if some regions are faring way worse than the others.

GTG3000 ,

I mean, at least over here, a white IP has been a paid service for as long as I can remember. Absolute majority of people don’t need a static IP, which is why we haven’t had internet “breaking” because of IPv4 running out.

r00ty Admin ,
r00ty avatar

But this is another interesting thing. Dynamic IP addresses made sense, when we were dialling up for internet, and the internet wasn't the utility it is now.

Back then we'd dial up for a few hours in the evening or weekend. Businesses that didn't have a permanent presence would connect in the day to send/receive emails etc. So, you could have 500 IP addresses to around 1500 users and re-use them successfully.

But now, what is the real point in a dynamic IP? Everyone has a router switched on 24/7 sitting on an IP. What is the real difference, in cost in giving a static IP over a dynamic one? Sure, CGNAT saved them IP addresses. But, with always on dynamic just doesn't make sense. Except, that you can charge for a static IP. The traffic added by the few people that want to run services is usually running against the tide of their normal traffic. So, that shouldn't really be an extra cost to them either.

If everyone that ran a website did the extra work (which is miniscule) to also operate on IPv6, and every ISP did the (admittedly more) work to provide IPv6 prefixes and ensure their supplied routers were configured for it, and that they had instructions to configure it on third party routers, IPv4 would become the minority pretty soon. It seems like it's just commercial opportunity that's holding us back now.

GTG3000 ,

From what I understand about the providers, they really don’t like it when you’re generating outbound traffic. Sure it’s advertised to be symmetrical, but the actual hardware they place here can get bogged down if you start hosting a popular site (or seeding too much).

And of course, if they can charge you for a static IP then defaulting to dynamic is imperative, isn’t it? Pretty sure they’d try that with IPv6 too just to keep the income stream.

Regardless, the actual issue with IPv6 around here seems to be that the providers either don’t know how to or don’t care to implement it properly. Sure I can tick on “IPv6” in my router, but that doesn’t mean I have an unbroken chain or routing hardware that supports it connecting me to the great internet.

r00ty Admin ,
r00ty avatar

And of course, if they can charge you for a static IP then defaulting to dynamic is imperative, isn’t it? Pretty sure they’d try that with IPv6 too just to keep the income stream.

I've mentioned it elsewhere. Some ISPs here in the UK have a dynamic IPv6 prefix. Want a static one? Sure, pay up.

I suppose to an extent this kind of thing is akin to low cost airlines. Sure you can "technically" get a flight for €15. But once you've made it even remotely bearable you'll be paying around the cost of a full service airline. But, it does make it very hard to have a website doing a proper price comparison.

I suspect it's the same here. I pay a bit more than most ISPs. But for that, I get decent in country support, fixed IPv6 prefix and static IP (I actually have a legacy IP block, but you don't get those included in the base price any more). Whereas plenty of other providers charge less, but will charge you for anything beyond the most basic of connections. It means my ISP always appears at the expensive end of price comparisons.

GTG3000 ,

Yeah, I just checked, getting a static IPv6 here in Russia from my ISP costs ~.4 eur per month. IPv4 is ~1 eur, so you get a discount if you go for v6! Oh and despite my ISP saying they support v6, connection I got doesn’t have it at all. Probably whatever hardware they got in my house doesn’t know what it is.

ikidd ,
@ikidd@lemmy.world avatar

Apparently it’s still cheaper to buy IPV4 blocks than to upgrade all the equipment and IT staff to use 6.

Zorsith , (edited )
@Zorsith@lemmy.blahaj.zone avatar

Any (enterprise grade) equipment not capable of 6 that is still in use is a ticking time bomb.

Toribor ,
@Toribor@corndog.social avatar

The adoption of IPv6 on some segments of the Internet has lessened the crisis around IPv4 availability.

MystikIncarnate ,

As a networker, ipv6 is the future. I’m a fan of it, but I don’t really talk about it anymore because there’s no point.

I threw in the towel after an ISP messed up so badly that I just couldn’t bother anymore.

At a previous job a client I was doing some work for got a new internet connection at a new site, the ISP ran brand new fiber for it. This wasn’t a new building or anything, but the fiber was new. They allocated them a static IPv4 thing as usual, and I asked the tech about V6, and they said we would have to take it up with the planning team, so I did. I was involved in the email chain at the end of the sales process to coordinate the hookup. So I asked. After many emails back and forth, I was informed the connection was allocated.

They allocated one single IPv6 subnet directly off of their device. I couldn’t even.

For those that don’t understand, the firewall we had connected to the device is an ipv6 router. What normally happens, especially in DHCP customer connections, is that the router will use DHCP-PD to allocate a subnet for the router to use on the LAN, and automatically set up a route to say “reach this subnet we allocated for this router, via this router” kind of thing. I’m dramatically simplifying, but that’s the gist. In DHCP-PD, the router will also have an IPv6 address on the ISP-facing link to facilitate the connection. In the case of the earlier story, they gave us an entire subnet to communicate between the ISP and the router, and didn’t give us a subnet for the client systems inside the network.

I did ask about this and I can only describe their reply as “visible confusion”.

I know many who will still be confused by this point are people who have not used IPv6; to explain further: the IP on your local (LAN) systems needs to be a public IP address, because the router no longer does network address translation when sending your data to the internet. So the IP on the router has no bearing on your computer having a connection to the internet over v6. If your local computer does not have a globally unique ipv6 address, you cannot use IPv6. There are ways around this, NAT66 exists but it’s incredibly bad practice in most cases. The firewall I was working with didn’t really support NAT66 (at least, at the time) and I wasn’t really going to set that up.

ISPs are the reason I gave up on IPv6.

I’ll add this other story to reinforce it. I’ll keep it brief. A different ISP for a different company at a different site entirely. The client purchased a static IPv4 address, and I asked about IPv6, as you do. To preface, I know this company and used them for my own connection at the time. They have IPv6 for residential clients via DHCP-PD. I was told, no joke, that because of the static IPv4 assignment, and how they execute that for businesses, that they couldn’t add IPv6 to the connection, at all.

The last thing I want to mention is a video I saw, which is aptly named “CGN, a driver for IPv6 adoption” or something similar. It’s a short lecture about the evils of carrier grade NAT, and how IPv6 actually fixes pretty much all the bs that goes with CGN, with fewer requirements and less overhead.

IPv6 is coming. You will prefer IPv4 until you understand how horrific CGN is.

the_doktor ,

Yep. It was mostly a joke. Mostly. The bungled adoption of v6 plus all the ways we can still leverage v4 is what’s keeping v6 from being adopted any time soon, but one day we’re going to have to rip off the band-aid and just go for it. Sure, v6 is going to bring its own issues and weirdness, but FUTURE!

Hobo , (edited )

I swear it’s going to be a generational change where it takes a slow adoption by the younger network people as the older network people slowly retire. Kind of like how racism and sexism has diminished. It wasn’t like we changed anyone’s mind, just that people held onto it until they died and younger people just said, “The future is now, old man.” and moved past it.

MystikIncarnate ,

All I want to say about this is that the technology specialists, especially in networking, are usually not this opposed to change. Things change for networking and systems folks all the time. We’re used to it. Most of the time the hard sell is with the management folks who Green light projects. They don’t want to “waste” money on something that “nobody wants”.

Legitimately, one company I asked about IPv6 said to me that customers had not requested it, so they haven’t spent any time on implementing it.

As if customers know what’s good for them…

crispy_kilt ,

I see you’ve worked with my employer

Semi_Hemi_Demigod ,
@Semi_Hemi_Demigod@lemmy.world avatar

“IP address are four sets of numbers with dots in between AND THAT’S HOW I LIKES IT!” - Me, an old network guy

Honestly the fact that I can’t remember or type IPv6 addresses is a big reason I haven’t bothered figuring it out.

Hobo ,

I imagine you sitting there like Scotty, “Give me an ip address, not no colon, not no hexadecimal, and not no bloody double colon. Just 4 numbers between 0 and 255 with a dot in between.”

MystikIncarnate ,

So, my argument here is… Why the hell are you memorizing IP addresses?

Is your DNS so misconfigured that you’re still punching in IPs by hand?

DNS is the solution. Going to “router.domain.local” or whatever your internal domain is, is easier to remember than… Which subnet am I on again? Is this one 192.168.22.254? Or 192.168.21.1?

Stop punching in numbers like a cave man. Use DNS. You won’t even notice if it’s IPv6 after that

Semi_Hemi_Demigod , (edited )
@Semi_Hemi_Demigod@lemmy.world avatar

And what happens when DNS inevitably falls over and I need to fix it?

And when I’m watching IP addresses scroll by, IPv6 ones are a lot harder to read than v4

KillingTimeItself ,

some super gigabrained chad linux nerd will have written a tool to automatically configure it and have open sourced it.

You could probably just use that. I think like most things in life, the answer is automation.

Semi_Hemi_Demigod ,
@Semi_Hemi_Demigod@lemmy.world avatar

I wouldn’t trust it unless I wrote it myself. And even then maybe not.

KillingTimeItself ,

well then go and do it manually, surely you as a human wouldn’t make any mistakes. Would you?

MystikIncarnate ,

DNS, by its very nature is redundant. So DNS shouldn’t just fall over. If it does, you’re doing something wrong.

If you absolutely need to go to IP addresses, they should be documented.

Unless DNS is outright wrong, there should not be an issue.

For scrolling: are you staring at active log files? Who isn’t using a syslog aggregator? You can easily look up the IP of whatever device that is interesting and filter the log by that IP.

crispy_kilt ,

That’s not what an IP is though, that’s just dotted representation

el_abuelo ,

Speaking of being an old man, let me tell you:

“The future is now old man” != “The future is now, old man.”

I genuinely tripped over this sentence thanks to the lack of punctuation.

Hobo ,

Fixed. Thanks!

Zorsith ,
@Zorsith@lemmy.blahaj.zone avatar

Next up, the Oxford comma; Meet the strippers, Hitler and Stalin

MystikIncarnate ,

The important bit is that almost every major web service is already running fully dual stacked. Azure, Amazon, Meta, CloudFlare, Google… If it’s a commonly known internet company, it’s probably ready for IPv6.

There’s still plenty that isn’t ready, but most well known things have been ready for years at this point.

the_doktor ,

The fact that almost the entire internet is controlled by those evil companies is really fucking sad. I remember the old days when people, you know, hosted their own shit and used manual load balancing to keep large sites up and working.

SeeJayEmm ,
@SeeJayEmm@lemmy.procrastinati.org avatar

I gave it the old college try about 6 months ago. Found out how to send the req for a subnet to my ISP. Configured my opnsense. When it worked, it worked. But it would randomly stop routing regularly. After a lot of troubleshooting determined it was the isp and have up.

Maybe I’ll try again in another 6 months.

MystikIncarnate ,

This is remarkably common. A major factor is how to handle renewals. There appears to either be bugs with the procedure or there’s disagreement on how it should be handled. So it will work, for a while, until a renewal needs to happen, then everything goes to shit.

I’ve directly witnessed this in router/firewall logs. That there’s an attempt to renew the DHCP-PD, which does not get a valid reply.

KillingTimeItself ,

so is there just no standard for renewal? Or are ISPs just refusing to use the standard, for whatever reason?

I can’t imagine we don’t already have a standard for this shit. I’d be baffled if we didn’t. So surely it’s just ISPs being their usual, useless selves.

MystikIncarnate ,

This is less to do with the ISPs and more to do with the implementation of DHCP-PD renewals on various software/hardware devices. I’m not going to point any fingers, but it seems that some vendors don’t play very nicely with other vendors.

KillingTimeItself ,

oh so it’s a classic instance of shitty hardware vendors doing shitty software things.

Gotta love technology.

MystikIncarnate ,

Always has been

SpaceCowboy ,
@SpaceCowboy@lemmy.ca avatar

Thanks for the comment. Kinda confirms my approach (mostly out of laziness) of “I’ll do it when the ISP starts pushing it” is the correct one.

I think tech advocacy generally doesn’t work, and in the case of IPv6 I can’t see it working at all unless they can convince the ISPs to devote a lot more resources to it. But since I’m not an ISP… meh, whatever I guess.

Disaster ,

CGnat is an abomination.

Alawami ,

At least you can talk to someone at your ISP who can change things, in 10 years I was literally never been able to contact someone who knows anything about networks in any of the 3 big ISPs here… all I get is this:

“oh you have speed issue? Let me “refresh” your connection”

“No sir i have no speed issues, I just need to be able to open IPv6 ports”

“Oh trying to changing the cable port?”

“Sigh… can you transfer me to advanced support plz”

“Sure thing”

Advanced support: “So you having speed issues?”

“No i just need to be able to open IPv6 ports”

“Ah ports, you can do that from your router settings i think”

“No sir, you are the only ISP here where I can’t open ports or receive any ICMP on my ipv6”

“Let me see… i’ll refresh your connections”

And it’s the same of many different issues, you can’t get a hold of anyone who can change anything in any layer about any config. Take it or leave it…

MystikIncarnate ,

At most, the difference between your experience and mine was that the support I recieved at least understood what IPv6 was, which is likely a function of most of my stories being from business support, rather than residential support.

Almost every time I call I get nowhere. Which is why I’ve given up. Obviously, someone high up in the technical teams is trying to implement IPv6 with very limited success. So I’m just trying to be patient, as they navigate the hellscape of corporate approvals and get things working.

It’s slow going, but at least it’s going.

Goodie ,

Imho

Ipv4 and peak oil are similar.

We’re constantly running out; but every fes years, we figure out a new way to extract more oil/make do with the addresses we currently have.

Someone sells of their underused block, or more people move to the services with excess IP addresses if they need one.

KillingTimeItself ,

We’re constantly running out; but every fes years

critical difference here was also the consumption of oil. It’s gone down significantly since then as processes have moved to other materials and more efficient methods of manufacturing, due to the price increase of oil. Likewise, our oil consumption has gone down, and our ability to extract it HAS gone up, just not all that much. The big difference is that there’s just more oil that we know about now, than there used to be.

IPV4 addresses are a static pool, that never changes, the only thing that changes is the adoption of them, as certain things move to IPV6 they’re still likely to hold IPV4 in some capacity, as IPV6 isn’t fully rolled out almost anywhere.

Goodie ,

critical difference here was also the consumption of oil. It’s gone down significantly since then as processes have moved to other materials and more efficient methods of manufacturing,

Do you have a source for that? Because this seems to suggest fossil fuel and oil demand might of roughly plateaued the last few years, the dip looks pretty welly correlated to Covid.

IPv4 addresses are a static pool, yes. But we’re continually using them more efficiently, the same as Oil. The difference being that Oil has a limit on the amount of energy contained in its chemical bonds, but you could quite happily host 1,000 or 10,000 websites on a single server.

KillingTimeItself ,

Do you have a source for that?

yes sorry, what i meant to say was “the expected usage of oil over time” When a lot of the early to late 90’s "we’re running out of oil stuff was happening, a lot of predictions would’ve been based on continued increased usage of oil. Rather than it just randomly plateauing. It’s likely that the predicted curve would’ve have been significantly more exponential than presented.

And we’re also talking on a more local scale here, so this would be more centric around a single country, or north america specifically. Or perhaps assuming that third world countries would start industrializing or something. There are any number of factors that could have influenced the potential consumption predictions.

another interesting tidbit, this was also just after the time we thought we were going to build a lot of nuclear power, so arguably that influenced the older variants of the graph as well as the modern consumption of oil for power production, for example.

IPv4 addresses are a static pool, yes. But we’re continually using them more efficiently, the same as Oil.

Yeah but idk about this one. Perhaps at the scale of CDNs and proxy distribution, but generally, i don’t see this being very possible, simply because in order for a site to be supported strictly by IPV6 it must be supported by all connecting clients, and considering that most clients today are uh, not IPV6. If you want your service to work, it’s going to need to be IPV4. I mean sure internal communications, but those aren’t real so you can use any subnet range you want, it makes no difference.

but you could quite happily host 1,000 or 10,000 websites on a single server.

it depends on what you classify as a server, what you define a website as, and how you define the usage of it, but yeah generally, ignoring the fact that this is irrelevant, it’s about that simple.

Goodie ,

And we’re also talking on a more local scale here, so this would be more centric around a single country, or north america specifically.

North America is an interesting example here, because North America HIT peak oil once, way back in the 80’s, and it was only with the invention of Fracking that it came back.

Yeah but idk about this one. Perhaps at the scale of CDNs and proxy distribution,

Once upon a time people debated if virtual hosts were best practice or if that would affect their SEO. We’ve definitely progressed since then, both to conserve IP addresses, but mainly because DDOS prevention is best done centralised (Looking at you Cloudflare).

Kalcifer ,
@Kalcifer@sh.itjust.works avatar

We’re constantly running out; but every fes years, we figure out a new way to extract more oil/make do with the addresses we currently have.

It’s a supply and demand situation. We run out of things not only when they are physically exhausted, but also when it’s not economically viable to find ways to make more. But when demand increases enough, it will eventually become economically viable again.

Aux ,

IPv4 dried up a long time ago. But it’s different for every country. Countries like US and UK simply took over large blocks of IPv4 addresses and countries like Brazil got fucked. So, if you’re in a country with a large pool, you won’t notice any issues today, but if you’re not so lucky, a lot of internet services are not accessible to you because some dickhead got IP banned and that IP is shared by thousands if not millions of users in your country.

smileyhead ,

Who needs an IP address anymore? What year is it? You want to connect to your friend’s computer and exchange some information via computer system, seriously? Just use Cloudflare, Google or Azure and route everything through them.

the_doktor ,

You… do know how computers connect to each other, right? I hope this is sarcasm. But these days unless it’s specifically stated, it’s usually not, just a bunch of dumb kids who can’t understand how the internet works.

And then the dumb kid realizes he’s dumb and says “uh yeah, sarcasm, duh, didn’t you know i was joking, hahahahaha, yep, I knew, of course I did!” when he totally didn’t.

But regardless of the fucking point, no one wants to use these big business trash that is ruining the internet.

KillingTimeItself ,

it’s y2k, but not 2k, it’s just y.

user224 , in University Students
@user224@lemmy.sdf.org avatar

I am not a programmer, I just barely wrote one bash script in the past. But I’d say more comments are better than too few.

When I later wanted to edit it, I got completely lost. I wrote it with absolutely no comments.

01101000_01101001 , (edited )

While this is true, an alternative is to name your variables and functions descriptively so that when you see number_of_cats you know that variable is the number of cats, and buyAnotherCat() is a function that increases the number of cats.

riodoro1 ,

Bash is a shit „language” and everytime i need to write the simplest thing in it I forget which variable expansion I should use and how many spaces are the right amount of spaces. It’s impossible to write nice to read bash, but even in C you can write code that comments itself.

AProfessional ,

bash sucks but i don’t agree. Some simple rules like regularly use intermediate variables with useful names and never use shorthand arguments goes a long way.

marcos ,

It’s perfectly possible to write nice to read bash, and to also make is safe to run and well-behaved on errors.

But all the three people that can do those (I’m not on the group) seem to be busy right now.

Manifish_Destiny ,

Yeah you lost me at well behaved.

Manifish_Destiny ,

Still better than powershell though

Fades ,

Wrong. Too many comments makes the code messy and less readable and also it provides ZERO value. Just look at the post, WHAT is useful about ANY of that comment???

All it is is a waste of goddamn space, literal junk crowding the actual code.

I love how you admit you aren’t a developer but feel quite confident to tell us that a larger number of comments automatically means it’s better.

This person articulated it better than I: midwest.social/comment/10319821

LwL ,

Too many is still better than too few, and it’s not close. Useless comments make parsing a bit harder. Missing comments can mean hours of research.

sping ,

These are arguments talking past each other. Sure 1 useful comment and 9 redundant ones can be better than zero, but comments are not reliable and often get overlooked in code changes and become misleading, sometimes critically misleading. So often the choice is between not enough comments versus many comments that you cannot trust and will sometimes tell you flat-out lies and overall just add to the difficulty of reading the code.

There’s no virtue in the number of comments, high or low. The virtue is in the presence of quality comments. If we try to argue about how many there should be we can talk past each other forever.

floofloof ,

I’ve been programming for almost 25 years and I’d still rather see too many comments than too few. A dogmatic obsession with avoiding comments screams “noob” just as much as crummy “add 1 to x” comments. If something is complex or non-obvious I want a note explaining why it’s there and what it’s supposed to do. This can make all the difference when you’re reviewing code that doesn’t actually do what the comment says it should.

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