« first day (755 days earlier)      last day (3279 days later) » 

1:00 PM
What's weird is "weird".
 
@JeroenVannevel that would be nice. Not sure if it picks up user variables. Searching for clarification on the matter.
It picks up the System variables though?
 
Try programming Java while drinking Capuccino. Not that I drink any coffee at all, but anyway...
 
The english language has a rule.... 'i' before 'e' except after 'c' .... except in 'weird' ... and 'their'.
 
it does?
 
^^^ that's weird
 
1:00 PM
maybe I should try that then
after my game
 
@skiwi The inverse (watching Monty Python while programming Ruby) wouldn't be halve as distracting.
 
Idk. I was going based on another SO answer.
 
Try learning Perl, while attempting to work on homework.
 
@Mast You're really wanting me to disagree with that, eh?
 
@skiwi It's all about context though.
Listening that song for hours straight or watching a movie in the background, I know what I'd choose.
So, basically, do both not.
 
1:04 PM
 
@Mast Do not do both
 
@skiwi That would imply it's ok to do only one of them.
Which isn't right.
 
@Mast I'd definitely prefer that song.
It might become annoying at some point, but it's better than having two additional impressions..
 
@rolfl Full rule is "when sounding like "E", i before e except after c"
 
If you don't have a specific problem in your code, you should take your question to codereview.stackexchange.com. Personally, I don't see why you'd refactor a simple if/else when you only have two conditions. It doesn't look hideous. It looks exactly like what the construct was made for. — Mark Leiber 47 secs ago
 
1:15 PM
Our lowest scoring question so far only has -23, the one above that -9. That's good, right?
 
@GarethRees That makes no sense either...
wier -> place with lots of water.... weird -> sounds the same (with a d at the end), but spelled opposite
 
@Mast let me guess... the lowest scoring question is that php reviewed by nhgrif?
 
@rolfl "i before e except after c" only applies to vowels that sound like "E", like believe and conceive
 
@Vogel612 The one with the many insulting comments.
 
yes, exactly.
 
1:17 PM
@rolfl The vowel in weir and weird does not sound like "E" so the rule does not apply. You're on your own here!
 
No problem... I really have to get to work too...
 
@Mast Questions get closed so fast there's no time for them to stack up lots of downvotes
 
@GarethRees Yea, I think it's a good thing.
 
Lowest scoring question which is neither closed or locked is only -5.
 
If those posts hadn't gotten answers, they probably would've been removed.
 
1:24 PM
Frankly it doesn't seem so bad to me:
-5
Q: waitForIt Plugin

NealAnyone want to comment on this plugin I'm making? (improvements, etc) (function($) { var methods = { init: function(data) { var options = { function: null, timeout: 1000, option: undefined } return...

 
Since mods can insta-close questions, and since we typically read questions pretty fast, and close when necessary, it happens pretty quick.
The flip side is also, that closed/downvoted questions that don't have answers, are also deleted automatically, so you can't search for them
 
Add and it might be acceptable
 
@GarethRees I'm not sure why it has so many downvotes either.
 
1:26 PM
@rolfl Both are deleted.
 
title: Gay-O-Meter, new to Java looking for suggestions on what I should have done differently
 
Yes, good work by the moderators there
 
@rolfl That's awful.
 
That's what I am saying.... that bad questions are deleted, either manyally, or automatically
So, any question closed and downvoted is likely not answered, and thus deleted.
Pages of deleted questions ^^^
sorted by score.
Everything from page 104 through 186 is score < 0 (and some on page 103 too)
 
0
Q: Am I missing something by using generics rather than System.Object?

Joshua KemmererI recently created a custom static class in C# to encode, hopefully, any object it is given (or collection of objects), because I was, at the time, unaware of a native C# library that did the same thing. I am using Generics instead of System.Object because I am aware of the overhead that comes wi...

 
1:30 PM
That's.... 4000 questions... mostly auto-deleted.
 
Good!
It means the system is working.
We got one of the most clean SE sites IMHO.
 
Jamal FTW ^^^
4
 
It's a lot of work, and much appreciated
5
 
codereview.stackexchange.com/users?tab=Editors&filter=all <--- for those who doub't Jamal's impact on things ;-)
 
ça marche!
 
1:38 PM
@GarethRees 15k edits, probably not even including deleted posts....
 
0
Q: Cross tab PHP data

KevinI have a query that is pulling data from a Mysql database using php. As the while loop progresses the variables $student, $course are captures and $mark is calculated outside of the database using php so I can't get the data directly from the database. At the end of the while loop I have all the ...

 
@rolfl does any one really doubt that?
 
@RubberDuck That. Doubting Jamal's effort and superhuman skills is madness.
 
I hope he looks after himself and quits before he burns out — it's only a hobby after all
 
32
A: What's a Zombie? And what are the many other memes of Code Review?

Mat's MugMeme: Jamalized Originator: Jamal ♦ (actually, apparently me) Cultural Height: All over CR (see this chat transcript search) Background: Jamal being a frantic editor. And he's fast. So fast, we're all waiting for the day he will edit a bad question title before it's even posted. You never know...

And he's fast. So fast, we're all waiting for the day he will edit a bad question title before it's even posted.
 
1:43 PM
Still a lot of repeated code but it works
 
Nice.
 
0
Q: 2D OpenGL Tile Atlas Fragment Shader

Oliver BarnwellI am currently using the following glsl code to retrieve separate textures from a tile atlas: #version 330 core in vec2 TexCoord; out vec4 color; uniform sampler2D image; void main() { int width = 8; int height = 8; int x = 1; int y = 4; float scalarX = 1.0 / width; ...

 
@JeroenVannevel Put it on CR, see if anyone manages to make it shorter/clearer/etc.
 
If you want to share this, make it a proper question and selfanswer it. As it is, it's not the proper format for SO and we can only close it. Also SO is not Code Review. — Roland 12 secs ago
 
@Mast if you want a helpful flag, flag that one as off-topic: unclear
 
1:53 PM
@Duga Also, SO is not a forum.
 
Stack Exchange is not a network of forums; it is a network of question and answer sites. This is neither a question or an answer. If you wish to share this, please do so in the question-and-answer format (post a self-answer to an actual question). If you're looking for improving the code you've shared here, presuming it works exactly as intended, you can consider posting the working code to Code Review. — nhgrif 29 secs ago
 
Wow, hrm.
So this guy.... I used to think he was pretty good at what he was doing, knew what he was talking about... this was before Swift.
 
Now he's venturing into Swift, and it just seems like he's generally not very great...
 
IT'S INFECTED OTHER SITES
3
 
2:01 PM
@Vogel612 TS
 
Of course, I have more Swift experience than he does (he always has had more Objective-C experience), but I was also less good then than now...
So perhaps it's simply that he's just always been just this good and I never noticed the questionable things before
like relying on singletons too much
 
@nhgrif That, or just not great at Swift?
I mean, you really don't want to see my C#. It's awful. But that doesn't mean I'm a lousy programmer.
 
It's not just that though.
It's not simply not knowing Swift tricks.
It's using the Apple APIs wrong (they're used the same in Swift and Objective-C)
It's design problems (using singletons)
 
0
Q: Creating Sudoku generator and validator

user255572I've created two classes that contain only sudoku logic. One class Sudoku generates sudoku grid and returns SudokuGrid object with has specific number of values in it(removing values from filled grid). Second class SudokuGrid contains all logic that player needs, checking whether any rules are br...

 
2:09 PM
He just posted a question... he's got a problem with some Core Location stuff.
 
@nhgrif Can he learn or is he beyond hope?
 
Before you can do anything with Core Location, you have to check if the user has authorized you to check their location
If they've never been asked before, you can ask them.
 
Nobody likes dealing with UAC stuff.
Just give anyone root access and have fun.
FIREWORKS!
I think this is the moment I should probably head home...
 
might be
 
Productivity < 0
 
2:11 PM
hmmm.. I still get to ~0.2
of my usual that is.
 
Folks, don't forget May is almost over.
 
and that's at about ~.8 of the possible with the code I am working on, because it's so extremely frustrating
 
You still have time for your BattleShip implementations!
 
which is again reduced by a factor of 50%, because of the tools we're using and waiting for application servers to restart makes me lose focus.
 
@Vogel612 Writing documentation half of the days, I know the feeling
 
2:13 PM
I'd be happy to write documentation if I were allowed to refactor code while writing it.
it's kinda... boring to copy paste "/** * handles the request and response of this action */"
 
@Vogel612 No refactoring :-(
 
Anyway... so...
 
It isn't finished either, so at least 25% goes out the window in 2 months or so.
 
He checks to see if the auth status is "undetermined"
And if it is, he calls the method that asks for authorization and then recursively calls this function again 1 second from now
and keeps doing that until the authorization status is something other than undetermined.
The thing is... you can set up a delegate, and there's a method....
 
wat?
 
2:16 PM
locationManager:didChangeAuthorizationStatus:
Which gets called immediately any time the auth status changes...
Why he's not using this, I have no clue...
 
TTGTH, back in an hour
 
I hope my feet don't taste too bad
0
A: SQL Injection - Validating user supplied input

Mat's MugThere's only so much a code analysis tool can see. using (SqlCommand command = CreateCommand(query, parameters)) You're using a parameterized SqlCommand, and given the example you appear to have everything under your own control, strongly typed and all. Depends who is calling this ExecuteNo...

 
0
Q: Updating table with cross join and select

MichelI have three tables: Table A Table B Table C ------------------- ------------------- ------------------- id | cQ | cR | id | cQ | cR | id | cQ | cR | ------------------- ------------------- ------------------- 1 | 1 | ...

 
Shhh...
 
2:31 PM
It's nice when a question actually explains what the code is supposed to do, instead of expecting you to reverse-engineer the specification from the code.
6
 
isn't it!
 
2
Q: Creating a page number array for pagination

rahulI have writen a small function to generate an array of page numbers for displaying a pagination. The inputs to the function is an active page number p, and the max page number. The function will return an array of 5 possible page numbers available near the active page. Example input, output: p...

 
already?! it's not even noon!
plus the 17 others from yesterday night ;-)
 
@Mat'sMug for you...
 
midnight in StackLand is when @Duga screams RELOAD!
3
@Vogel612 yeah
and you'll star-cap again
don't worry, there's star-material chat every day :)
 
2:41 PM
@QPaysTaxes just kill it...
 
> my mean is that how to make html page like: stackoverflow.com or google.com ,etc?
 
I don't even have to open the link to see it needs a flamethrower
 
VTC'd, too broad
> All in all you're just a 'nother prick in the wall
 
Looks like we found someone who runs out of stars faster than @Lyle'sMug and I.
 
@RubberDuck combined
 
2:51 PM
0
Q: Finite State Machine supporting shortest path transitions

stuXnetIn our automated test framework, written in Java 8, there are different entities representing test data, having different states and transitions between them. To model this behavior, I started to implement a simple finite state machine (or at least what I understand as a FSM) The idea to use it...

 
you can't vote twice y'know?
yeah, depends on ambient light. oh wait...
enter code here?
Oh wow
@QPaysTaxes northerners: blame the taxpayer
Unicorns
> because unicorns
 
TTQW
@QPaysTaxes shame shame shame on you
 
@Vogel612 later!
 
here's your unicorn
(Your fault for naming unihorns as unicorns.)
@QPaysTaxes don't run out of stars on the first place :p
 
3:01 PM
@QPaysTaxes try to keep language decent please.
thanks :)
 
3:28 PM
@Unihedron You got that bookmarked, don't you?
 
@Mast Nope. I have more important things bookmarked.
job x_x
 
Lamest "technical" interview ever.
Not one technical question.
 
@RubberDuck You're soliciting?
 
Depends what you call elegant. The most elegant solution to me is the one that produces the smallest number of WTFs in a code review and makes the next guy not waste half an hour trying to understand what the code is supposed to mean. :) — simbabque 1 min ago
 
@Mast I've written at least 6 cover letters this week... I'd rather be coding!
 
3:35 PM
@Duga Here, take some upvotes.
@RubberDuck Don't we all
@QPaysTaxes Duga? Can't imagine he hasn't. Been around for so long and all.
Oh, yea, it's the comment badge. Not the chat badge.
 
Monking
I got a new blog post, if anyone noticed. burningkeyboard.wordpress.com/2015/05/29/…
Yes, yes I do :)
 
http://www.commitstrip.com/en/2015/05/29/always-stuck-somewhere-in-my-head/
CommitStrip - Blog relating the daily life of web agencies developers
Always stuck somewhere in my head
CommitStrip
1432913790
 
@EthanBierlein Python 2!
After seven years it's probably time to assume that beginners are using Python 3, and leave Python 2 for experienced programmers dealing with legacy code.
 
0
Q: Handling multiple click events

AngelaPlease see this fiddle I have set up. You are first confronted by three links. Each link triggers divs to slide out. The link 'john smith' slides out and in at the speed we want. When it slides out the first line slides out then when that is completed the second line slides down as though comin...

 
3:56 PM
@GarethRees I started with Python 2 not too long ago to do exactly that, handle legacy code.
 
@Mast Sure, but new tutorials should be targeted at Python 3
 
Why?
How long did it take for COBOL to die out?
People will still want to learn it for quite some time.
 
@Mast is COBOL dead?
 
ASM is still being picked up by some, even though nobody in his right mind would start a new project with it.
@Mat'sMug Almost, but not completely. Exactly my point.
 
The reason that tutorials should be aimed at Python 3 is that code written for Python 3 (at least the kind of code that appears in tutorials) generally back-ports easily to Python 2
Whereas the converse is not true
If you write print("hello world") (Python 3) then that also runs fine in Python 2
But if you write print "hello world" (Python 2 only) then that's a syntax error in Python 3
 
4:00 PM
@GarethRees Yes, but it's bad practice in Python 3
Just as writing C++ which is C capable just for the heck of it
 
What's bad practice?
 
@GarethRees Superfluous brackets
Oh well, that didn't come out right
 
The parentheses are necessary in Python 3 so they are not superfluous
 
But I hope you get what I try to communicate, there's no point in writing Python 3 code that just happens to work in Python 2 as well
They are no longer the same language.
So don't treat them as if they are.
 
It's not the case that Python 3 code "just happens" to work in Python 2 — there's a large subset of the language that is backward-compatible
 
4:08 PM
Yes, but there's no point in doing so
 
If you learn Python 3, then going to Python 2 is easy (you lose a bunch of features and only gain a couple of simple things like the print statement). But the other way around is hard: you have to learn the difference between strings and bytes
 
@Mat'sMug No clue, but that's some fancy report he placed. I still need to learn how to get that stuff working decently.
 
@Mast There's plenty of point in doing so: it means you can write code that's portable to legacy platforms that don't yet have Python 3. (e.g. ultra-conservative Linux distributions like CentOS)
 
my assumption is that the ReportDataSource only hits the db when Render() calls into it. Might be wrong.
 
4:13 PM
@GarethRees Oh well. So basically tutorials for P3 have more use than those for P2. But those for P2 aren't useless.
 
Yes, that seems fair.
 
@GarethRees I agree.
 
I had to make some code portable to Python 2.3 recently — that was a painful experience. No generator expressions, no collections.defaultdict, no sorted, no key argument to list.sort, etc.
 
0
Q: Basic OS login program

Mr.UbuntuI have just finished the sololearn C++ course and wanted to create a basic login program in the vein of a basic operating system. #include "OS_login" #include <iostream> #include <string> using namespace std; Ubuntu_Login::Ubuntu_Login() { cout << "\t Welcome to Ubuntu!\n" << endl; } void ...

 
@CaptainObvious A program without a main. I'll regularly check that one.
It's missing some info, but it could be a decent question in disguise.
 
4:40 PM
> Completed 4225697 entries in 61.632s
 
4:50 PM
1
Q: Smoothing Code Blocks

ZeusI have the following two blocks of code. I also have other similar sections with similar blocks and want to reduce the complexity of it all. As it is, it is impossible to follow anything. What kind of things can I do to simplify and have it easier so understand and modify? This part performs ho...

 

« first day (755 days earlier)      last day (3279 days later) »