« first day (849 days earlier)      last day (3161 days later) » 

Zak
@IntensifierDescriptorMan I've learnt far more about "good" in the past 2 weeks of being on CR than a whole year of googling "how to program VBA well" and reading SO answers.
14
 
ugh
This one answer I've posted has frustrated me all day so far.
 
Can you share a link?
 
What's wrong with that one?
 
7:04 PM
Nothing
 
I agree
But why is it frustrating?
 
I had to remove a suggestion about curly braces just because somebody decided to downvote it because of that.
And another user apparently hates include guards, so that's another downvote.
 
... But the suggestion is good
 
Well, the braces one is a little opinion-based, but not the include guards suggestion.
There really is no style for braces in c++
Thanks santa!
 
@EthanBierlein There are many.
 
7:07 PM
Let me rephrase that
 
If you pull it down, but still leave there, it counts for something
 
There is no official style for braces in C++.
 
First tip about reviewing style in C++: don't, unless it's obviously wrong.
 
Second tip about reviewing style in C++: don't.
 
@EthanBierlein And many widely accepted ones :p
 
7:08 PM
You can always make some space at the end and specify that it is just an opinion
 
Also, yeah, you can define templates in files .cpp but don't expect them to work unless you're calling them from the same file.
@IsmaelMiguel Frankly, it's at best useless and at worse annoying.
 
@IsmaelMiguel Yeah, but there's always going to be some ass that comes along and says "Well, that's not the right way to do it! Your're supposed to do it [way user does it].", and then another downvote.
 
Forgot about those 2 points...
 
I think that I often almost didn't upvote answers because half of the review was about style and totally opinion-based ^^"
4
 
7:12 PM
Thanks santa!
 
@Morwenn I also tend to not upvote such answers.
 
Whether I upvote is basically a result of the balance between what I like in the review and what annoys me. It's « sad » but I'm more likely to upvote a small answer about the algorithm rather than a long review which includes the algorithm part but adds a ton of comments on the style.
That said, I probably wrote such comments about the past in my reviews, but I try to refrain these days.
Except when I review Python. There's an official style guide.
 
7:30 PM
@Morwenn @EthanBierlein K&R are the usually accepted standard, I've seen.
And about style, I've been trying to pull away from style review unless it is un-opinion-based bad.
 
Greetings @all
 
Hey @syb0rg!
 
Zak
Monkevening :)
 
Greetings @syb0rg
 
7:34 PM
I'm here to pimp a selfie that I've had just sitting on my laptop for a bit: codereview.stackexchange.com/a/102433/27623
 
@syb0rg Hey, I finally have more rep than you :D
 
@Morwenn Damn it Congrats!!!
 
@syb0rg But I'm not really active anymore either, so you have all the time you need to undo that :p
(Or just mass downvote)
 
@Morwenn I'm wayyyyy too busy nowadays haha
22 credits this semester
 
Eh, good luck then :/
 
7:36 PM
Whoa.
Good luck.
 
Tanks
 
Hell
 
It's the first day of classes today
I can't tell you how much I hate freshmen
 
Eternal September.
 
Zak
7:39 PM
 
Actually, I have a selfie that hasn't gotten much attention as well: codereview.stackexchange.com/questions/102150/…
 
@Malachi Eternal September?
 
@RubberDuck lol IDK, it's what came to mind when that was said...???
 
I have... so many selfies.
 
I have, like three.
I should really consider making more
I've actually surprised myself sometimes by finding stuff that I didn't catch before.
 
7:42 PM
This questions seems better suitable for codereview.stackexchange.comEjay 10 secs ago
 
I often ended up answering my own question because nobody answered them, or those were only style reviews.
 
@Malachi @RubberDuck one... more... day...
 
I don't know how many selfies I have :s
 
            SELECT MAX(epi_id)
            FROM #ClientEpisodes
            WHERE (
                epi_lastname LIKE '%'+ "exceptions".THVSPI_PATIENTNAMELAST +'%'
                OR "exceptions".THVSPI_PATIENTNAMELAST LIKE '%'+ epi_lastname +'%'
            )
Ugh, wish there was a way to make this thing faster
> (3703 row(s) affected)
Routine (4) completed in 63 seconds.
 
@Morwenn To be honest, I think that's the only type of selfie constructive to Code Review.
 
7:50 PM
I guess 63 seconds aren't so bad, all things considered...
 
@Phrancis I don't know what all those considered things are, but 63 seconds is quite long if it has to be executed often.
 
I don't have enough questions to have many selfies.... and my questions are normally way out of my expert znes anyway
 
@Mast About once a week, and it's just the one longest piece of the whole 370 line script
Whole thing from top to bottom takes about 5 minutes I'd say
 
0
Q: UpSert (Insert Or Update) optimization

alkisI'm using this the below. IF EXISTS(SELECT 1 FROM TABLE_NAME WHERE COL_A = 'A' AND COL_B = 'B' AND COL_C = 10) BEGIN UPDATE TABLE_NAME SET COL_D = 'D' COL_E = 'E' WHERE COL_A = 'A' AND COL_B = 'B' AND COL_C = 10 AND COL_C > 15 END ELSE BEGIN INSERT I...

 
@Phrancis Sounds acceptable in that case.
 
7:55 PM
@CaptainObvious Example code, methinks
BEGIN
    UPDATE TABLE_NAME
    SET COL_D = 'D' COL_E = 'E'
    WHERE COL_A = 'A' AND COL_B = 'B' AND COL_C = 10 AND COL_C > 15
END
 
@Phrancis Does it matter in this question? As in, would any of it be reviewed differently if we know the names?
 
missing a comma between SET COL_D = 'D' and COL_E = 'E'
 
Zak
@CaptainObvious nope, just bad variable names
 
AND COL_C = 10 AND COL_C > 15 <-- unresolveable condition, that will never be true
 
it does resolve.... to false ;-)
 
7:58 PM
Might as well put in AND 1=0 for all the difference it will make :)
 
yup
 
@Phrancis Wut, that's a weird statement indeed.
 
@Mast It's not weird, it's just wrong. Telltale sign of untested/example code
 
@Phrancis Or having legacy parts in it that don't bug the code but aren't usefull and slow the code down.
 
Zak
are we sure it's example? The speed metrics suggest it has actually been run...
 
7:59 PM
How is AND COL_C = 10 AND COL_C > 15 (in the first snippet's update query) possibly working? — Mat's Mug ♦ 6 secs ago
 
But in this case, it's quite obvious...
 
@Zak an update statement with a where clause that filters out every single row to be updated, is certainly as fast as it gets ;-)
 
If his value for COL_C happens to always be above 15 in the tests he ran, he wouldn't have found the bug that way.
Don't just unit test. Read your own code as well.
 
@Mast but 10 isn't >15...
 
@Mat'sMug I see a bunch of question marks for value, not a 10
 
8:02 PM
@Mast That's normal, it's Java (prepared statements)
 
@Mast those are parameters
whatever the parameter value is, that makes no sense
 
Zak
Edited by OP, makes much more sense now
 
@Mat'sMug He's only talking about 10 in one place, which is probably where he's wrong.
 
X cannot be = ?? and > 15
 
I know this part seems odd COL_C = 10 AND COL_C > 15. What I'm trying to do is to check if an entry exists. If yes then update it only if that certain column is above 15 (static value). If not insert the entry.
But if my SQL is correct, that's not how his function can work.
 
8:03 PM
@KRyan #pragma once does not offer so many advantages. Name conflicts are orthogonal. That means that you didn't use namespaces properly and you should feel bad about it :( Also, from a speed point of view, GCC at least recognizes include guards and is able to make proper optimizations too. — Morwenn 3 mins ago
 
Zak
the = 10 and >15 is an example of a line where it would (did?) fail
 
@Morwenn Thanks for that comment ^^
 
@Mat'sMug It can if ?? is always above 15, in which case the check for > 15 is superfluous.
@Phrancis I know, that's not how I meant it.
 
@EthanBierlein I fear it's a bit offensive (or might be taken as such).
 
if( foo == 10 && foo > 15) {} cannot evaluate to true in any circumstance
SQL is no different
 
8:05 PM
@Phrancis if( foo == 200 && foo > 15) {} is totally valid though. Not useful, but totally valid.
So his code may not be the problem but what he thinks it does versus what it actually does.
Perhaps it should be closed as UWYA for exactly that reason.
Does his edit fix the problem?
 
@Phrancis that's the idea: any foo < 15 is not supposed to get updated
Fair enough, I've retracted my downvote. As for the column names, more realistic ones would help avoiding to come off as "example code", which is outside the scope of this site. — Mat's Mug ♦ 1 min ago
@Mat'sMug Oh I see. I will change them then. No big deal. — alkis 20 secs ago
roomba'd
once OP edited the column names into the post, the question could use an edit to put the top two snippets in quote blocks
 
0
Q: Modeling rainwater collection and cost

PFlansThe following is a function that that takes an area as an input and outputs some resulting calculations. I thought an object was useful for creating multiple instances with different custom properties overwriting the defaults to make comparisons easy. The getter and the setters are there so w...

 
I mentioned it in the DBA room, I think this might actually be one of those where specific performance optimization concerns might be a better fit there, but I'll let them decide that
 
8:20 PM
ugh.. OP deleted it
 
@Mat'sMug ??
 
the UpSert question
 
oh
 
my undelete vote would be binding. OP edited their post and almost immediately the 4th and 5th close votes came in. I proceeded to edit, but when I finished OP had deleted the post.
 
I would vote to leave closed anyway.
 
8:27 PM
fine then
@rolfl solely for the fake identifiers?
 
The question is hypothetical, and his comment about the column names, even if I am generous and let that go for the table TABLE_NAME too...... is not enough to give it meaningful context.
it's still too hypothetical for it to make sense.
no way to even guess which columns are string, integers, etc.
 
indeed... OTOH what does it matter which column is what type, since all the parameters are handled by SQL Server?
actually, you're right (duh)
 
And a where clause like this?
WHERE COL_A = 'A' AND COL_B = 'B' AND COL_C = 20 AND COL_C > 15
 
that's an example with the parameters passed in
 
So, what's the point of the COL_C = 20 ..... unless context has been removed......
 
8:29 PM
and COL_A & COL_B are strings, COL_C is int
 
Zak
@Mat'sMug I restructured my Macro. Is it too much? i.imgur.com/7nuZrfP.png?1
 
IF EXISTS(SELECT 1 FROM TABLE_NAME WHERE COL_A = ? AND COL_B = ? AND COL_C = ?)
    BEGIN
        UPDATE TABLE_NAME
        SET COL_D = ? COL_E = ?
        WHERE COL_A = ? AND COL_B = ? AND COL_C = ? AND COL_C > 15
    END
ELSE
    BEGIN
        INSERT INTO TABLE_NAME
        (COL_A, COL_B, COL_C, COL_D, COL_E)
        VALUES
        (?, ?, ?, ?, ?)
    END
^^ this is the code that's (was) up for review
the 20 is a parameter value
 
it was ugly.
someone would have started to review it and then OP would have said something like I am doing it because, blah blah blah, and someone would say, we didn't know because, blah blah blah
 
0
Q: A simple multi-threaded bitcoin vanity address generator written in Java

weare138I've been experimenting with the bitcoinj library and would like some critical feedback. Specifically code correctness, code smells, overall structure, and my usage of futures. The application leverages the bitcoinj library to generate vanity bitcoin addresses. A vanity address is simply a bitco...

 
@rolfl what I meant with "you're right", is that there's not enough context indeed - we'd need the table structure and a little bit more info about what it's used for and what it contains, because a composite clustered index over two strings and an integer can't be great; there has to be a reason why the clustered index isn't just a plain integer.
 
8:39 PM
Interesting pilot for Stack Overflow…
267
Q: Warlords of Documentation: A Proposed Expansion of Stack Overflow

Kevin MontroseIt’s been 7 years and 10,000,000+ Questions since Stack Overflow was launched. The amount of good that has been done for the field - all the developers helped, all the person-hours saved, all the beginners who grew into professionals - is hard to overstate. I cannot express how proud I am of what...

A bit like our idea of canonical topics?
 
@Mat'sMug While it probably wouldn't matter (I stated something like that earlier), it's obviously off-topic.
We know it's out of scope, now it's just a matter of how much out-of-scope-ness we tolerate.
Have fun with that ^^
 
@200_success sounds like a ...reboot.. that will probably end up with tons of blog-post-size-markdown-formatted-with-MathJax-and-shiny-diagrams-and-piecharts posts.
 
Oy. I give up. This guy just won't quit.
He will have his opinion on include guards and I don't care.
 
in The Heapâ„¢ - Consultancy ©®, 37 mins ago, by Mike Fal
@Phrancis I'm wondering why the hell they wouldn't just use a MERGE if it's SQL Server?
 
Ugh. Ajax seriously looks like greek to me...
Maybe it's time to call it a day..
 
8:53 PM
@RubberDuck I call it Monday
2
 
I'd toss out a star if I had any left @Malachi.
 
lol right?
 
@RubberDuck RSA
 
super simple answer right here ▼▼▼
1
A: MVC and Services

AndréAngular is not exactly a MVC framework, it's a MVW - Model-View-Whatever. You can find an explanation here. The application has a good structure: Services to retrieve data from server Controller to access the services and provide the view model Html for presentation A good solution to work ...

 
@200_success hmmmm....... I know of some docs that need some love... cough LibGit2Sharp cough
 
9:00 PM
0
A: Printer Color Templates

Arvind PadmanabhanI could make out some parts that could be improved. Good that you have used docstring for the class. You could do the same for the methods. In general, the code could have more comments where things are not obvious. Right now there are hardly any comments. Python programmers prefer functions_na...

 
Ugh. I'm tired, I start high school tomorrow, and I have an awful headache. I'll see you all in a little bit after I take a nap or something.
Bye
 
0
Q: Oh my gosh: How many selfies have I taken?

SirPythonThe title is a joke on how some people take a lot of selifes pictures Recently, in The 2nd Monitor, there was a brief discussion on selfie answers, starting with this post. At one point, a user said this: I don't know how many selfies I have :s I immediately thought: this is the perfect o...

 
@Mat'sMug You around?
 
VB.Net Zombie I am shooting at, any back up?
0
A: Vulnerability of Encryption class usiing AES + HMAC

MalachiThis isn't anything huge or anything, you can actually get rid of Dim plaintext As String This variable is only used to return a value, and you don't need to assign the value to this variable before you return it. it can be returned directly from inside the using statements. right here ...

 
@CaptainObvious I wonder if I can answer that one before monkey...
 
9:13 PM
@Malachi Ammo dispersed.
 
@EBrown thank you
 
@Mast Were you here when I did my phone interview last Friday?
 
@CaptainObvious no CTE(s)?
 
@Malachi CTE?
 
Common Table Expression
 
9:15 PM
@SimonAndréForsberg You can unless he's pinged ;-)
 
Does that mean I am missing something from my post?
 
@CaptainObvious wow, I was going to query SEDE and find out tonight... apparently I don't need to!
@EBrown 'sup?
 
@Mat'sMug Remember my phone interview on Friday?
 
yeah
 
My recruiter called me today about it.
 
9:16 PM
Good news?
 
drumroll...
 
And he basically said he doesn't feel comfortable putting me in a "Junior Developer Position" because he feels I'm overqualified.
 
nice!
 
He said when the guy I talked to on the phone gave them the report of the call, apparently the guy said I was qualified for most Senior-Level .NET/C# positions...lol
That set a nice boost to my day this morning.
 
game the report?
ah
 
9:18 PM
@Mat'sMug *Gave
 
lol it does make a difference ;-)
 
I guess between the Skills Assessment tests they gave me (which my recruiter said I blew out of the water) and the results from that phone call, the recruiter found like six or seven other jobs that he thinks I'm qualified for as well.
The only thing he says is hurting me right now is my lack of on-the-books experience.
 
> 25 rows returned in 16 ms @SirPython
@SirPython so who's the user with the most selfies?
 
I only have one selfie.
 
@SirPython just something I observed... but I only glanced
 
9:20 PM
@Mat'sMug That would be another query.
 
nope. that would be a better query ;-)
[UserId][Selfies][Rank]
 
I have 7
at least that is what that query says
 
actually you're right - you're not counting selfies, you're selecting them
 
I think I need to toy around with SQL a bit more before I do that, and I'm probably going to wait for a review before I try.
 
I'm actually really excited about this recruiting company now, though.
 
9:22 PM
- it would be a totally different query
 
drat
 
Wow! Already has two answers.
 
SEDE questions get answers really fast!
 
And often get hot for that
 
9:26 PM
and because they are chatted about here too.
 
@Simon - Because Users like self-validation, and it's good for the ego to see your name as a link! — rolfl 43 secs ago
lol ^^
 
Zak
tired. bed. monknight @all
 
I couldn't think of the last primary keyword, I've used it so little... LIMIT
 
@Mat'sMug Do you use the XML Documentation (///) built into Visual Studio/C#?
 
@EBrown You don't want to know. I hear it went very well?
 
9:28 PM
I broke my fork
 
It's been 30 minutes; I think my post has passed the Jamal test.
8
 
@EBrown That's one of the things making one senior or not: experience
It's important.
 
@Mast Yeah. He says that's the only thing hurting me.
 
I updated my answer on that VB question too @SirPython
 
But, he said if I can get him 2-3 technical references, he should be able to make it happen.
 
9:29 PM
@Phrancis - FYI, you've used two constants for the OwnerUserID on your query, which is fine, but you have not actually indicated that there's a join on the OwnerUserId between the tables in th inner-join syntax... Question.OwenerUserId = Answer.OwnerUserID. These hints can help a lot with performance too.
 
> An error occurred while executing batch. Error message is: Exception of type 'System.OutOfMemoryException' was thrown.
 
I don't think it will make a huge difference this time, but it can be important depending on the query.
 
@EBrown yes!
*try to
 
@rolfl Oh nice catch. Let me edit that in for posterity
 
@Malachi Whoops! I apologize; I used very bad wording. You did fine in that top section. I actually meant to say "The points after that point where..."
 
9:30 PM
@Mat'sMug Do you ever have issues with it not recognizing base-base class properties in <see> tags?
 
@Phrancis that's MySQL
 
@SirPython it's the same reasoning, just another example of where the user can apply that reasoning, right?
 
@EBrown nope
 
@Malachi Ah, I apologize for the misunderstanding.
 
it's all good.
 
9:32 PM
@rolfl you've become jon doe again? data.stackexchange.com/users/16036/jon-doe16037
 
@Mat'sMug Odd. I have several levels of classes (Form : Framework.Windows.Forms.Form, Framework.Windows.Forms.Form : ContainerControl, ContainerControl : ScrollableControl, ScrollableControl : Control) and it won't automatically recognize properties from Control in a <see> tag.
 
@Mat'sMug TSQL doesn't use LIMIT? I always use select top n myself so... could be wrong
 
@EBrown I try to avoid deep inheritance trees
 
@SimonAndréForsberg That JD lingered, I got this back again: data.stackexchange.com/users/12469/rolfl
 
@Phrancis TOP is tsql, LIMIT is mysql
 
9:33 PM
@Mat'sMug This is a duplicate of the Windows Forms API, can't really avoid it without making it no longer a duplicate...lol
 
I can't log in as the old JD to delete it though ;-)
 
But I have to use: <see cref="Control.Size"/> instead of <see cref="Size"/>.
Otherwise it won't qualify it in the XML.
 
@Mat'sMug OK thanks
I just killed SSMS.
 
@EBrown So, how you gonna kill that lack of experience?
 
@EBrown yup, that's the syntax
 
9:35 PM
@Mast Well, he was saying if I can get a couple technical references (project managers I worked for, basically) he can fill the lack of experience in, provided they have good references.
@Mat'sMug Right, but you would think that because Form eventually inherits down to a Control, that the Control is not needed on Control.Size.
 
@EBrown Can you get such references?
 
@Mast Yeah, I have at least two available right now.
I can probably have a third ready in the morning.
So, hopefully he can fill in the lack of experience with information from them.
 
Sounds good :-)
 
@Mast Indeed. I'm actually quite excited about it now.
This recruiting company has contracts all over the U.S. as well, so if I want to move in the future they can probably get me a contract in the area I want to move to. (Provided I do well with them.)
 
TTGH/BBL
 
9:37 PM
did anyone do a query to see who had more Revival and Necromancer badges? weren't we talking about that earlier?
later @Mat
 
Konijn owns the championship imo
 
@Malachi Yea, in the CR Chronicals
 
I bet that he does @Mat'sMug but I want to see where I stack up, you know?
 
As soon as UTC switches over I get my [badge:fanatic] for SO.
 
If I make an edit to a post, do all the answer-ers get a notification?
 
9:39 PM
@SirPython no
 
Still have 41 days until I get it for CR, though.
 
@SirPython unless they have the question favorited, and then if they check their favorite questions tab on their profile they will see activity
 
@EBrown Got them on both. Took a while for CR though, I broke the streak somewhere after 60 days on the first try.
 
@Mast Oh no. :(
 
@SirPython - My query, and other answers, do a self-join on the Posts table. Joins Posts, to Posts.
The one version of Posts I alias as Q (and limit that version to PostTypeId = 1). The other version I alias as A and limit to PostTypeId = 2.
The as in Posts as Q is Optional, and I tend to leave optional stuff out a lot.
 
9:45 PM
from Posts Q
inner join Posts A
Is that where you are assigning the aliases?
 
That is syntactically the same as
from Posts as Q
inner join Posts as A
And yes, it is where the alias is set/created.
The from-clause is where you create aliases for tables, and the select clause can be used to rename/alias columns. select text as Description, ......
@SirPython - for the record, I think @Phrancis has a better answer than mine..... and @Simon's indentation is not nice ;-)
 
what indentation? :)
2
 
that ^^^^
TTGGABTE
(Grab a bite to eat).
 
@Simon ind... inden... indenta...tion :)
 
in Cardshifter TCG, Aug 23 at 19:52, by Simon André Forsberg
@jacwah erhm... docu... docume... do-cu-ment-a-tion... that's a hard word for me.
5
A: Oh my goodness: How many selfies have I taken?

Simon André Forsberg Is it good that I stored the posts in tables, or is it unnecessary? I would say that it is unnecessary. Instead of using those temporary tables, you can run a SELECT with a JOIN directly on the Posts table. Additionally, using the ParentId condition, your @QuestionId and @AnswerId is not n...

that better, @rolfl? ^^
 
9:52 PM
@SimonAndréForsberg @rolfl @Phrancis I have added a new question to my post if you are interested.
 
I agree that @Phrancis has the best answer. His answer is the only one that even tries to answer all the questions.
 
I'm voting to close this question as off-topic because code-reviewing questions should be posted to CodeReviewFrank N. Stein 18 secs ago
 
1 min ago, by Simon André Forsberg
in Cardshifter TCG, Aug 23 at 19:52, by Simon André Forsberg
@jacwah erhm... docu... docume... do-cu-ment-a-tion... that's a hard word for me.
 
monking
 
Hello @Quill.
 
9:56 PM
I'm voting to close this question as too broad because from a Stack Overflow point of view, that is what it is. If you want feedback about any and all aspects of your code, you should post it at Code ReviewSimon André Forsberg just now
 
oh boy, Big Brother is still online! I really thought he'd have crashed by now
 
@Quill please read my comments in that room about him. I have a few... concerns.
 
sure
 
if you want to discuss it, I think it might be better to do that here or in another room, as BB tends to... post a lot :)
 
I'm not often the one to point fingers at someone else, but look at SmokeDetector in Tavern on The Meta
it has its' own room, and posts frequently there, but some in main chat
I think a lot of what BB posts is a toy, but I believe it can geniunely be refined
How or what BigBrother will be once refined is what I'm yet to understand
Watching stars is, well, pointless. But, innapropriate words are a bit better, and I think if it watched and was able to tell you how many stars you posted, or directly 'who starred xyz_id post', that might be a bit more helpful
 
10:02 PM
I'm sure BB can be useful. And I'm aware that Stack Exchange doesn't have a limit of how much an account can post (besides the ordinary throttling mechanism, which I'm sure you are aware of). I just think that the format for how/what BB does can be improved.
@Quill yes. that might be a bit more helpful.
I feel like it needs refinement, and a more clear "mission". What should it do and what should it not do? (and why?)
 
Why is the main question, really
I can see the usage if you're trying to track starwall culprits (probably not in here), or star spammers or something.
Beyond that, I'm yet to think about.
Anyway, I've gotta go.
and thanks for the feedback about the webservice stuff
 
no problem.
will be interesting to see how BB continues.
 
@SirPython I added some more info to address that: codereview.stackexchange.com/a/102447/42632
 
Thanks! I'm reading over it now.
 
And I (again) created a cross-join by accident. Going from 16K to 3Mil records was very suspicious.
 
10:14 PM
@Phrancis It's the little things that give it away.
 
0
Q: Extremely redundant HTML templating

SuperScriptThis is horrendous. I'm using lodash's templating engine for this table. Here's the template for an individual record's row. I've got 5 different table and record-types and a view and edit mode for each row: <script id="individual-template" type="text/template"> <div class="individual<%= type...

 
@CaptainObvious This is horrendous. Well, at least he's honest.
The copy-paste is strong with this one.
 
The tiredness is strong in this one.
Night!
 
Night'
 
and that when the day just started 20 minutes ago
oh damn this keyboard is a pain...
 
10:37 PM
And... for code reviewing, there's another site: CodeReviewFrank N. Stein 23 secs ago
And... for code reviewing, there's another site: CodeReviewFrank N. Stein 9 secs ago
 
hrmph.
 
@FrankN.Stein for the record. Code Review is not intended for broken code. As such this question is horribly off-topic for codereview — Vogel612 19 secs ago
 
Preach ^^
 
@Vogel612 Burn it.
 
no. because it's my only rollable keyboard
grrrrr
but I am getting better
 
10:43 PM
@FrankN.Stein Don't migrate crap. Especially not to Code Review. — Mast 34 secs ago
 
don't jump to conclusions
 
@Vogel612 It's also so horribly off-topic for HERE... Since it's really a BUNCH of errors, not only a SPECIFIC issue. — Frank N. Stein 3 mins ago
No jumping involved.
He doesn't want it at SO, so he suggests moving it to CR (while it's bad here too).
 
nobody never said it should be migrated
no
 
Perhaps I'm considering SO users too negative again.
Time to get out, it has been a long exhausting day.
TTGTB
 
Good night @Mast.
 
10:49 PM
Ugh. I'm looking through all the questions on Gaming.SE and the quality of them makes me want to puke.
 
TTGH
 
@EthanBierlein Why don't you try editing them?
 
@SirPython I do that. Except they're still all off-topic, contain no description of their problems, and are most likely written by people thinking that SE is a help forum.
Some of them also look like they're written by 8-year-olds.
I think I might write a post on Meta.Gaming.SE tonight asking for action on these posts.
 
11:15 PM
Can you chat withme in the site's chat room: The 2nd monitor? — rolfl 12 secs ago
 
hi, what's up
hi @rolfl still there?
 
Yup... ;-)
Hi, I am not sure we understand each other, that's all...
I have some suggestions that require Java 1.8, in your code, not in the quava or other code.
 
ah, yes :-) I am on java version "1.8.0_25"
 
The other code would be compatible still, but, for example, your code could be completely reqritten as a few small-ish functions.
 
I recommend you to visit this site instead. as it is dedicated to improvement on existing, working, code. — Emz 31 secs ago
 
11:25 PM
When I pulled your code in to my eclipse build, though, it initialized the project with Java 6,...... so I was confused.
So, for example, basically all your guts of your code can be reduced to:
        Optional<ECKey> found = LongStream.iterate(0L, c -> c + 1)
                .parallel()
                .peek(i -> progress(i))
                .mapToObj(ignore -> new ECKey())
                .filter(key -> key.toAddress(NET_PARAMS).toString().contains(targetPhrase))
                .findAny();
So, I'll put that through as an answer, then.... ;-)
I'll go ahead and delete my comments too.
 
cool, I will work on wrapping my head around that :-)
 
11:54 PM
Have a rule not to commit to (say) master except via pull requests. Then code review, test run has to pass etc (perhaps including automated checks of this kind of thing) before merging to master. — Croad Langshan 24 secs ago
 

« first day (849 days earlier)      last day (3161 days later) »