WTF Bites
-
@cartman82 said in WTF Bites:
Back in my pascal days I used 3 spaces for indentation.
I used to do 3 spaces (well, tab set to 3) when I first started. Somewhere down the line I changed that to 4. Probably because of existing code with spaces instead of tabs.
-
@boomzilla said in WTF Bites:
typos
I don't object to that most of the time, thought sometimes it does assume wrongly. Even then, quotes work for that.
But now it's shuffling sentences around, and quoting the entire thing is rarely useful. It defeats most of the advancements Google made in the search algorithm at the very least.
No, it's correcting your typo of AOR to USER... it's not shuffling anything around (?)
I mean, at the very least they also make it easy to tell it "No, I really did mean that 'typo'', google"
-
@cartman82 I use firefox, but was using chrome for some reason (i think i still hadn't copied over my firefox profile). either way i had to scroll for miles to find the thing i wanted
listen, i expect the world to cater to me
-
@cartman82 said in WTF Bites:
I liked the way pascal had done the reference/dereference operator. The fact that dereference was postfix meant it naturally combined with
.
, so there was no need for special dereferencing member operator. The C changed to two different operators, both prefix and it stuck. And while I can understand it was not possible to make the same operator all of prefix, infix and postfix (since both*
and&
are also infix), it is not like they would have been out of special characters to use a dedicated one (like@
; it would even make some sense). But instead they chose both prefix, so Pascal's "x^.y
" became "(*x).y
", necessitating the creation of special->
operator. And then in C++ you end up with(*x)->y
in many places (when iterating over collections of pointers).x^^.y
—or maybex@@.y
, since^
has other meaning in C++—would have been nicer.
-
@cartman82 said in WTF Bites:
Back in my pascal days I used 3 spaces for indentation.
I used to do 3 spaces (well, tab set to 3) when I first started. Somewhere down the line I changed that to 4. Probably because of existing code with spaces instead of tabs.
I want an editor that lets me set tabs to 3.5 spaces wide so I can make people who mix spaces and tabs angry at me.
-
@ben_lubar said in WTF Bites:
I want an editor that lets me set tabs to 3.5 spaces wide so I can make people who mix spaces and tabs angry at me.
The editor would have to have that setting fixed. Otherwise the people who mix spaces and tabs would not set it and the only one who would be mad would be you because you would be the only one seeing messed up code.
-
-
C:\tfs2\common\.git\refs\remotes\origin [GIT_DIR!]> git remote update origin --prune Fetching origin From https://[snip] * [new branch] Features/1762 -> origin/Features/1762 * [new branch] features/3358 -> origin/features/3358 * [new branch] features/2215 -> origin/features/2215
Oh for fuck's sake. Some idiot managed to create both a
Features
and afeatures
folder on the remote. Those turn into the same folder -remotes\origin\Features
- on Windows, but instead of recognizing that, Git (or at least Git's VS client) is merrily going to publish thatfeatures/2215
branch intoFeatures/2215
on the remote as a completely fucking different branch as soon as you try to push the changes.This... I'm stumped.
-
@Maciejasjmj I admit to breaking SVN for some of my colleagues with something similar once. For some reason (not a good one, I'm sure), I created a folder called "OLD" (or something similarly stupid) when there already was one called "old". No problems on *nix, SVN accepts it as well. If you try to check that out on Windows all hell breaks loose, basically making your local copy useless.
In my defense, I checked that in like 3am 3-4 days prior to a deadline, so I can blame lack of sleep. Of course, the fact that I broke the local SVN copies 3-4 days before a deadline didn't exactly increase my colleagues' appreciation of the whole thing.
Oh, well, lesson learned.
-
If you try to check that out on Windows all hell breaks loose, basically making your local copy useless.
Hmm...if you installed the new Ubuntu stuff and mounted the NTFS drive it might work (or a VM or something might work). NTFS is case sensitive, you just cant fully use that feature from within Windows.
-
@boomzilla said in WTF Bites:
NTFS is case sensitive, you just cant fully use that misfeature from within Windows.
-
@boomzilla said in WTF Bites:
NTFS is case sensitive, you just cant fully use that misfeature from within Windows.
You're a Windows user? YOU CAN'T HANDLE THE CASES. :afewgoodfiles.xpm:
-
your insurer only pays for a basic car without air conditioning and a mechanical wheel as your backup, but you can get a better one if you pay the 5$ a day difference
no, I think the basic one is good enough
we don't really have a car without air conditioning, so we'll hand you a better one without charging
-
@Maciejasjmj said in WTF Bites:
This... I'm stumped.
We had someone create a 'Branch' and 'branch' on the remote. Life sucked until the lower case one was removed on the remote.
-
@ben_lubar said in WTF Bites:
@bb36e ' is lowercase h in lojban.
No, not lowercase H. There is no H and h is a capital letter.
Why would anyone do that? Other than for reasons. It just guarantees that you need extra Unicode characters that everyone will hate.
I propose that they switch to using the alphabet normally. Or picking alphabetic symbols from elsewhere.
ESR agrees on that last idea. Whether or not that makes you change your mind about it is your call.
-
@boomzilla said in WTF Bites:
correctly correcting my
typosinner @accaliaThe Inner Accalia Effect!
Perhaps that could join Enterprise Paula Beans as the name of an anti-pattern. Maybe for the practice of never refactoring incorrect spellar in identifiers on the basis that it isn't code-significant (often accompanied by a lack of comments, with the same justification)?
-
@ScholRLEA said in WTF Bites:
Perhaps that could join Enterprise Paula Beans as the name of an anti-pattern.
We're trying to shove such code into production right now!
-
your insurer only pays for a basic car without air conditioning and a mechanical wheel as your backup, but you can get a better one if you pay the 5$ a day difference
no, I think the basic one is good enough
we don't really have a car without air conditioning, so we'll hand you a better one without chargingI deal with this when renting a car at the tiny airport I fly into when I visit family. My guess is they let me make a reservation without regard for the likelihood of a given class of car being on the lot when I get there. If I reserve the cheapest econocar I'm almost definitely getting something bigger for no extra charge.
-
@sloosecannon said in WTF Bites:
I mean, at the very least they also make it easy to tell it "No, I really did mean that 'typo'', google"
You'd think so, but for me it still often searches for (what it considers to be) synonyms. You can see that by the words it higlights in the preview text from the results. Even the "Verbatim" setting doesn't stop it from doing that. That really annoys me sometimes. I know what I am looking for, Google, stop patronising me!
-
@HardwareGeek said in WTF Bites:
The main reason I like it is its ability to play a video along with a subtitle text file, possibly obtained from a third party (e.g., opensubtitles.org)
Are you familiar with VLSub? If not, check it out :)
-
@fwd in this case, I was physically there, the woman already knew they would need to hand me a better one, and tried to trick me into paying for it when I wouldn't need to.
-
Found this morning in code that's been around since 2012, lightly anonymized:
/* I'll clean up this mess later once I get it debugged. !!ENTER A DESCRIPTION OF _________ HERE!! */
-
@HardwareGeek said in WTF Bites:
/* I'll clean up this mess later once I get it debugged. !!ENTER A DESCRIPTION OF _________ HERE!! */
So, it's not debugged yet after 4 years ?
-
@TimeBandit said in WTF Bites:
So, it's not debugged yet after 4 years ?
No real clue. I hope so. I'm supposed to port it to a new chip, which is only supposed to require changing some header names, the way parameters get passed to the top-level function, some logging functions — stuff like that — not changing any of the real logic. Nevertheless, I've been told I should understand it in case I need to do any debugging of the ported version.
-
@HardwareGeek said in WTF Bites:
Found this morning
Unsurprisingly, there's more. The comment describing the main function isn't directly above the function, there's another function between. And there's this:
/* [Use a really high-resolution timer as a source of quasi-randomness.] It should basically be nearly random in the lower bits because [non-sequitur].... It needs to be TRULY random [or bad thing happens] */ ... /* We probably should actually find out how big [thing] is, but for now limit [random number] to [arbitrary limit orders of magnitude smaller than any real thing] */
-
All I am doing is using the scroll wheel.
-
All I am doing is using the scroll wheel.
What happens on Mobile?
-
Saba Learning.
Over Citrix (because it does not work otherwise).
-
I work in a small shop. We only work on internal stuff. I just finished a code review for expanding a db table to include space for test data versions of some fields. This was accomplished by adding one column and serializing the new data into it. This was proposed by a senior dev and accepted by two others. In 2016. It's frickin infuriating watching people go out of their way to break strong typing.
-
I work in a small shop. We only work on internal stuff. I just finished a code review for expanding a db table to include space for test data versions of some fields. This was accomplished by adding one column and serializing the new data into it. This was proposed by a senior dev and accepted by two others. In 2016. It's frickin infuriating watching people go out of their way to break strong typing.
? can you explain what does it have to do with strong typing.
-
I work in a small shop. We only work on internal stuff. I just finished a code review for expanding a db table to include space for test data versions of some fields. This was accomplished by adding one column and serializing the new data into it. This was proposed by a senior dev and accepted by two others. In 2016. It's frickin infuriating watching people go out of their way to break strong typing.
? can you explain what does it have to do with strong typing.
String are as strong as the serializer that's using them! :D
-
I work in a small shop. We only work on internal stuff. I just finished a code review for expanding a db table to include space for test data versions of some fields. This was accomplished by adding one column and serializing the new data into it. This was proposed by a senior dev and accepted by two others. In 2016. It's frickin infuriating watching people go out of their way to break strong typing.
? can you explain what does it have to do with strong typing.
Several fields getting serialized into one column.
Sure, it could be considered strongly typed under the right interpretation and circumstances, but it's certainly not the DB enforcing that.
-
? can you explain what does it have to do with strong typing.
He probably has ORM-like code that serializes tables columns into object fields.
If they add a special column with test data next to column with "real" data, there goes that schema. What they should do instead is have a test db instance, like normal people.
-
Fuck it, let's just use chrome's PDF plugin and flash implementation
-
I'll reboot LATER, dammit!
(clicking "no" returns me to the installation wizard)
-
God dammit.
I JUST DID REBOOT YOU SONUVABITCH
-
@Yamikuronue said in WTF Bites:
God dammit.
I JUST DID REBOOT YOU SONUVABITCH
They are kind of enigma, though.
-
Audible:
We're sorry. Due to publishing rights restrictions, we are not authorized to sell this item in the country where you live.
I want to get this:
this is the second book I cannot get here in US.
Audible just do not list it if I cannot buy it then, assholes
-
Audible:
We're sorry. Due to publishing rights restrictions, we are not authorized to sell this item in the country where you live.
I want to get this:
this is the second book I cannot get here in US.
Audible just do not list it if I cannot buy it then, assholes
That reminds me, Microsoft does the same thing...
@Tsaukpaetra said in The Official Microsoft HoloLens Thread:
Status: Then Why TF are you even offering it in the damn store! Idiots!
Come to think of it, Google does too!
What is wrong here!?!?
-
this is the second book I cannot get here in US.
Audible just do not list it if I cannot buy it then, assholesWaah waah
See what we third worlders are dealing with ALL THE FUCKING TIME.
Also, that book sounds like your typical Marry Sue fights zombies kind of fare. Probably not missing much.
-
@Tsaukpaetra said in WTF Bites:
What is wrong here!?!?
What is wrong is expecting them to filter results at all by whether your device profile matches, at least not until the page is showing. That'd be like actually moderating things, and nobody wants to be mistaken for @boomzilla doing work!
-
@dkf :shudder:
-
What is wrong is expecting them to filter results at all by whether your device profile matches, at least not until the page is showing.
Why? Do forums display all topics being searched for regardless of what permissions you have until you click on them?
I don't think this is unreasonable at all!
All an App store is is a specially formatted forum software after all.
-
@cartman82 said in WTF Bites:
this is the second book I cannot get here in US.
Audible just do not list it if I cannot buy it then, assholesWaah waah
See what we third worlders are dealing with ALL THE FUCKING TIME.
You cannot be third worlder, because you do not know that thirld worlders do not complain about access to a book, they will pirate it.
Also, that book sounds like your typical Marry Sue fights zombies kind of fare. Probably not missing much.
Forbidden apple, now I must read it.
-
@cartman82 said in WTF Bites:
this is the second book I cannot get here in US.
Audible just do not list it if I cannot buy it then, assholesWaah waah
See what we third worlders are dealing with ALL THE FUCKING TIME.
You cannot be third worlder, because you do not know that thirld worlders do not complain about access to a book, they will pirate it.
Also, that book sounds like your typical Marry Sue fights zombies kind of fare. Probably not missing much.
Forbidden apple, now I must read it.
Forbidden Apple?
http://cdn.cufvmxkrlhrehlyi98.netdna-cdn.com/wp-content/uploads/2016/05/iPhone-7-Improvements1.jpg
ITYM buy it.
-
@Tsaukpaetra said in WTF Bites:
All an App store is is a specially formatted forum software after all.
Everything is a
phonewebsiteappforum
-
@ben_lubar said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
All an App store is is a specially formatted forum software after all.
Everything is a
phonewebsiteappforumiTYM to post this in the Truth thread.
-
@ben_lubar said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
All an App store is is a specially formatted forum software after all.
Everything is a
phonewebsiteappforumiTYM to post this in the Truth thread.
Everybody, to the Truth thread!
-
@ben_lubar said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
All an App store is is a specially formatted forum software after all.
Everything is a
phonewebsiteappforumiTYM to post this in the Truth thread.
Everybody, to the Truth thread!
NAnanananananana truth thread! i
-
Observe what features I need to install for this app. Bear in mind the app in question is a game from Steam that I bought originally in 2011.