How can you trust anyone's code to work at all?
Posts made by immibis_
-
RE: Why Oh My Zsh is completely broken (article)
-
RE: Why Oh My Zsh is completely broken (article)
- You can find four-space indents and two-space indents mixed in the same file;
- You can find function definitions with the function keyword and without in the same file;
- You can find 167-character-long lines mixed with early-broken lines (yes, sometimes in the same file);
- You can find completely commented out blocks of code in the core lib, where the average user is not supposed to touch;
I'm fairly sure none of those four things cause code to break. Sure, they make it easier for programmers to break the code, but they don't actually break the code themselves.
-
RE: Buying insurance... in a video game
@JazzyJosh said:
generally all forms of insurance, in real life as well, cost money up front.
Getting scrap value from your trash isn't even insurance though. IRL, you just drag it to the scrap yard and have it weighed.
Not if it's in exploded into millions of pieces in enemy territory.
-
RE: From Twitch spam sent to me
Bicycle: two cycles
Semicircle: half a circleAn annual event: the interval between events is one year
A biannual event: the interval between events is two years
A semiannual event: the interval between events is half a yearThat has the unfortunately confusing side effect that a biannual event happens 0.5 times per year, and a semiannual event happens twice a year.
-
RE: From Twitch spam sent to me
Flash in general is meh. Twitch's Flash player in particular, however, is completely horrible, and it's a good thing they're replacing it (with anything else at all).
-
RE: Am I the only one who knows what "strongly-typed" even means anymore???
Hm.
A novel part about Koka is that it automatically infers all the side effects that occur in a function. The absence of any effect is denoted as total (or <>) and corresponds to pure mathematical functions. If a function can raise an exception the effect is exn, and if a function may not terminate the effect is div (for divergence).
Someone call that Turing guy...
That's why they have the word "may". If the compiler can't prove that it always terminates, then it may terminate.
findCollatzConjectureCounterexample
may terminate. -
GitHub bans repository over use of the word "retard"
GitHub seems to have disabled a repository for a piece of software called "WebM for Retards". (The user page still shows the repository description)
Discuss.
-
RE: The state of web development
(by the way, why does some sites insist to redirect to HTTPS? I want to watch a publicly available video, why does the connection need to be encrypted?)
Because the NSA are probably noting the fact that you requested that video, and are using it to improve their estimated likelihood of you being a terrorist, dissident, or "radicalized American".
-
RE: The mobile web sucks...because of you
... the phone's paltry 1GB of memory ...
wat? That ls literally 4 times what you could expect on Windows XP.
-
RE: Samsung crapware hoists them by their own petard...in the PRC!
Someone please say this also applies to Google crapware on Samsung phones.
-
RE: "Sleep" is a relative term, apparently
That's what
net stop "windows update"
(or the services GUI) is for.Don't worry, they'll probably disable that ability in a few updates. Evergreen all the computers!
-
RE: Algorythmics Hiring
My hiring algo is quite simple:
return girl && girl.isHot(); ```</blockquote> In what language do booleans have an `isHot()` method? And why are you interested in only hiring booleans you shot anyway?
-
RE: OPM Hack
That's not how I read it. To me it was more like:
We know it's fucked, that's why we're even here in the first place. If there hadn't been a new director in who actually gave a shit about security in the first place this breach would never even have been discovered. But cleaning this shit up is gonna take some doing, and ‘encryption’ isn't a wand that we could just magic away the stupid with.
Don't be ridiculous, encryption solves every conceivable problem. Including world hunger.
-
RE: WTF is happening with Windows 10? And nothing else
Isn't that the general direction the entire industry is moving in? Move fast and break things. Release unfinished buggy crap early and often. Redesign things every few years so it looks shiny. Make sure that using two of your products together is more seamless than using your product with a competitor's product. Move everything possible online. And so on.
-
RE: Windows 10 can-of-worms
Note to Microsoft: I don't have permission?? IT'S MY F***ING COMPUTER!! Whoever is responsible for this nonsense should be killed to death repeatedly.
That would be the Linux fanboys who insist on separating normal users and root, and some who insist on giving every program its own user. And then spread the word that operating systems without these features are fundamentally broken and should never be used.
-
RE: Star Citizen: 80$ Million Dollar Leaky Faucet
Impossible. They were using HTTPS, that means they were perfectly secure. And if you say otherwise you're a NSA sympathizer.
-
RE: AV Warning: This string triggers Avast & AVG
@quijibo said:
An AV scanner requires actually reading the files/data that it is about to scan!
Fortunately, it will stop you from doing anything else while it is scanning, so at least you'll know full well that you're entirely protected.
... well yeah. What would be the point if it told you you had a virus [i]after[/i] it let you run the file?
-
RE: Boost::Fuck! (the git command)
```
$ trash-restore
0 2015-04-15 15:20:17 /home/kane/Documents/taxes/
1 2015-04-19 00:00:01 /home/kane/tmp/delete-me
What file to restore [0..4]:What happens if you type 2, 3 or 4?
-
RE: Boost::Fuck! (the git command)
Linux assholes are actually the only folks who have created a filesystem where it's guaranteed all operations are reversible, including modifying contents and deleting - NILFS.
Also the only filesystem that sounds like a porn category.
-
RE: Outage scheduling.
What you need to do is tell one of your bosses/clients/whoever the month that you'll be migrating, and another one the date, and write down some possibilities on a piece of paper. By the time they figure it out, you will have performed the migration.
You missed the part where you get them to argue over whether the Windows 8 logo is blue and white, or black and gold.
-
RE: Mozilla intends to deprecate HTTP-without-TLS
This was my thought. When they deprecate it, presumably they'll start warning users about going to http sites. This will finally kill their browser.
Until Google does the same thing.
Microsoft's browser team seem to be less insane (for example, they're planning to support HTTP-2-without-TLS) so I'd expect them to keep supporting HTTP-1-without-TLS.
Edit: WTF Discourse? I tried to reply to two posts and my first reply got deleted. It was something about how http://httpvshttps.com/ compares HTTP 1 and HTTP 2, which has nothing whatsoever to do with TLS, except that it's a convenient way for Mozilla and Google to push it by confusing people into thinking it makes their connections faster.
-
RE: Mozilla intends to deprecate HTTP-without-TLS
Anyway, no surprises that the US government is pushing Encryption Everywhere; that just means they've got all their backdoors in already, and they're trying to push home the advantage over all the other losers who won't be able to intercept everything.
It could also mean they're made up of multiple organizations and groups with different goals.
But what does the US government have to do with anything? Are they pushing Mozilla to deprecate HTTP? If so, do you have a source on that?
-
RE: Mozilla intends to deprecate HTTP-without-TLS
That's more like they're planning to make themselves completely obsolete in the eyes of users.
I would be very surprised if Google did not have a similar plan. And then users have very little choice, unless we're about to get another wave of Microsoft dominance? (Or maybe Apple this time, just to mix things up)
-
RE: Mozilla intends to deprecate HTTP-without-TLS
So, the is Mozilla wants the Web to be more secure? Because that sounds like a good thing to me...
Remember the old adage about how to make a system more secure: Disconnected from the network, powered off, and locked in a concrete box, with the key inside.
Yes, it would be "more secure". But does it outweigh the costs?
Fun fact: my home router's configuration page is at http://192.168.1.254/. There is no way the manufacturer is going to get a certificate for 192.168.1.254.
-
Mozilla intends to deprecate HTTP-without-TLS
I think the title speaks for itself, really.
-
RE: Spot the bug: javascript queue
Semantic simplicity: a set operation is always a set operation and always behaves exactly the same way regardless of argument, even if the argument is of type undefined or even a literal undefined
Works this way in Lua too.
No, it actually doesn't. Tell me, will this print anything or not when called?
function doStuff(k, v) local t = {} t[k] = v for k2, v2 in pairs(t) do print(k2, v2) end end
Answer: It will print the passed key and value only if the value is not nil. By contrast, the JavaScript equivalent would always print the passed key and value.
-
RE: Debate on speeding, with a side order of "For $60, you can hack a connected car (original topic)"
This is typical of everything deployed to market at any point in history. Get
it to work, get it shipped to beat your competitors, and then patch the
problems (including security holes) later. Maybe.FTFY
-
RE: GitHub Breaks Again
Did nobody else see the title and expect this to be about the Chinese DDoS?
-
RE: PCSX2's GSHack Draw-call skipping
I'm talking about underlying causes, clearly.
NeedsAccurateICache=1</blockquote>
If only programming was that easy. We could just write:
NeedsAccurateEmulator=1
and have an emulator that runs every game flawlessly!
-
RE: PCSX2's GSHack Draw-call skipping
Something that would be more reasonable would be boolean feature flags to turn on and off hacks that work for multiple games, along with more accurate emulation reducing the need for "skipping drawcalls".
No shit, of course more accurate emulation would reduce the need for game-specific hacks.Game-specific hacks are for making games work before they figure out how to emulate them 100% correctly. Hence the name.
And how many of these apply to more than one game?
-
RE: PCSX2's GSHack Draw-call skipping
Not a WTF. There's a reason they're called "game-specific hacks" and not "game-specific IoC container configurations" after all.
-
RE: 💩 Shit I just heard in my office
Did you know that what.thedailywtf.com forum has fifty different words for 'cupcake'?
Are you sure it's not the same word with fifty different character encoding errors? -
RE: Do not compare Strings
There's no reason to write
[code]if (string != null && !string.isEmpty())[/code]when you can just write
[code]if (!string.isNullOrEmpty())[/code]
if you don't actually need to differentiate between a null result and an empty result. Of course null and empty aren't the same, but if you don't care, then it doesn't matter.
Basically:
This stuff almost always seems overblown to me. How often is it really important to differentiate between null and an empty string?
But, under what circumstances is that actually the right thing to do?
-
RE: Microsoft gets into the gambling business
If it's stupid but it works, it's not stupid. (But the players might very well be stupid)
-
RE: Do not compare Strings
I confess, I also have been guilty of using
if(str == "")
instead of
if(string.IsNullOrEmpty(str))
in C# (for about one day, though, until the first version bit me in the ass due to the string being actually Null and not merely empty...)
I blame Javascript.I really don't understand what kind of culture could ever induce someone to consider null, and the empty string, to be the same.
Under what circumstances could a string be either null or empty, with both of these meaning the same thing?
Is this like that thing with Java collections, where people would write e.g. a
Collection<User> findUsersBySurname(String surname)
that returns null if no users are found, instead of an empty collection? -
RE: And back out
The old forums are still up. If everyone was still using them, we wouldn't have this problem.
Too bad that will never happen, because people don't work that way.