« first day (494 days earlier)      last day (3521 days later) » 

12:00 AM
I'm good now ;-)
 
> RELOAD
I want to play some Area 51 now...
 
I'm almost getting to where I like writing SQL better than writing music... something wrong with me?
 
Quick! Grab a beer & a guitar.
 
I got the beer; can't play guitar to save my life though ;-)
 
Neither can I. That's what the beer is for...
2
 
12:07 AM
Ooohhhhhhhhhhhhhhhhhhh
 
Since everyone is reloaded...
2
A: Complex Conditionals in a Strategy Game

nhgrif I should note that when it comes to bitwise conditionals such as (floor.floorBuildState & FloorHasLadder) and (floor.floorBuildState & FloorHasWalls) == 0), my understanding is that you should not pass those back directly such as return (floor.floorBuildState & FloorHasLadder) but shou...

 
Why does iTunes ask me if I really want to delete the 8 PCM files I just converted to M4A or just hide them so they still take storage but I don't know about it... annoying.
Done with music... (fires off Postgres)
 
12:23 AM
Off-topic?
@Mat'sMug What I want is comparison between the 2 implementation for learning purposes to make sure I didn't do any mistakes compared to the source I'm learning from. — gues532 20 mins ago
 
Can someone confirm if this is appropriate?
I meant no offense. This piece of verbiage really flags your question for being off-topic on this site, intended or not: "Additionally, if someone could explain the last block I would really appreciate it." This comment snippet "I wrote everything except the last piece" further biases it. Code Review is often misunderstood, you're not being singled out here. I apologize if it sounded that way. — Phrancis 1 min ago
@Mat'sMug this snippet makes it sound like a Programmers question:
> Also I had a question regarding to implementing stack data structure. If I wish to make an implementation that is not array based, I want a dynamic sized stack can you give me a clue on how to achieve it ?
 
@Phrancis given the previous comment, I'd keep it at that.
And indeed.
 
But I think everything else looks fair game. I don't think posting the alternate/original implementation is bad, for comparison purposes... but mods may look at it differently. I wouldn't see it much differently than posting two different implementations of your own
It does appear the OP understands the original implementation, even if he didn't write it, just sought to improve it
 
I'd just remove the 2nd snippet... and the last part. 2/3 of the question is off-topic, I stand by my closr vote.
And it's a comparative review, ....cherry on top.
Almost all A vs B questions get my auto-downvote no matter what.
 
12:41 AM
@gues532 : You would really do yourself a favor if you removed the code you didn't write and didn't ask for comparison; that's not what Code Review is about. If you really need a comparison and help with better implementation, this would be a question more on-topic for Programmers(programmers.stackexchange.com) — Phrancis 1 min ago
On a side note, is it just me or the [link name](url) thing doesn't work very well in comments?
 
It works... but it seems we need to know what the automagic [links] are...
I know [edit] and [help/on-topic]. Apparently [programmers] is another one?
 
So is [SO]
 
Ah
@amon and there was light!
 
Thank you @amon!
 
12:46 AM
Very nice
 
@Phrancis mind you, A vs B questions aren't necessarily off-topic; I just find they make poor CR questions.
 
Only a small piece of that question is actually off topic.
 
@Mat'sMug I can see that... Seems like A vs. B is pre-code review... as in... just test it, man. Like @nhgrif was saying earlier...
54 mins ago, by nhgrif
Anyway, on this O-notation stuff, at the end of the day, if you have two horses, the best way to figure out which is faster is to just race them.
Sounds like it belongs in Dev or QA stage
Dev, most likely
 
I removed the off topic portion of the question. A vs B questions are on topic and OP is not asking for a review of the code he did not write, that code is only there for context. — RubberDuck 24 secs ago
This isn't a performance question @Phrancis. He's looking for validation that his code is correct and good. What else do we do here?
 
@Jamal : I just found there is a tag that should be synonymized with (as it is the same thing). Only 4 questions have it (I'm guilty for creating one of them).
 
12:56 AM
Fine, retracted my close vote. But he's keeping my downvote.
 
@Phrancis If you have a sufficient tag score for the master tag, then you can propose a synonym.
 
Well, he's certainly not getting an upvote from me, but it's on topic...
I guess it is anyway. I don't like A vs B either.
 
@Jamal how do I... do that? :)
Nvm found it
@Jamal ^^^
 
tired as hell, TTGTB early today. Mug's gone.
 
Bye Mug
 
1:00 AM
@Phrancis In that case, I'll suggest it (without a binding action).
 
Can you get 5 score in with only 4 questions existent???
 
Thhat's 5 answer votes ;)
 
Or Santa can try to get you up to 5. :-)
In the meantime, feel free to clean up this new question.
 
Alright lol
 
Cough, sharing something not typical for me: youtube.com/watch?feature=player_embedded&v=923jxZY2NPI
 
1:04 AM
How do people live without indenting their code??
 
You are not truly alive unless you indent
2
 
Awesome @rofl. I'm a huge Sagan fan.
 
@Jamal done
 
Remove the "thanks" ;-)
 
1:09 AM
@Jamal - so, C++11 saves you a space?
;-)
 
Happy now, @Jamal ? ;p
 
@rolfl Yeah, pretty much. :-) There are some larger reasons behind that, though.
@Phrancis That'll work. :-)
 
Speaking of which... I cannot stand people who add in the "Thank you," in their email signature. This annoys me profusely:
> Francis,

Please contact John Smith at (812) 111-1111 and let me know how it goes. Thank you!


Thank you,

Jane Doe
Marketing Manager
 
And they can't spell your name right, that's worse.
Who is this Francis guy?
 
Phail!
 
1:13 AM
Dunno, was just using a pseudonym.
I got an email today that went like this:
> Thx

Sent from my iPhone

Jane Doe
Marketing Manager
(followed by multiple phone numbers, email, fax, website, physical address and the like)
 
@Phrancis just needs "Please consider the environment before printing"
2
 
LMAO
 
That's no joke @mjolka. I know a guy who printed and filed a hard copy of every email he ever received!
2
Not an exaggeration either. I helped him packed when we moved our office.
 
@RubberDuck that's... wow
i like to imagine that he scanned all the faxes he received, too
 
1:29 AM
Thanks. The indentation is the result of my poor copy and paste skills :(. Your comments on shared access and constness are really useful. — paco_uk Jul 20 '13 at 19:17
Which makes me wonder why the OP didn't bother to fix it after seeing it displayed incorrectly in the post.
 
@Jamal first post, not familiar with interface yet?
 
Gonna go watch some tv. See ya guys.
 
I know it took me a while to get used to the different things it can do, and how to make them. And especially the tiny post box (which I found later you could make longer, but not wider, and that is wretched)
Bye ducky!
 
Perhaps. At least these answers serve as a general reminder. On the other hand, the curly brace usage must've been intentional.
 
Or I guess not. :-/
 
1:41 AM
Nothing on TV?
 
@Phrancis I like my friends signature: "Sent from my iPhone because I am a pretentious bastard."
annnd I just deleted about 800 lines of junk
 
Nice
Hm. This returns an empty string for some reason...
set SEARCH_PATH = test;
drop table if exists test;
create table test(
        word text);

insert into test (word)
values ('Hello World');
select currval(
        pg_get_serial_sequence(
                'test',
                'word'
        )
);
Of type bigint of all things
(goes to RTFM)
 
1:59 AM
Idk @Jamal. Wife decided to go to bed instead.
 
Ah
 
^^ Wife overrides many things
 
thanks santa :)
 
Found answer on DBA upvote 'em if you got 'em
 
Yeah. No sense in watching tv by myself. Gave me time to write another review.
 
2:03 AM
And wow, DBA voting considering how helpful this question is... disappointing.
 
I can't grasp not up voting something you're taking the time to answer.
 
Right...
 
Well, I do hope people don't upvote gimmetehcodez questions that they still insist on answering.
 
I can't get onto facebook????
 
Okay, I can grasp it, I've answered a few questions out of sheer frustration.
Lol. I forgot about that @Malachi.
 
2:08 AM
forgot about what?
 
Ohh. You didn't see it? A question came in from someone complaining they got into the dev mode on Facebook and couldn't just log in to see their feed.
Not sure if it was legit or not, but it was funny.
It was a few days ago I think.
 
I don't think I can get on google either
it's chrome....
 
It was this
 
oh yeah that was almost a week ago
 
> I cant get off developer mode on facebook !!!!! i want to be a regular facebook user NOT A DEVELOPER !!!! PLEASE FOR THE LOVE OF GOD, take me off this gaph thing, im not a developer, someone please help me
Still cracks me up.
 
2:14 AM
The one chance at becoming a developer, and you turn it down?
2
 
Right?! Thanks for posting the link. Bookmarked it for when I need a smile.
Which is completely evil of me, but... Whatever.
 
It's just another blessing (or curse) of having moderator tools. Some of the most entertaining stuff are among the deleted posts.
 
it's just facebook and google that won't work right.
 
Ohhh look what I just found.
@almaruf Sorry to be pedantic, but Java should not be written in all caps because it's not an acronym (unlike PHP, though technically it's been retconned to be a backronym). Some people do get quite upset about it and someday one might bite your head off for it :) — Pharap Aug 29 at 11:30
 
on my chrome browser. it's starting to really piss me off
 
2:19 AM
Clear some history. It's chrome version of a reboot.
And the cache probably.
@Schism - that was the point . Moreover, if the value of testDataGenerated is set to null than (! testDataGenerated) will pass (not sure about JAVA, but it is true for PHP), may be this isnt what you always want :) — almaruf Aug 28 at 14:37
 
@Malachi try pinging google.com
 
@RubberDuck It is apparently an acronym, if you're a beginner. ;-)
 
first request timed out when I pinged www.google.com
now it works
 
-1
Q: How to highlight specific domain in Google search results? | Greasemonkey script

hakikoI want to use a Greasemonkey extention from here: http://lifehacker.com/5708110/locate-multiple-domains-highlights-your-favorite-sites-in-google-search-results It published 4 years ago and Google design has changed. Naturall this script is not working. I try fix this script but it is not workin...

 
JAVA backronym... Jolly Application Vastly Assimilates ... ?
 
2:26 AM
One two punch. Catch up @CaptainObvious.
0
Q: Can someone look over my code (its a chat server)

user3103366I just need to know if its decent or not PROJECT HOME: https://github.com/chatango-kotarou/HCS server.py: https://github.com/chatango-kotarou/HCS/blob/master/server.py mod.py: Can't post link but its in modules/mod.py in the project home room.py: Can't post link but its in modules/room.py in ...

No code^
 
Junky Allocation Verification Anonymous?
 
Jelly Apples Verify Asperbergers
 
"Naturall this script is not working" / "It is working code"
 
Java Altercation Veers Ambiguous ?
 
JAVA Approved recursiVe Acronym
 
2:29 AM
Justifiably Allows Volatile Acorns
 
Lol
Squirrels must hate JAVA.
No one likes a volatile acorn.
 
Do we need a JAVA enum?
 
Thus squirrel.js was created, which is free from volatile acorns!
 
-1
Q: Can someone look over my code (its a chat server)

user3103366I just need to know if its decent or not PROJECT HOME: https://github.com/chatango-kotarou/HCS server.py: https://github.com/chatango-kotarou/HCS/blob/master/server.py mod.py: Can't post link but its in modules/mod.py in the project home room.py: Can't post link but its in modules/room.py in ...

 
Can someone look over my title (its a SE question)
 
2:32 AM
@Jamal squirrel.js? that's nuts
2
 
@RubberDuck Medical breakthrough!
 
sorry, that was a-corny pun
 
runs off to start writing squirrel.js
 
'~'
 
lol.js
 
2:35 AM
Seriously though, I do want to play with the snippets sandbox on meta.
 
@RubberDuck sounds like it needs some LOLCODE for squirrel.js
 
@RubberDuck (hint: acorn is equivalent to var)
 
... SQUIRRELCODE ? @Jamal
 
I CAN HAZ acorn?
AWESUM
KTHNXBYE
 
@RubberDuck you have a syntax error; it's KTHXBYE
 
2:39 AM
Where's the Mug & Monkey? They're the Gurus.
 
what's @Phrancis's favourite db? PostgreSQuirreL
2
 
Ducks only write in serious languages. Ya know, like VB6.
2
Or Ruby.
 
Speaking of which... Postgres is gruesome when it comes to syntax. Some of the stuff I have written, SQL Server would be like "Cool, thanks dude" but Postgres is more like ERROR: function lastval(text) does not exist
 
M$ be like "Standards? We don't need no stinkin' standards."
My all time favorite quote was something like:
> IE6, if you can call it a browser, ...
Does anyone know what the tag is for? One question; no wiki. It's been bugging me.
 
Get rid of then.
@Phrancis Is your FizzBuzz not ?
lastval() takes no parameter. What's wrong with that?
 
2:55 AM
It's gone. Problem solved.
 
0
Q: writeln() and format() with variadic templates

glampertI wanted to get better acquainted with variadic template, so I decide to try to implement a function like D's writeln(), just for fun. void writeln() { std::cout << "\n"; } template<typename T, typename ...Args> void writeln(T firstArg, Args... extraArgs) { std::cout << firstArg; wr...

 
> You can use asterisks OR dashes for bullets. Need nesting? There's your spacebar.
> .txt.bak: Advanced Version Control
 
3:37 AM
3
Q: Cleaning lady took fruit from my work desk

CardinerYesterday in my office was weekly fruit day. As always, I took a few, and did not eat them all. I left two on my work table. The fruit were in perfectly good condition, and I have done this more than a few times. Today I came to work and realised that the fruit was missing. I left work late and ...

 
3:55 AM
"I know that that this is her doing." the more i work in an office, the more i realise that "the office" is not so far from reality
 
 
4:36 AM
@200_success it was, I just deleted the tag from that post tonight. Also, I'm just now learning new stuff about lastval() and other methods
Kind of slow learning since this is mostly a hobby. People on here have been exceedingly helpful :D
 
5:01 AM
Why shouldn't a question whose code contains PL/pgSQL be tagged as such?
 
0
Q: Calculating amount of diet soda a dieter can drink without dying

Oompa LoompaThe following question was taken from Absolute Java 5th ed. by Walter Savitch: A government research lab has concluded that an artificial sweetener commonly used in diet soda pop will cause death in laboratory mice. A friend of yours is desperate to lose weight but cannot give up soda pop. Yo...

 
variable names i never thought i'd see: AMOUNT_OF_ARTIFICIAL_SWEETENER_TO_KILL_MOUSE_IN_LITRE
 
5:16 AM
well, it's certainly descriptive...
 
5:38 AM
@200_success I feel PL/pgSQL is, by any means, indifferentiable from PostgreSQL, though I'm OK with being convinced otherwise
 
You could either put the tag back, or propose deleting the tag site-wide.
 
In the documentation it seems to be referred to interchangeably, or rather, they refer to everything as PL/pgSQL
 
0
Q: Array kept contiguous by swapping with the last element

KTCI made a class that encapsulates the common pattern of keeping an array contiguous when an element is removed by swapping the last element into its place. A few specific things I'm wondering about: Is it unsafe for non-POD types (because of the memcpy)? Is there a more efficient way to add a n...

0
Q: In Python, which kinds of the following approaches is preferred?

fishiwhjHere is a problem came from codingbat: Given 2 strings, a and b, return the number of the positions where they contain the same length 2 substring. So "xxcaazz" and "xxbaaz" yields 3, since the "xx", "aa", and "az" substrings appear in the same place in both strings. There are several answers ...

 
Is a synonym not a good way of doing this? (not wanting to rock the boat, just to make it better)
I would be OK to delete it, TBH... I think we need a as much as we need a ...
But, one way or another, not gonna put up a fight. Was just trying to point it out for mods to help normalize the site, it can stay and I won't mention it again :)
 
There's always Meta. :-)
 
6:00 AM
0
Q: Is this a valid C++11 implementation of a Level class and Loader?

Michael StumThis is a follow up to my previous question, now that I've read up more about modern C++ (specifically C++11) and the answers in the question. Specific things I'm wondering about: Am I doing the Exception right? I asked on SO regarding an access problem I had, but I also want to know if this i...

 
Let me just look over the individual questions first, if there is no evidence of PL I will remove the tag and that will be that @Jamal but if need be I'll post on Meta
 
Okay
 
Opened a bounty on this one:
3
Q: Cross-language Constants

Dave JarvisBackground Developing a web application that leverages multiple programming languages. The data flow resembles: Browser » PHP » PL/SQL » XML » XSLT » XHTML + JavaScript » Browser Using different languages makes it tempting to hard-code various constants within the different languages, which ...

I have also removed from the questions as none of them seemed to make use of any PL
@Jamal @200_success burninating no longer needed :)
 
:D
 
That's fine. The combination of and could serve the same purpose. I doubt anyone would subscribe to and not be interested in as well.
I didn't think there was much to say about this question, but then there was something to say after all.
0
A: Calculating amount of diet soda a dieter can drink without dying

200_successEach of the three methods runs correctly, and does so in constant time. That's good. Comments You wrote one comment. Either remove the comment (because it could become inconsistent if the constants change and is therefore a maintenance headache), or hard-code the answer (System.out.println(...

 
6:17 AM
assert maxAmountOfDietSodaDieterCanDrinkInLitre() == 2600.0;
I might be tempted to use Hungarian notation if it came to that
 
Actually, I did use a bit of Hungarian for the units.
 
> As a bonus, they are in alphabetical order.
That made me LOL.
 
What would make me LOL is if that is the answer that puts me over 40k.
2
 
Only need... one other upvote
 
6:27 AM
Thanks, Santa!
4
 
Wel-- oh wait, I haven't reached 40K myself.
 
Congrats 200, major milestone :D
 
You made it happen!
 
An extra rep point? I guess someone must've deleted an answer you've once downvoted.
 
I un-downvoted Phrancis's answer from earlier today.
 
6:30 AM
How nice of you ;D
 
given that i hit 4k today, maybe i should change my username to 20_success
4
 
Guess Simon and the Mug better start racing towards 40K now
 
rolfl is gonna be next to 40k
 
THANK YOU, @JAMAL
Was getting hypnotized
 
6:39 AM
Nah, fishy made that edit.
 
That said... TTGTB. Congrats again @200_success
Oh. Thanks fishy
 
Me too. Good night!
 
Yeah, me too. Four classes tomorrow... ugh.
 
6:53 AM
hrm, I learnt something very tricky in C++ today
variadic base classes can do some strange and cool things
 
7:37 AM
Monking
 
0
Q: List comprehension with several tasks

GuforuI have some for loop, like here: time1 = 0 timeDifference = [] for time2 in uniqueUserData['TIME']: timeDifference.append(time2 - time1) time1 = time2 I want use here the list comprehension, how I can put the second statement in the expression? I try [(timeDifference.append(time2 - ti...

 
@CaptainObvious Off-topic
 
7:55 AM
1
Q: Dividing camelcased/underscored Strings

KaoI want to implement a method which, given some camelcased or underscored String, will return a list of separate words that make up this String. Output words should be lowercased. Examples: ISomeCamelCasedString -> {i, some, camel, cased, string} UNDERSCORED_STRING -> {under...

 
you guy's think I'll get the bounty of this one?
2
A: Why is zk rendering a second tbody for a listbox?

chillworldWell, there is always a solution and maybe the "hacking" solution is the best here : Class overriding of that class. Create that package and create that class (exactly the same package and classname). Copy the code from your link to your class. Change the code, I'll suggest try to remove the c...

 
8:10 AM
0
Q: Best practise to read alot from object?

Stijn BernardsI'm trying to reed certain values from an object, What would be the best practise to do so? I don't know if I should put this here or on stackoverflow. my code as for now: $jira_object = json_decode(trim($jira_value->data)); $this->_displayName = $jira_object->user->displayName; $t...

 
2
Q: Thumbnails for bootstrap carousel jQuery plugin

SrleWhile you slide left or right appropriately, thumbnails gets selected and change their opacity to be different among others thumbnails. You can also click on thumbnails to show the appropriate image on carousel. HTML After carousel bootstrap code, the user needs to add a list of thumbnails: <...

 
8:46 AM
0
Q: Join argv list with spaces

ZuckI'm a Python noob. This is the code I'm using: for i in argv[2:]: # argv[1] isn't required by s.py if ' ' in i: argv[argv.index(i)] = '"%s"' % i args = ' '.join(argv[2:]) os.system('s.py '+args) Is there a more elegant way to do this?

 
9:12 AM
0
Q: Editing <option> values through a textbox with jquery

Ivo CoumansI've written a script that will allow me to enter a serial number for each received product, in-line in a table. First you enter the amount received, which increases the size of the <select> to that amount. Then you can enter new serial numbers through the s/n text box, submitting with TAB or Ret...

 
9:29 AM
10
A: How to get the best value out of Code Review - Asking Questions

rolflWhen things go awry What happens when you don't get answers, or get answers that are helpful, but don't address your main concerns? First, be patient. Code Review normally has a few hours at least before you can expect your question to be 'cold'. If your question is still on the 'front page' th...

when things go awry?
 
@chillworld "wrong" in a nicer way...
 
never saw that word :s
 
9:44 AM
aarrg back at 1 consecutive day at CR :D
I'll never get the 100 :p
ho lol it was CR meta
 
10:28 AM
A tool to bypass surveys with download links is provided on a downloadservice with surveys
3
Fuck. That.
 
10:39 AM
Congratulations, @200_success
@Phrancis Oh I don't think so. I'm still exhausted after the last race me and @Mat'sMug had
 
11:35 AM
@JeroenVannevel do those site's really let you download the stuff?
 
Nah, they don't. And all the bypassers are behind a survey list as well
Good thing I have a VM readily available for stuff like this
 
I was just thinking, if you search the javascripts, couldn't be there a method for closing it?
then just bypass it with the console?
 
you can close it, but some stuff like installers need to be finished and then they redirect you
at least, that's how they advertise it
I tried it, but it never worked
I don't know if those sites even try to make downloads available
 
yeah me to butI never examined the javascripts behind
maybe time to do so
 
11:48 AM
0
Q: Changing the first occurrence of a text in a sentence

Oompa LoompaThe following question was taken from Absolute Java 5th ed. by Walter Savitch: Write a program that starts with a line of text and then outputs that line of text with the first occurrence of "hate" changed to "love" . For example, a possible sample output might be: The line of text to be ...

 
12:00 PM
This answer is wrong but it has upvotes
2
A: Split camelcased/underscored String

KaoCode in the question is reinventing the wheel. Apache Commons Lang provides a method splitByCharacterTypeCamelCase() which makes this very simple: public static List<String> split(String string) { List<String> splitted = new ArrayList<>( Arrays.asList(StringUtils.splitByCharacterTypeCamelC...

 
answer is same as OP
why did you delete your answer @Pimgd
 
Because it's flawed in that it also doesn't solve his issues.
The first part might but it boils down to me having an O(2n) solution where he has a O(n) solution so mine isn't even better.
 
0
Q: AD update from CSV - Code Optimization

user3931089As the title states, I was hoping that someone could help me optimize my script a little. Here's the run-down: I get a CSV dump of all employee records from our payroll system once a week. The CSV has something like 28K records. The key between the two systems is the employeeID. I import this i...

 
the comment isn't bad
I should extend that class
and further more see what's inside taht class
 
@Pimgd O(2n) is still the same complexity as O(n)
 
I'm gonna post a new answer detailing all the side cases he should take care of and why the function he wants to use is not okay for these sorts of things
 
look's perfectly good base to start
just pitty they didn't visit code review and created such a long method :p
 
Monking all.
 
I have spent the entire morning in git merge
.___.
 
monking @RubberDuck
 
12:16 PM
@DanPantry Dude, what is OP's problem. Is it's not just me is it? That's example code right?
 
@RubberDuck yes that is example code. and I think he's pissed that i said "you could have googled this"
why am I gettin de ja vú here? feels like this has happened before
 
I'm lacking context here
 
lol...... Be nice @Dan.
@RubberDuck. This is real code, simplified for the sake of conciseness. I'm not going to post here full solution. — Ask 16 mins ago
 
@RubberDuck I am being nice :( I didn't say it in an offensive way. I hope.
 
Nah. I would have been worse. I'm constantly disappointed that LMGTFY isn't allowed on SO.
 
12:19 PM
Your comment looks wrong
yep, it's wrong
Question: 20 hours ago, states
"I have two IEnumerable variables, both can be null"
replying "IEnumerable should never be null " does not make this problem go away.
 
@Pimgd His Enumerable variables are returned from methods
Which he controls
I said that they should not return null, and instead should be empty
I did that from a code-review standpoint
 
You don't know if they do, it's example code.
 
Not from a 'let me fix your problem' standpoint
I can tell you that it is convention for all IEnumerable to be empty - not null
It is very unlikely it is managed code
If it is example code, then that's another problem entirely
 
Besides, maybe the rest of my 100k lines of code business application relies it that method returning null sometimes
 
Then that is a code smell.
Let me put it this way: If it was full code, I would have reviewed it the same if he said the Ienumerable could be null.
 
12:24 PM
Seems like a valid point to make, but if that's the only point you have to make I'd have downvoted it
 
That's why it was a comment, and not an answer.
He asked a) how to concatenate two IEnumerables and b) if there was a better way to do it than what he had did. I replied with IEnumerable.Concat(IEnumerable) and that your IEnumerables should never return null. If this was on S/O I would have answered the same. Given that that was all I could take away from his code, but it didn't constitute a full answer, I posted it as a comment.
 
I don't think I have anything to counter that one.
 
If the entire "your comment is wrong" point relies on his post maybe being example code, well, I think that explains why we don't allow example code on CodeReview :p
To be fair to you, I could have also suggested the null coalescing operator if his problem space did allow for his Enumerable to be null. But as far as I can see, IEnumerable being null is just simply not done and unlikely to occur in any kind of managed code, so I suspect it was a smell and commented accordingly :-)
 
No, my point relies on you "answering" but not applying all the criteria the OP specifies.
However, since it's not an answer but a remark/comment, there's nothing wrong with it.
 
> It does not make sence, but it occurs in real world projects everywhere. You will see a lot of code like this after you finish your school and get job.
This guy.
 
12:28 PM
That'd be a duplicate of one of my arguments I said just now "Besides, maybe the rest of my 100k lines of code business application relies it that method returning null sometimes"
 
I'd like to point out I am currently writing to you from my job after integrating with 3rd party code all morning. This is not a case of me not having experience in the "real world".
 
I suggest neither of you comment more on that question.
 
=D I didn't even comment once
can we still comment on it here
 
@SimonAndréForsberg I have nothing to say to someone who drops to personal insults like that (@ OP)
@Pimgd I think the problem here is that the user said "this can return null", but didn't specify that he didn't have control over it. So, yeah, problem = it was example code
 
Hmmhh truth be told there's a lot of real worlds
 
12:30 PM
@SimonAndréForsberg Stealing your auto-comment by the way. =P
 
If he said that it was a method he couldn't control that would have been different
 
There's business applications, but also newbie programmers who hack stuff together in their spare time
 
The whole problem is there isnt' enough context to talk intelligently about the code. This is exactly why hypothetical code is off topic.
4
 
0
Q: Improving an IRC bot

KaazI've recently started working on a java project, and the main purpose of it is to get better at Java. I've decided to make a irc bot for twitch. But after some hours of progress I already see my bot class growing. And that leads me to beleave that I'm learing bad habbits or I'm just doing it all ...

 
@RubberDuck Add more stars! More stars!
3
 
12:31 PM
@Ask If you feel that your question should be re-opened, I suggest you ask on our meta, be sure though that you have read this meta question first, you are also welcome to discuss the matter in Code Review chatSimon André Forsberg 29 secs ago
 
can someone explain why that question is off-topic for S/o?
 
@Pimgd I can't star my own post.
 
@RubberDuck they're pretty much meant to be stolen
 
You could use these ★★★★★
7
 
I feel like I've done enough gatecrashing today, back to git merge
 
12:33 PM
I took the liberty of adding a link to the meta too. I seriously love that tool.
 
Whoa there's a lot of stars in unicode ✦✧⋆★☆✩✪✫✬✭✮✯✰
In typography, a star is any of several glyphs with a number of points arrayed within an imaginary circle. == Four points == == Five points == See also Five-pointed star See also: mullet (heraldry) pentagram == Six points == See also: Seal of Solomon == Seven points == Commonwealth Star == Eight points == See also: Rub el Hizb == Twelve points == See also: Blue Sky with a White Sun == See also == * - asterisk ⁂ - asterism Unicode symbols...
 

« first day (494 days earlier)      last day (3521 days later) »