« first day (396 days earlier)      last day (1043 days later) » 

11:11 PM
Hmm.. the First Posts queue is at 7.6K posts, while Close Votes queue is at 4.4K.
 
@CodyGray I thought one can't appear worse than I initially expected - but now we have a new low :)
 
@OlegValter Because it got pathetic, rather than rude.
 
@Scratte isn't FP queue quite busy lately?
 
@OlegValter I think it started becoming busy about a month ago.
 
Maybe this site is getting popular
 
11:19 PM
@OlegValter Never seen it that high before.
@CodyGray Are you using a user script that colour codes people in comments?
 
Yes
 
About putting it on their CV. That's not really a problem as such. I'd probably do the same if I felt I had achieved something here.
 
No, of course it's not a problem.
Nor is it a problem that their reputation drifted a bit.
 
@CodyGray I like it :) Is it a moderator one? :(
 
11:23 PM
@CodyGray The thing I noticed was that they probably put it as they were nr. x.. which they are not anymore. But there's two camps on this. Make yourself look almost better than you really are.. or be humble enough to stand trial on it.
 
That's a stupid choice anyway, because that ranking could change at any time.
Imagine someone sits down and answers a couple of bountied questions, earns the bounty, and earns upvotes.
Boom, your ranking suddenly goes down.
You can say, "One of the top users on Stack Overflow for tag "
 
Reputation doesn't correlate with knowledge anyways... answering on Stack Overflow requires more than just programming knowledge, no?
 
No?
Well, maybe it also requires English knowledge.
But I'm looking for that when I assess candidates... I want someone with good communication skills.
 
@Scratte well, I think I recall seeing it quite high recently - but yeah, sounds like there is a lot of users making first posts :) And we are blubbering something about what will they do if we all leave :)
 
Not sure "freaking" is not going to get flagged.. it's a substiture for whatever got flagged before.
 
11:30 PM
const colorCode = (uid * 99999999 % 16777216).toString(16) + '000000'; // 16777216 = 16^6
I love that line :)
 
Why?
 
@OlegValter Yes, I noticed that too :D I never go for the minified version :)
 
@Scratte meh, they can go ahead, I'll survive :)
 
Can the curse word be edited out of this comment then? meta.stackoverflow.com/questions/408562/… (It's on that same thread)
 
I'm not editing anything there.
 
11:32 PM
@CodyGray the comment or the love of the line?
 
@CodyGray I don't disagree at all. I just thought the're probably in the first bucket that I listed. Not in the second.. and now they've sold what they don't have.
 
@OlegValter Why do you love the line?
It seems quite boring and straightforward to me.
The only thing that bothers me is having to write out 16777216, and then leave the comment, instead of just being able to write "16^6" like I would in my source code, because I can trust the compiler to do constant folding.
 
@CodyGray well, how to put it - it's cute :)
@CodyGray that's exactly what I was going to write :)
it does not do the (or 16 ** 6):
const colorCode2 = (uid * 99999999 % Math.pow(16, 6) ).toString(16) + '000000';
but instead writes the magic number 16777216 and ensures to leave in a comment that // 16777216 = 16^6 :)
 
magic numbers are in general bad practice, right?
 
You think it's "cute" having to work around the brainlessness of JavaScript? :-)
 
11:39 PM
@10Rep yup, they are
 
It's time for a new unnecessary rant on meta. "Why are my TinyVotes™ not made into stars when a comment thread is moved to chat?" .."I count them, every day. I can see some TinyVotes™ have gone missing and not replaced with stars. My granny gives me a penny for every one and I already told her that I had 15 today. I've send the pennies on candy already!"
 
Because nobody cares.
Also, comment upvotes are not the same thing as chat stars.
 
@Scratte Wait, you don't mention your tiny vote count on your CV?
 
No, he only mentions his star count.
 
@CodyGray somewhat ;)
 
11:41 PM
@10Rep That's not a "magic number" though :)
 
Ah, that's good enough. Very important to mention that.
 
@Scratte sure, but it's hard to remember 16777216 = 16^6 when you could have just done 16^6 and ensured the same result.
 
@Scratte sorry, what's not a magic number? The 16777216 certainly is
 
@cigien I add both the stars and the TinyVotes™. Now there's a discrepancy and it's Cody's fault :D
@10Rep Hmm.. so you know that 16^6 is equal to 16777216? :P
 
@Scratte Of course. Typical of Cody.
 
11:43 PM
@10Rep But you cannot, because the 16^6 would have to be calculated at runtime, and nobody wants that.
@Scratte You don't?
In truth, both are weird ways of writing it.
I would write 1 << 24.
 
@OlegValter How is that a magic number? It's not like a "where userid = 2564" in a query and no one has any idea who that might be. Instead of actually doing a join and put the name in.
 
Or, perhaps, 2^24.
Why it's in terms of 16... I cannot say.
 
@CodyGray A love of hex?
 
@CodyGray Probably a dumb question but doesn't the 2 ^ 24 also get calculated at runtime?
 
@10Rep multiplying by 2 is very quick on a computer ;) You just shift :)
 
11:46 PM
> using numbers directly in source code
@Scratte ^
 
@10Rep Yes, but that's a JavaScript problem.
What I'm saying is, 2^24 is much clearer to me what it's doing than 16^6.
Where did the 16 come from?
Whereas, I know exactly where the 24 came from: 24 bits in an RGB color.
 
@CodyGray yeah, that would be nice, although the conversion to 32-bit ints and back basically makes it useless in JS
 
OK. I don't agree that makes it a magic number. Using a number in code, is just that.. a number. It's when the number have some meaning that one can't determine what is by looking at it, it becomes "a magic number"
 
@OlegValter Err, what? JS doesn't have unsigned ints? What about 1U << 24U (which is what I'd actually write in C)?
 
Heh.. Java doesn't have unsigned ints :) So I wouldn't be surprised if JavaScript didn't have them.
 
11:49 PM
@CodyGray all numbers in JS are 64-bit floats...
 
Ugh.
You have reinvented the worst of 1980s BASICs.
 
except when you do bitwise operations on them - then they are 32-bit ints :)
 
...wow.
The brokenness just keeps coming.
 
lol! That's too funny :)
 
@CodyGray yeah, that's a common source of grievance people have with JS
 
11:51 PM
That it sucks?
Yeah, I can see that.
 
Example of a magic number I used recently is "-1". if (userid === -1) {...}
 
Meh. That shows two problems: (1) mixing state and values, and (2) using a magic number.
 
@Scratte I'll do you one better: This is one I used recently: 59239886.
 
@CodyGray I don't want to fetch the editor statistic from the Stack API for Community :)
 
If you have something like searchDatabase('Scratte'), it shouldn't return a user ID, where -1 indicates that the user was not found. It should instead return a Boolean result indicating success or failure, and the user ID should be returned elsewhere.
(That is, if failure is expected and normal. Otherwise, if failure is exceptional, it should throw an exception.)
 
11:53 PM
@10Rep It looks familiar.. but I have no clue what it is.
 
@Scratte Ah, interop with a broken API. I see. Still, that's a magic number. What if the user ID for Community changed?
Should be const kCommunityUserID = -1;
 
@CodyGray Right.. we have lots of that in I/O in Java. -1 indicates that no more characters are available.
 
Terrible.
Java is bursting with badly-designed APIs.
It's literally a case study in how not to do things.
@10Rep To get this question? stackoverflow.com/questions/59239886/…
 
I wish you could set a variable as a constant in python... :| no idea what goes on underneath the hood when it comes to python.
 
@Scratte ah, that's from whom we got the -1 as the return value of older lookup methods? :)
 
11:56 PM
When you make a variable constant in Python, the snake wraps around it and constricts it very tightly.
 
I've also changed it to something even worse. If the userid is less than 0 and if the userid is greater than 0.. and I use 0 for a special circumstance..
 
I hope you've defined a method: isValidUserID(...)
 
@OlegValter Yes :) while (... != -1) {keep fetching..}
@CodyGray I didn't.. any userid greater than 0 will ask the API for statistics.
..and put a link to the user in the resulting table.
 
@CodyGray Turns out, the snake is lazy, and doesn't support this.
 
Also, I need three states. Not isValidUserID(...) which looks like it returns a boolean.
 

« first day (396 days earlier)      last day (1043 days later) »