@loopback0 I tried ignoring him once, back in 2018. It didn't end well.
Posts made by Gustav
-
RE: The Official Status Thread
-
RE: The Official Status Thread
@TimeBandit the same one as always: I just can't get @Polygeekery leave me alone. I tried begging, I tried threatening, I tried changing accounts, nothing works.
-
RE: Random Question of the Day
@Tsaukpaetra you should always do one but absolutely never do the other.
-
RE: I hate printers, with a passion
@Zerosquare said in I hate printers, with a passion:
As a cat, I feel offended
-
RE: WTF Bites
In other news, my employer's HR portal 429'd me for opening the last 4 pay stubs too fast.
-
RE: WTF Bites
If you put three hyphens on their own line (like a poor man's horizontal line) in Zillow direct message, that line and everything after it will be cut from the message. The worst part is that I know I should've predicted this can happen.
-
RE: WTF is happening with Windows 11? And nothing else
@dcon said in WTF is happening with Windows 11? And nothing else:
@Gustav said in WTF is happening with Windows 11? And nothing else:
It's 20 fucking 24 why the fuck the fucking Windows fucking Subsystem for fucking Linux CANNOT HANDLE THE FUCKING LAPTOP GOING TO SLEEP AND THE CLOCK GOES OUT OF SYNC!!!!!!!!!!!!
Maybe the same reason that whenever my ubuntu system does to sleep, it requires a hard boot.
I did some googling and turns out the root cause is an old, well known bug in Hyper-V (they implemented a kernel patch workaround that will come in the next release). I doubt it applies in your case.
-
RE: WTF is happening with Windows 11? And nothing else
It's 20 fucking 24 why the fuck the fucking Windows fucking Subsystem for fucking Linux CANNOT HANDLE THE FUCKING LAPTOP GOING TO SLEEP AND THE CLOCK GOES OUT OF SYNC!!!!!!!!!!!!
-
RE: The Official Funny Stuff Thread™
@Gern_Blaanston said in The Official Funny Stuff Thread™:
Back in the day, "forget college, become ninja" was a popular catchphrase in Poland.
-
RE: Aviation Antipatterns Thread
Fun fact: "Latam" is Polish for "I'm flying".
-
RE: The Official Funny Stuff Thread™
@Applied-Mediocrity I LOVE THE WHOLE WORLD AND ALL ITS CRAZYNESS
-
RE: The Official Funny Stuff Thread™
@Zenith I hoped for some TempleOS type shit with that video title, was severely disappointed.
-
RE: The Official Funny Stuff Thread™
@Tsaukpaetra said in The Official Funny Stuff Thread™:
Somewhere out there there's a Bitcoin wallet of mine that's likely worth some not-really-money!
I've read an article about 5 years ago how Bitcoin chain became so large that brute-forcing wallets became more cost-efficient that mining new blocks.
-
RE: WTF Bites
There could be a bit of performance degradation in case shit like
!1
fails to constant-fold.In practice this will never happen, because V8 and all its ripoffs have mastered the art of type inference and compile time evaluation. It's the entire reason why asm.js works at all, and it's over a decade old at this point - JITers only got better in that time.
-
RE: WTF Bites
@PleegWat why would there be a difference in execution performance? It's the same code, just written differently. The JIT output is the same.
-
RE: WTF Bites
Minification alone is consistently much worse (~50%) than gzip alone, except for lodash where it's much better. Minification+gzip is consistently much better (~50%) than gzip alone.
-
RE: WTF Bites
By the way, the syntax generated by their transpilers or whatever makes me wonder if the point is backwards-compatibility to 1989 or if it's intentionally unreadable. Because it sure looks like the latter.
Well, it is intentional, but obfuscation isn't the main goal. It's part minification (!1 is 60% shorter than false), part asm.js trickery that's used in lieu of proper type system because guess what, optimizing JIT compilers work much better if they can ensure they're working with integers and not arbitrary objects with unknown properties.
-
RE: WTF Bites
I hate web devs. All of them. They're all a bunch of shit-slinging morons.
You don't hate web devs enough. You think you do, but you don't.
-
RE: Random thought of the day
@Watson in movie universe, that's a much more common occurence than the documented details becoming slightly different 10,000 years down the line.
-
RE: Random thought of the day
@Arantor said in Random thought of the day:
@Gustav said in Random thought of the day:
Ancient magic/necromancy books, as portrayed in fantasy and horror novels and movies, are basically documentation for interfacing with other planes of existence.
Are there any books or movies that explore the idea of said documentation being out of date?
Surely every time it is a horror movie, that's just showing the consequences of the documentation being out of date?
As far as I know, every single time without a fault, the book is always entirely correct and up to date, it's just the users are unable to read it (or misread it) for whatever reason. If anything, the consequences are for not following the documentation to the letter.
-
RE: Random thought of the day
Ancient magic/necromancy books, as portrayed in fantasy and horror novels and movies, are basically documentation for interfacing with other planes of existence.
Are there any books or movies that explore the idea of said documentation being out of date?
-
RE: The Official Status Thread
@topspin said in The Official Status Thread:
and don’t speak the language.
Their one redeeming quality
-
RE: Today in reading the headlines...
@jinpa said in Today in reading the headlines...:
For the average First Worlder, a 25 day fast is good for them.
What if you exclude Americans?
-
RE: No Comments on Funny Stuff
@Arantor said in No Comments on Funny Stuff:
But to your point, I’ve certainly written enough code over the years that is complex enough to warrant comments, where splitting it into functions wouldn’t prevent that complexity (and may well make it worse)
Me too. But in specific case where the function is long and multi-part and you can put comments that split it into parts, splitting is good.
-
RE: No Comments on Funny Stuff
@Arantor not sure if it's because you use PHP and other dynamically typed languages and I don't, but in my experience it's very rare that there are extra assumptions that need to be made beyond what's already in the function prototype. And anyway, I was specifically talking about comments that demarcate and describe individual parts of a function.
-
RE: No Comments on Funny Stuff
@sockpuppet7 said in No Comments on Funny Stuff:
@Gustav said in No Comments on Funny Stuff:
@MrL if you can't come up with names for the parts of your 250 line function, I don't think your one-line comments will do any better. Double so for #regions.
250 lines is perfectly cromulent if the function is simple
If the function is simple it doesn't need comments. If it needs comments it's not simple.
-
RE: The Official Funny Stuff Thread™
@Bulb said in The Official Funny Stuff Thread™:
@Gustav said in The Official Funny Stuff Thread™:
@PleegWat not sure what you mean by that remark but there's a significant difference in how Windows and Linux memory allocators work. In particular, Linux pretends virtual memory is literally infinite. Makes OOM conditions much more .
Doesn't Windows pretend it can grow the pagefile infinitely for a very similar end result?
No, when you can't use memory you can't allocate. At least that's how it used to work in 7. Dunno if they changed that later on.
The thing is with modern software that uses tons of threads, there really is a huge amount of memory allocated and never used.
Linux has always been addicted to forking and huge amount of processes, and has been designed right from the start with that in mind. And overcommitting memory was part of that.
-
RE: WTF Bites
@Tsaukpaetra said in WTF Bites:
Article @izzion posted said in WTF Bites:
meaning that for the first time in four years, it's February 29.
Written as if that was an astonishing or unexpected occurence....
There's an old Polish joke we like to tell every December. "Municipal officials were caught off guard by the snowfall."
-
RE: The Official Funny Stuff Thread™
@PleegWat not sure what you mean by that remark but there's a significant difference in how Windows and Linux memory allocators work. In particular, Linux pretends virtual memory is literally infinite. Makes OOM conditions much more .
-
RE: Killed by Google
Can't we just all agree every native English speaker sucks and move on already?
-
RE: Things that remind you of WDTWTF members
@HardwareGeek the only reason I don't use mouse in Vim is because it's even more useless than using keyboard.
-
RE: Things that remind you of WDTWTF members
@cvi said in Things that remind you of WDTWTF members:
Anuary, Bebruary, Carch, Dapril, Eay, Fune
Two Eastern first names, two Western last names, and one drug name. Can you guess which is which?
-
RE: The Official Funny Stuff Thread™
@Mason_Wheeler that's only true of Linux hardware
-
RE: I, ChatGPT
@Arantor I'm sure whatever compensation SO receives will be fairly shared with the actual authors of their content.
-
RE: The Official Status Thread
@HardwareGeek said in The Official Status Thread:
@izzion said in The Official Status Thread:
@Zenith said in The Official Status Thread:
Status: more security theatre
God damn, even toy collecting forums are getting in on the password scam where every X days you have to scramble the hell out of your passwords because somebody might post as you...after they empty your bank, transfer your car titles, steal your house deed, take your 401K, rent a bunch of tapes from Blockbuster, order dozens of sardine pizzas, impersonate you at the local chapter of Oprah's book club, and...
And they wonder why people keep a passwords on a post-it note if not a notebook. Don't they realize everybody's pulling this scam? How many fucking combinations of app/site-username-password are we supposed to remember when they change as often as every 30 days?
Don't worry, I'm sure everyone will adopt NIST's recommendations for WIWTFA and super long passwords and all the other annoying restrictions without adopting the "and no longer make passwords expire on a schedule" part of it, any day now.
My work password will be expiring soon. I keep getting reminders — why not change it now, so you don't get locked out — so I looked up the new requirements. They're encouraging people to switch from passwords to pass phrases, so the minimum length is increasing, but spaces now count for the "special character" requirement. Yes, they still require mixed case, digits, and special characters. And no dictionary words. Their recommendation is to do letter-digit swaps on words in your chosen phrase; thus defeating what XKCD will tell you is one of the big advantages over the traditional way of creating non-dictionary passwords. These recommendations are Fub4r. And don't write them down, so you can forget which letters you changed to digits.
Polish words aren't in English dictionary, and come with special characters out of the box
-
RE: Not sure if good idea, bad idea or evil idea
@Zenith nah you'll be fine. Your scraper will get banned long before serious men in suits get the idea to pay you a visit. Source: I make scrapers for a living.
-
RE: No Comments on Funny Stuff
@topspin said in No Comments on Funny Stuff:
The thread title is a lie
Do you see any comments on anything funny?
-
RE: Not sure if good idea, bad idea or evil idea
@Zenith sure, but do it once every few seconds to avoid getting rate limited. Use proxy if possible and not too expensive (either in time or money). Or if the invoices are sequential and you know the approximate invoice date, you can do binary search.
-
RE: No Comments on Funny Stuff
@MrL said in No Comments on Funny Stuff:
@Gustav said in No Comments on Funny Stuff:
@MrL if you can't come up with names for the parts of your 250 line function, I don't think your one-line comments will do any better. Double so for #regions.
A firm believer I see.
Believer? I'm doing the exact opposite. I couldn't doubt your comment writing skills any harder.
-
RE: No Comments on Funny Stuff
@Zecc said in No Comments on Funny Stuff:
@Gustav said in No Comments on Funny Stuff:
No matter how you fold up your code, it will always, always be less readable than multi-function version.
Passing a ton of local variables back and forth just for the sake of introducing a single-use function isn't pretty, let me tell you.
Neither is following all the changes done to that ton of local variables throughout said long function. And when you hide those variables (or variable accesses) behind a #region, it only gets worse, not better. And if you really need to access all those variables everywhere, use a goddamn context object. Here, now you can pass however many variables you want with O(1) characters per inner function. It's not that hard.
Even in sensible code, having to jump back and forth to have a full picture of what's going on does not help readability.
And what do you think happens when your function doesn't physically fit on a screen? What happens when you tell your IDE to stop displaying part of the function? At least when you make separate functions, you can see with one glance how the individual parts are interconnected.
Better doesn't mean good. Splitting is always better than #regioning. Not always good.
-
RE: No Comments on Funny Stuff
@ixvedeusi Countercounterpoint: if you can summarize what the function does in a line or two of comments, it doesn't need any comments explaining what parts of it do.
I wasn't saying splitting is always preferred to not splitting. I said splitting is almost (ALMOST, ALMOST) always preferred to writing the comments about what each part does.
-
RE: No Comments on Funny Stuff
@ixvedeusi if your function only did one thing, it wouldn't be so long. The only exception is functions that are long because they're very repetitive, but they're so trivial they don't need any comments to start with.
-
RE: No Comments on Funny Stuff
@MrL if you can't come up with names for the parts of your 250 line function, I don't think your one-line comments will do any better. Double so for #regions.