« first day (850 days earlier)      last day (3462 days later) » 

12:05
Good morning
Zak
Zak
we're nearly up to 3 rows on my monitor again :)
How's everybody doing?
on my small laptop screen I can only see the first starred comment now. :(
@EthanBierlein pretty good, yourself?
0
Q: Compile-time list in C++

xiver77Everything is evaluated in compile-time. You will need a C++14 compiler. The compilation time is quite long, and with a bigger list input, you'll get some error messages like constexpr evaluation hit maximum step limit. #include <iostream> #include <limits> #include <initializer_list> template<...

@DanPantry A little nervous. I start school again today. Overall, pretty good though.
12:07
@EthanBierlein wonderful, thank you
Yay, I optimized a QuickSort implementation without really trying to understand how it worked.
@CaptainObvious Wow, stack array of INT_MAX / 2. That would be some hardcore stack allocation if it was used at runtime x)
Zak
Zak
Not bad. I had a social faux par at the office recently. Apparently LARP swords aren't things that should be in the offices of an investment manager, even temporarily.

But I had a new talk with our head of HR and they agreed I've made a lot of progress on my social skills and they're going to be more proactive about telling me when I'm acting unprofesionally. So all is good
@EthanBierlein Everything will be okay, friend :-)
@Zak you got rang up for having a larp sword in your office?
@DanPantry they'd have a field day with Gabe Newell
@Amelia they'd have a field day with me.
Zak
Zak
12:13
@DanPantry they wanted to have a talk about it, yeah.
it was just here because I had it with me over a weekend and forgot to take it back home for a few days
@Amelia I think the lack of numeracy skills would get him first
I don't really see the issue but then I work as a programmer not as an investment manager
@Quill If you haven't seen already, see balpha's update here:
4
A: I'm seeing stars! (I can see who starred a message and so can you)

balphaI have always considered stars to not be secret (they aren't secret on the Q&A sites either, where they're called "favorite"). I can see how some people make that assumption though, since we don't really show "who starred this" in a dedicated UI, mostly because, well, we never created such a thin...

Zak
Zak
It's more a case of, I may be a programmer, but I work IN an investment office.
We even have clients in occasionally and everything :)
I expect it to be discussed a bit more though
12:15
@Zak ah, yes, we don't. internal apps team
me too
we're given a lot of leniency about how we look and stuff. there's a guy here that wears shorts and sandals.
Zak
Zak
@DanPantry when I'm in here over weekends, I'm usually in shorts too
whereas i have one and a half (I say half because it's a tongue) facial piercings and skinny jeans/converse on
we're not really expectd to look professional, just approachable and act professional and do our jobs
Zak
Zak
generally speaking, I'm getting pretty good at mimicking professional behaviour/attire etc.
12:16
so, naturally, i'm on the 2nd monitor during work time
2
Zak
Zak
but because I don't have a mental model for socially "normal" behaviour (and despite repeated attempts, I can't construct a coherent one), whenever I do anything that I haven't encountered before, I'm liable to go outside some boundary or other.
OTOH, work are pretty understanding, and they definitely like my work, so as long as they can see effort and improvement, they're very forgiving
> and they definitely like my work
just not your LARP swords
Zak
Zak
They're not fans of the Origami either
aaaaaaaaaand now I'm going to have to create an origami crane
Zak
Zak
@DanPantry :)
My favourite's a swan
not exactly Origami, but I'm particularly proud of this
12:31
You may want to try Code Review seeing as you already have working code. — AndyG 35 secs ago
@Zak that must have taken a lot of time
Zak
Zak
only an hour or 2
it's stuck together, which helps a lot
12:48
@DanPantry I still have stars today
@Zak That's great. It gives you a place with room for error. Use this to reduce the chances for error at the next place you'll work.
Greetings
@SimonAndréForsberg If you subscribe to the argument "stars are like votes", then that answer should be no, shouldn't it? We don't show individual votes to moderators. — balpha ♦ 2 mins ago
Zak
Zak
12:57
there should be an option to close for multiple reasons :)
@wouter stop spamming your message everywhere
Zak
Zak
@wouter @ you're in the wrong room, on the wrong site, for that kind of question
okay
@Zak they also posted it to cooking.SE
13:01
@Amelia I'd personally have kicked without warning, if I knew that this is not a "first offense"
@Vogel612 thought I'd at least try and get through to them that this is a bad thing
if they haven't been told elsewhere that is the better option, yes
then again my kick may be different from your kick
Zak
Zak
I always prefer to give people at least 1 chance.
my boots don't have diamond spikes :)
Zak
Zak
but I was very tempted to just insta-flag it
13:03
@Vogel612 Are they made of steel?
@Zak if they posted that to somewhere else already, then they had their chance.
spamming questions is a no-go
@Vogel612 my kick is quite violent and can come with a suspension :p
Zak
Zak
@Vogel612 that's information I didn't know at the time
Maybe our friend will learn where to ask his question
-1
Q: Strange thing with import (Intellij IDEA)

SolusI work in Intellij IDEA. When I try to include library, I have to write "import pack.*;" So... When I write this, at the end, when I type ';' - the whole string delets. I write 'import pack.*' - it's okay. But I must type ';' and when I do it - whole string delets. In this moment I can see bene...

13:04
@Amelia nvm me then
@IsmaelMiguel yes, they're made of steel and I think they do hurt
Zak
Zak
always nice when we beat CO to a VTC
@Vogel612 I don't know, but don't want to try either
Where exactly is the off-topic flag? I didn't see it in the options.
Zak
Zak
@IntensifierDescriptorMan for chat, or questions?
@Zak Questions. I was going to flag that one when Heslacher pointed it out, but I didn't see the option.
13:08
@IntensifierDescriptorMan flag > off-topic > ...
or something like that
I can't flag off-topic around here since ages..
Zak
Zak
I think question flags are only for mod intervention?
@Vogel612 ??? I didn't see it. Maybe it just wasn't an available option?
@Zak if the review is still in the queue when the page is reloaded it will alert you again. the newest version has a timeout of 100 seconds, and the reload is at 120 seconds. please file an issue if you think those timeouts should be changed, I wasn't sure what to set them at.
@Zak off-topic flags makes the question go to review queue
Zak
Zak
@Malachi that's fine, just took some getting used to that's all
13:10
@IntensifierDescriptorMan under the tags of the question flag -> should be closed ...
Zak
Zak
@SimonAndréForsberg ah right, gotcha
@Heslacher Okay, I'll take a look next time.
this has to be the first time I've used == in javascript
without making a typo
Zak
Zak
@IntensifierDescriptorMan yeah, click a flag and then you get a list of options
@IntensifierDescriptorMan there's just a general-purpose "should be closed"
@DanPantry If you used ===, you could have some weird behaviour, if item.id was a number
13:14
@IsmaelMiguel if I use ===, it won't work at all
because of why I put in the comment :P elem.value is always a string
(or falsey)
anyone think this comment is a little too ..... IDK
This is Code Review, not Gimme Teh Codez . I understand that the OP was anxious to use Linq, but could you explain how it functions similarly to the OP's code so that they can see what is happening here? it may be obvious to you and to more seasoned programmers but maybe not so obvious to OP and others. — Malachi 23 secs ago
That means that item.id is a number
@IsmaelMiguel I know it is, I wrote the entirety of this. :P
@Malachi Gimme Teh Codez seems a bit unprofessional
@Malachi Don't write comments unless you are confident they are useful.
@Zak I used it to get to my 1000 reviews in the First Post Queue
Zak
Zak
13:15
@Malachi it's a good comment, but could do with being less pejorative in tone
@rolfl I know that it is useful, I just wasn't sure about the tone
@DanPantry Something to burn our minds: is option.value == item.id faster than option.value === item.id.toString()?
@Zak now I have a word to look up.....
@IsmaelMiguel Probably not, but I'm not going to lose sleep over those CPU cycles. What I will lose sleep over is that option.value === item.id.toString() is more idiomatic than == (and thats' what I've changed it to)
> pejorative: expressing discontent or disapproval
13:17
@Zak if you read the entire thread, the Answerer was getting a little on the rough side as well. I was trying to stay objective.
Zak
Zak
Maybe something along the lines of "A code review should contain more than just code. Try and explain how/why yours is an improvement (and on what)"
@Quill you were way too slow. lol
How can it help make the code better? This is just a code dump, and will get downvoted quickly. please explain how it would make the OP's code better. — Malachi 21 hours ago
my first comment
Zak
Zak
ah ok
yes, in that context
I'd probably read the tone on the "borderline but ok" side
2
@Zak +1
I wouldn't've written it in that manner, it's not offensive but it's not professional either
2
but I don't see anything inherently wrong with it, otherwise
but, looking at the answer's code
My word that is awful
That would perform so badly at a couple thousand of records
Don't make answer invalidating edits. — nhgrif 1 min ago
Someone keep an eye, please.
13:24
@DanPantry, I see your point. I don't think that everything on our site needs to be Head of IT standards in the language that we use. I do think that we need to be aware of our audience. assuming that a majority of our users are coming to us from SO I assume that they are familiar with the meme, which although not professional, fits the circumstance
I think that we also need to remember that this is a site for professionals and not necessarily a site where they want professional sounding comments and answers given to them. they come here to speak their language not necessarily Business(professional) language.
Malachi .... my point is that you should not write any comment where you then think: "OMG, is that comment OK? Let me get a bunch of other people to check it!". If you are not confident your comment is going to be OK, then don't post it.
3
Dan gave a good answer to my question.
I do agree with rolfl;
if you feel like you need validation on whether or not a comment was OK
You probably should not have made it in the first place :P
I just want to make sure that I am in line with the community, I think it was perfectly fine.
@rolfl hmm.. how else are you supposed to find the line?
13:28
its like when you're writing code
I remember doing that a lot back in my early days
and something just feels bad when you're writing a part of code
especially after your spidey senses started tingling.
@Vogel612 I think the implication is that if you're uncertain about posting it that's already a good sign you've crossed the line.
@Vogel612 Discuss the question/answer here in Chat before making a potential bear-trap.
Don't set the trap, then say, is that a trap?
13:29
@SuperBiasedMan Not always. But sometimes your wording may make you sound like an a$$hat (sorry the word)
this needs some more love
And you just want to be sure that everybody reads it the same way
@rolfl it shouldn't be a trap, unless my first comment is also a trap
Then why did you ask:
15 mins ago, by Malachi
anyone think this comment is a little too ..... IDK
@rolfl My opinion: to make sure everybody read it the same way and if anything needed to be changed
13:31
@rolfl is that a bear? or a monkey?
@Amelia I have nothing to do with it, but it is a monkey
Baboon ;-)
Or that
Anyway
TTQH
Time to quit home ?
Zak
Zak
13:34
@Vogel612 it seems even a bounty isn't enough meta.stackexchange.com/questions/264377/…
@rolfl I have been corrected quite frequently in the last several weeks, so I feel that I need to make sure that I am still towing the company line around here. so instead of second guessing myself, I would rather others do that for me, and then I can explain why I feel the way I do, and see if others agree with that, kind of like a rubberduck process, only with more variables.
Zak
Zak
Unit tests for social interactions!
now that's a concept I can get behind
see if I am sharing the Community's ..umm what's the word I am looking for... feelings
@Malachi The idea of rubberducking though, is to ask for help before committing the stuff to production. You are doing it wrong.
@Malachi While the content of that comment is good, the tone is a little hostile for a fresh user.
13:40
@Mast even for a second comment on the same answer?
@rolfl I see
I'd totally understand such a tone towards a repeated offender, but I've heard user retention is important these days.
> I'd totally understand such a tone towards a repeated offender, but I've heard user retention is important these days.
> This is Code Review, not Gimmeh Teh Codez
Monking!
Review Teh Codez
and if I had left out the first sentence, @Mast, @DanPantry, @rolfl? would it have been less hostile.....and now @Mat'sMug comes in with it ▲▲
lol
13:42
monk* @Mat'sMug
@Malachi I see where you're going with this and I understand. However, I think you're venting your frustration at the wrong people.
While it's a bad answer, it was made in good intention.
I think it would have been fine without the first sentence, @Malachi
I am not frustrated, @Mast. do I seem frustrated?
13:43
Either way, 5m inutse have passed now :-)
@Malachi Your comment seems frustrated.
@Mat'sMug Monking.
> Thanks for your advice. But as you can read
I think it's fine @Malachi. I tend to use less bold and more italics for emphasis, it does come off a bit lighter ;-)
@DanPantry wow i mutilated that word
13:44
Just throw a smiley in it for good measure. Everyone loves smileys. Lightheartedness achieved.
9
@Malachi it's not about whether or not you say you are frustrated here. It's whether or not it comes across to an impartial viewer as you being frustrated or not.
@Mat'sMug no bold or italics this time
@EBrown Weird thing is, that actually works.
30 mins ago, by Malachi
This is Code Review, not Gimme Teh Codez . I understand that the OP was anxious to use Linq, but could you explain how it functions similarly to the OP's code so that they can see what is happening here? it may be obvious to you and to more seasoned programmers but maybe not so obvious to OP and others. — Malachi 23 secs ago
his comment can also be taken as frustrated
13:45
that was bold and italic
@EBrown someone is getting star bombed despite their improper use of an apostrophe ;-)
@Zak rewrote it into a feature-request...
@Mat'sMug bold and italic? serious stuff ;-)
I tend to re-read my comments, and if they seem like they could be interpreted poorly, I throw a smiley face in at the end of them to make things lighter. Works. Every. Time.
let's start over and do this a little differently then. for my learning and nothing more.
13:45
^^
@DanPantry Satisfied? :P
@EBrown which is exactly what I did just then with the comment about your apostrophe lol
@Malachi Yes. Wouldn't you be, if you spend time on an answer with the best intentions and it got shot down?
@Mast I didn't shoot it down
@Malachi No, but he read it as such.
13:46
In addition to @Malachi's comment, I would argue that this is code is worse than OP's because of the increased complexity you introduce by doing ToList() so many times... that's not what LINQ is about at all. — Dan Pantry 25 mins ago
I'm a time-travelling commenter.
If you really want them to take the best intentions, complement his answer before you criticize it.
I mentioned @Malachi's comment 22 minutes before he made it.
2
@DanPantry Nah, it perfectly suits the first comment as well.
@Mast didn't notice the first one. puts away blue box and fez
13:47
> While this is a very good solution to the problem [even if it is not], answers that include some explanation of why they are effective tend to be received better than those that do not. Code Review is not a Gimme Teh Codez community.
Zak
Zak
@Mat'sMug Monking
@Zak monking!
@Mast it's @rolfl
@DanPantry @rolfl is a baboon, not a monkey.
13:49
@Mast that's the exact mental picture I get every time I read "monking!"
@DanPantry It was a joke, mostly.
@DanPantry It's a mon---key---king.
@SuperBiasedMan I just randomly swipe left/right. Whatever happens, happens.
@EBrown so was mine! ha, ha, ha cries into bucket of icecream
Meh, markdown not working as expected.
13:51
For the record, that's neither a monkey, nor a baboon, it's a chimp.
4
@rolfl My mistake. :(
Zak
Zak
new user with a decent question. deserves some love codereview.stackexchange.com/questions/102502/…
What language is that? @Zak :S
The variables, that is.
@Zak I wanted to comment Just delete it ;-)
I'm guessing finnish
Zak
Zak
13:53
@Heslacher that's what answers are for :)
@DanPantry Tag says
@Mast I mean the language the variable names are written in
oh wait
Greek
thanks @Mat'sMug
13:54
np
@DanPantry I'd guess Spanish
Is there a language when spacing code with blank lines between almost every line is actually the commonly accepted style? Or is it just a result of copying from some IDE?
@SuperBiasedMan Whitespace
5
Q: How to simplify this nested if monster?

GeorgeI'm dealing with a searching query, the user will pick from menus and checkboxes the variables-criteria i'm passing to the toWeb method and a list will be returned. The below works fine but i'm going to add two more variables and it's already hard to follow so i'm wondering how you handle that ki...

@SuperBiasedMan As far as I know, there isn't.
13:56
@SuperBiasedMan not conventional languages
some esoterics (@mast mentioned whitespace) might do
Zak
Zak
@CaptainObvious oh wow. I didn't notice it scrolled down
@CaptainObvious Does getting many votes and views in the first couple of minutes increase it's chances of getting HNQ status?
I just see it a lot on questions where I'm confused by its existence. It looks awful to me but I might just be a grump.
@CaptainObvious and that, friends, is what we call "arrow code".
@DanPantry I've seen it in Brainfuck and it's sometimes done in ASM.
13:58
@SuperBiasedMan excessive whitespace is just as harmful to the eyes as no whitespace imo
But it's never the standard IIRC.
@Mast I've never personally used ASM
Yeah I'm obsessive about scrubbing it down to only useful whitespace.
@CaptainOBvious funny how "Is 'you're doing it wrong' a review?" is in the sidebar next to that question...
@SuperBiasedMan Just don't remove it around operators. It keeps stuff readable.
13:59
1
Q: Markov Encryption API in Python 2.5

Noctis SkytowerThe module in question provides classes used to execute Markov encryption and decryption on arrays of bytes. ME was inspired by a combination of Markov chains with the puzzle of Sudoku. This version is a rewrite of the original recipe and has various changes and optimizations for Python 2.5 et ce...

^ off-topic; It doesn't include the code to be reviewed
@Mast Indeed, I've been over the Python style guide multiple times now so I know when I ought to keep it or not.
@Mast whitespace around operators is mandatory. offenders will be fed vegetarian bacon as punishment.
3
@Quill how so?
@Amelia Not vegetarian bacon!
@Amelia But that's a delicious punishment
14:00
 ...

class Key(object):

    ...
@SuperBiasedMan that is wrong on so many levels
> Because of the module's length, it has been posted on ActiveState for access: Markov Encryption
it's missing parts of the code
@Quill I'd leave it be.
It has been around since '12. It's already Jamalized. No point in trying anything with it now.
@Quill I dare to challenge they'd break the 65k character limit
@Quill so it's stub code? or can you run those classes with what is in the post?
14:02
@Malachi no you can't but runnable or not never was a criterion
not runnable != broken
no but the entire class is not there, it could be missing vital pieces of the class
It misses the library and variable definitions
on a related note, it includes the code in the question, consider that link "additional non-required context"
wow. that's so much guesswork to do
Just replace it with the actual code in the linked recipe
don't act difficult
14:04
I regularly do not include imports in my java classes..
@Vogel612 I have a C# class with almost 50 using statements.
these aren't imports either
@Malachi then roll it back manually, what the heck is the problem?
do I have to use these grey things looking like they come from Windows 2000 - I'd think they're actually from Win95. If you want shiny and new, you can make your UI with WPF/XAML in a COM-visible .net class library (.dll), and use that from your VBA code. Depending on your coding style this may mean serious architectural changes (i.e. if you're used to implement all the logic in the buttons' Click handlers...) — Mat's Mug 1 min ago
Hi boys. I accept (partially) in general Your argumentation. In partial in sense, that SO has plenty of wider and never-ending question without negative votes. In my opinion codereview.s.c and programers.s.c (where I specially activate account) are no so better place for such kind of "best practice" or "architectural" questions - plenty of "why my loop goes 11 times etc". SHOULD I REMOVE THIS QUESTION? I agree, it is wide and open. — Jacek Cz 43 secs ago
14:08
@Vogel612 that would be editing code into the question. I thought that was off-limits?
@Mat'sMug Oh boy..... he knows not what he asks.
bah, you're just rolling back an inappropriate edit, right?
@RubberDuck I know right? I'm soooooo tempted to make a demo
@Vogel612 there could be more that the OP didn't think was required, and left out of the question.
then ignore that part.
or just leave the question alone..
14:10
@JeroenVannevel That's not how we roll.
I don't understand the problem
6 mins ago, by Jeroen Vannevel
don't act difficult
I will just do what I think is best, and let the rest do the same. I have a good understanding about what Code Review is.
then act on that and don't discuss it in circles :)
@code4life The code above is contrived for for example only. I can see how it may look like logging code. If being more concrete would help, the actual code base is aggregating microservice actions/responses and database fetches/updates. Trying to post a working example would run long even for a CodeReview post. — psaxton 30 secs ago
@Vogel612 That meta question isn't getting enough attention indeed.
Only 53 views, what...
14:17
/me confused..
Now I feel like cheating the system to force it into attention...
@Mast And how do you do that, exactly?
If this is working code, try codereview.stackexchange.com — Trengot 30 secs ago
@EBrown Get the link to that question flagged. Will attract moderator and high-rep user attention.
@Mast Ah, then do that! Lol
Zak
Zak
14:20
which question is this?
You should post this on Code Review, and/or post about an algorithm on Computer Science. — Cyphase 32 secs ago
0
Q: Finding the 10001st prime - Optimization (python)

Nicholas HassanI posted this question of stackoverflow, but since it's working code (technically) I was told to come here. Project Euler problem 7 says: By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the 10001st prime number? Here's the code I've w...

@CaptainObvious I think there was a question just like this recently, funnily enough.
14:35
Why does the room still show up even though it's been deleted for an hour
@Quill Where do you see that?
main site
Odd, I can't find that anywhere.
cant find what?
Where that shows up.
Ah, it's on meta site.
14:40
it appears basically everytime there, and sometimes on main (there's also ads)
Translation: If you knew enough programming to be able to do it, you'd know that you don't want to. — Zak 26 mins ago
@Zak but... I'm actually cooking up a little demo ;-)
Zak
Zak
is CR being slow for anyone else, or is it just me?
I'm linking to another post as part of an answer, should I be quoting and translating relevant parts from it too in case the answer is ever orphaned somehow?
@SuperBiasedMan Yeah.
Usually, it's just enough to cover the basic concepts of it.
-2
A: How to simplify this nested if?

ZakMy first thought was "delete the whole thing and start over". And the second. And the third. But that's not very constructive. First observation: Excessive Whitespace Too much whitespace is just as hard to read as not enough whitespace. I recommend that all your consecutive close/open braces go...

@Zak, you have seen ^this, right?
Zak
Zak
14:56
aw :(
maybe I should stick to reviewing languages I know something about :)
or just dont suggest stacked brackets like that
Zak
Zak
what would be a better suggestion?
The stacked brackets are badly formatted, and if they're your main issue, the if brackets should be on the same line. — Quill 26 mins ago
Zak
Zak
I could really do with a pictographical example of what that means
if (str == strNew)
{
into
if (str == strNew) {
14:59
@EBrown Great, thanks!
that would slim the size down
but The One True Brace-Style <sup>TM</sup> is a debated topic
@Quill C# frowns upon Egyptian braces.
It does actually have semantics for them.
Zak
Zak
@Quill I thought I had that in my answer?
15:01
in the edit, after my comment
not in the original
Zak
Zak
yes, good point, but it's still going down :( evidently, the community feels it's not useful
then delete it, all good answerers delete answers sometimes
Found this gem:
Your pretty smart AND your pretty. Thanks! {wink} — Brandon Moore May 3 '12 at 3:08
usually the easiest way to slim those kind of blocks down is to either put it into an array or reverse the conditions and return
thanks for the flag
@Quill No problem. ;)
It's from 2012, but whatever.
Zak
Zak
15:04
I was getting around to that, but was having difficulty wrapping my head around what was actually going on and then got distracted by work.
oh, I didn't realise deleting stuff refunded the rep loss.
@Zak It works both ways. No rep gain or loss for deleted posts.
Zak
Zak
good to know
Any T-SQL expert around, that can help me formulate a query?
Zak
Zak
what happens to answers if I delete a question?
@EBrown Try @Mat'sMug
15:13
0
Q: Storing an integer counter in indexer

MrLoreI've been implementing a custom internal server error page in ASP.Net MVC which will check if the current user is either an administrator or accessing the page from localhost, and if so, show them a whole bunch of details about the error to debug it with, otherwise just send them to a basic HTML ...

@EBrown What's up?
@Zak I recommend that to everyone.
@Zak the answerer will loose the rep
15:28
@Heslacher Uhm.... no. The answerers will not lose rep because questions with upvoted answers can only be deleted by mods.
Of course, if there's a 0 score answer, the answerer will still likely be irritated, but will not have lost rep.
(unless it has multiple up votes, and the same number of down votes).
0
Q: Getting more detailed StackExchange mails -- Part 1

Jeroen VannevelI made the layout for a new project which will allow you to subscribe to periodic emails about your favorite Stack Exchange site (I'm not very happy with the SE-provided one). Since I'm horrible at design and in essence new to HTML/CSS/Javascript, I figured I'd get started with that so the hard p...

15:54
Whoa, a Jeroen question
3
I'm in unknown territory

« first day (850 days earlier)      last day (3462 days later) »