« first day (326 days earlier)      last day (3693 days later) » 

5:00 PM
ugh. fed up. I was given shit this morning, for spending time to make the code more readable and easier to maintain while implementing a small change in a 800-liner procedure. I'm preparing my C.V. tonight, this job doesn't deserve me.
 
Well, that's a bombshell ... !
 
"just fix it later" - that will never happen. I'm not a programmer here, I'm a firefighter. Screw this.
did I miss anything interesting? ...aside from a French kiss and "trip à trois" discussion and a weirdo that intentionally puts a GOTO in his code?
(ironically, after that meeting this morning I finished implementing the changes by "patching" the damn thing with... a goto)
2
 
@Mat'sMug I just read your latest post, and I dont even know whats going on
 
@BenVlodgi the meta counter-answer?
 
@Mat'sMug I meant here in chat
 
5:15 PM
oh, lol. nothing much going on, I'm just fed up with my job/boss/company-that-doesn't-give-a-damn-about-code-quality-and-thinks-writing-‌​quality-code-is-a-waste-of-time. Having "pretty" code isn't a priority, I was told. Had to bite my tongue.
 
@BenVlodgi - Mat's trying to balance the need to find personal job satisfaction against the need to get paid.
 
^^ that
 
I see
 
Don't mean to belittle his problems, but, in the end, that's why he gets paid.... the question is whether it is enough ;-)
@Mat'sMug - for what it is worth, I have never, ever worked at a form-before-function place.
All of them are function-before-form.
The trick is to get them both right at the same time.
 
maybe you need to lower your standards, GOTOS are beautiful too!... stop the media from impressing young programmers with their perfect unattainable standardof beauty. Spagetti code programmers shouldn't feel bad because they are too lazy to take care of their bodies... wait wat
 
5:19 PM
@BenVlodgi - function generates revenue. Form is only indirectly tied to revenue.
You will never be able to justify anything different.
That is why people who write great code are so rare.
It is because they not only wrote something functional, but they wrote it under conditions where there was pressure to hack it together.
 
@rolfl I was being sarcastic, and making a ploy on all the internet posts about unattainable beauty of women.
 
I know, but, there is a lot of truth in it.
A company will hire and keep a person who writes ugly but functional code, quickly.
 
It's beyond just "form". They're opening a db connection (never closing it), then entering a loop that gets files from the file system (across a network), then grabbing some data from the database (using yet another db connection), then parsing some XML from the files, looping through the content, calling 3rd-party API to generate a document in the ERP app, grabbing some more data from the database (did I mention concatenated SQL strings?)... nested recordsets, reused variables...
 
mhmm, that is true
goodbye maintainability
 
...all that was written by a person who writes ugly but functional code, quickly. Now debug it, and don't change anything in the structure.
 
5:23 PM
That's the rub.... balancing the cost of maintenance over the cost of development.
 
@Mat'sMug that physically hurt me to read
 
but they don't get what "cost of maintenance" means
that code base is far uglier than the ugliest piece of code on this site, it actually can compete with codecrap.com...
...and there's no performance issue unless a user says so, so bring them nested recordsets with concatenated string parameters running in a tight loop, who cares, it works!
 
@rolfl I got into it because I worked at the same place for 10+ years (1990 through 2000), evolving/maintaining the same code-base (with up to 20 other developers); there the code had to be good enough to ship, and maintainable enough to evolve and ship again.
 
Sorry, I have a cat on my keyboard... apparenly I have other priorities
 
yeah, right - blame the typos on the cat! ;)
 
5:28 PM
you made me check out codecrap
try {
return true;
} finally {
return false;
}
^ that wouldn't even compile
you cant return in a finally
(assuming C#)
still looks rediculous
 
^^ wouldn't surprise me to read this code somewhere on one of our servers
I've seen this:

try { DoSomethingA(); } catch {}
try { DoSomethingB(); } catch {}
try { DoSomethingC(); } catch {}
...
try { DoSomethingZ(); } catch {}
 
ouche
 
@BenVlodgi Works in Java.
Returns false.
 
^^ real code written by my predecessors
 
@rolfl grossssss
 
5:31 PM
public static void main(String[] args) {
    System.out.println(tryFinal());
}

private static boolean tryFinal() {
    try {
        return true;
    } finally {
        return false;
    }
}
 
@BenVlodgi I presume C# would also return false
 
@Mat'sMug no... you cant return anything durring a finally
because the finally runs after the method has returned
can
 
true
6
A: Return in try & catch versus return in finally?

abatishchevYou can't return from finally. You will get compiler error: Control cannot leave the body of a finally clause If target class implements IDisposable then I would do next: using (stuff s = new stuff()) { return stuff; } or using (stuff s = new stuff()) { try { // do...

(I never tried return in a finally block...)
 
that guy should just
try {
    stuff that changes something...
}
catch (System.Exception ex) {
    something.worked = false;
    something.err = ex.Message;
}
finally {
    stuff.close();
}
return something;
 
^^ still crooked ... oh no, it's the egyptian brackets, nevermind ;)
 
5:35 PM
crooked?
those are gross
I just copypasta and moved one line
just returning after the trycatchfinally
 
how does copypasta tasta ?
4
 
@rolfl like crapa
4
 
lola
6
 
Man that's an odd song
 
♪ lo-lo-lo-lo-lo-la ♪ lo-la ♪ lo-lo-lo-lo-lo-la ♪
 
5:39 PM
gotta play it .... cause she walked like a woman and talked like a man ..... ohhhh lola ...
 
(what have I done...)
2
 
I'd be very depressed right now, if it wasn't of CR, this chatroom, and most of all, you guys.
 
You're welcome ;-)
OMG, that's a funny song .... lola ....
Girls will be boys, and boys will be girls... it's a mixed up world....
 
5:42 PM
I haven't even clicked that link, and the song's playing in my head..
lol.. that's a song for @Morwenn's earlier discussion!
 
Hah, it truly is
I miss when SO had a close reason of basically "wtf are you talking about?" :/
 
@Corbin “unclear what you're asking” is still there. But I severly miss “this question shows no effin' effort at all” (although it probably used a tamer wording)
 
5:58 PM
Yeah, but "unclear what you're asking" and "what the hell are you talking about?" just don't have the same feel :(.
 
0
Q: Trying to get daily SUM from larger report

SuzanneI'm trying to pull a report that will give me the Daily Sum of all credit card purchases for a set range of dates. Right now I have the following report which gives me the sum of all credit card transactions for the dates I set as one lump sum. Basically I want the report to look like this: 3/...

 
stackoverflow.com/questions/22669152/… is what was making me lament the new messages. It's completely clear what he's asking; it's just stupid if he's even glanced at the documentation. :/
 
@StackExchange OT
l-o-l-a lo-la...
 
It is catchy... time to play it again.
 
@Vogel612 Don't worry, I'm still at SE at home :) It's just that now I don't have any work for a while, so I can't be
@rolfl It's Batik 1.7. And it only happens under Linux weirdly enough. Perhaps I'll file a bug with them next time I'll be working (probably in April some time)
Now when I'm not working I can learn Ruby and Scala :)
 
6:14 PM
@SimonAndréForsberg - so you really QW?
 
@rolfl BBIAB = Be Back In A Banana?
 
Bit.
 
@rolfl Yes, for a while. I'm working externally so it's not a full-time never-ending job. I've been working when I'm needed. I will try to write a CV and look for a better job.
 
Also, that guy on the left side of the video preview looks like @Morwenn
 
He does ;-)
 
6:16 PM
@Simon what did I tell you to be pinged with that message??
 
@rolfl "The trick is to get them both right at the same time.", i.e. create the thing from scratch?
 
@Simon no. that takes time... and could break interactions with existing code..
better write a maximum coverage unit test suite and then start refactoring.
 
@SimonAndréForsberg Essentially, yes. It is next to impossible to fix ugly code when there are other things that need doing.
 
Fixing ugly code with an ugly hack will (almost) always be faster (or at least will appear to be faster) than making the code pretty.
 
6:27 PM
that was actually referring to the message before..
 
@Vogel612 Oh, unit tests.... if I was at work right now I'd ask: What's that?
 
@rolf good luck troubleshooting a corner-case-bug
 
@Vogel612 Agreed, but, even a corner-case bug in ugly code will most lilkely be fixed faster than rewriting the ugly code in a working way.
 
@Vogel612 where 'the message before' being...?
 
As I say, the right approach is to write good, pretty code the first time.
5
 
6:29 PM
"I'll fix this later"
 
That is very hard to do.
 
yea....
 
And that is, in my experience, what makes a great programmer.
 
Couldn't agree more, monkey. I find that it is often worth it thinking about it for an hour or so how you would structure the code before you start.
 
Someone who writes functional code that is pretty (maintainable), under pressure from management to deliver.
It is very rare that you get the opportunity to go back and fix things, and, even when you do get the opportunity, the rewrite is normally 'tainted' by being compatible with what is already 'out there'.... so you have to reproduce bad behaviour.
 
6:32 PM
^^ so true
Public Function pfNzSq(ByVal pstrToFormat As Variant) As String

    pfNzSq = pstrToFormat
    pfNzSq = Replace(pfNzSq, "'", "''")
    pfNzSq = pfNz(pfNzSq)

End Function
Public Function pfNz(ByVal pstrToFormat As Variant) As String

    On Error GoTo Err_Process

    If IsNull(pstrToFormat) Or pstrToFormat = Empty Then
        pstrToFormat = ""
    End If

    pfNz = pstrToFormat

Exit_Process:
    Exit Function
Err_Process:
    Resume Exit_Process
    Resume
End Function
 
@Mat'sMug can one even do that? assign to return value multiple times?
 
I'd probably kill the moron that wrote this if I saw him ^^^^
pfNz is called 301 times.
My version:
Public Function Coalesce(ByVal value As Variant, Optional ByVal value_when_null As Variant = 0) As Variant

    Dim return_value As Variant
    On Error Resume Next 'supress error handling

    If IsNull(value) Or (TypeName(value) = "String" And value = vbNullString) Then
        return_value = value_when_null
    Else
        return_value = value
    End If

    Err.Clear 'clear any errors that might have occurred
    On Error GoTo 0 'reinstate error handling

    Coalesce = return_value

End Function
 
0
Q: My first prime number program in JavaScript

DEdesigns57I had to look up some other solutions online because I could not figure it out on my own, which kinda sucks. I really wish I came up with it completely on my own but that didnt happen :(. Nevertheless please review my prime number program and let me know if there are any improvements I should mak...

 
@Vogel612 yes, VB6 allows such insanity
 
@Mat'sMug But your version does not replace ' with ''..... ?
 
6:37 PM
@rolfl that's another function ;)
"prevents SQL injection!" ...God forbit you make a new ADODB.Parameter!!
 
@Mat'sMug wtf is 'pfNz' supposed to mean?
 
No freakin' clue.
I think "pf" stands for "public function" ..it's burried in a 13K-liner module called "Helpers"
 
still getting votes on this bad boy ▼▼▼▼
8
Q: Convert Date from yyyymmdd to mm/dd/yyyy Excel

MalachiI have been searching for about an hour on how to do this in Excel. I have an Excel file that was created from an old system and I am pulling information from a SQL Server Database, I will be inputting the information back into the SQL Server Database and would like the Dates to match. I have...

 
@Mat'sMug I feel your pain
 
And I'm told don't fix it if it's not broken ...we have a different vision of what's "broken"
 
6:39 PM
all of the answers on that question are good enough to deserve an up vote
 
@Malachi napalm'd (like I care about my SO votecount!)
2
 
@Mat'sMug lol
2
 
Personally, I think @SimonAndréForsberg 's last two questions are worth napalming!
 
@rolfl Personally, I agree! :)
 
@Malachi carpet bombed
 
6:41 PM
@Mat'sMug How the hell are one supposed to know if it's broken or not when it's written like that?
 
is there anything this @konijn missed? ( I doubt it ) I think he will get the Bounty no one else is going to chime in. ▼▼▼
13
A: Managing network address information

konijnFrom perusing your code a few times: Custom event abuse While it's very cool to have custom events, I would simply remove this extra layer of logic. It does not make sense to call $(networkInfo).trigger('selectNetworkRanges'); if you could just call selectNetworkRanges(). I understand that you ...

 
0
Q: Simple design pattern for authorization in PHP

Cequielwhat do you think about the following class? Do you think it is a good approach to solve the authorization problem? I'm looking for a very simple design pattern. Thanks. http://www.soloproyectos.com/downloads/auth/class.php Here's an example of use: http://www.soloproyectos.com/downloads/auth/...

 
user image
4
 
@SimonAndréForsberg and you ain't seen no-no-no-no-nothin' yet (BTO)
 
@Vogel612 Thank you
 
6:42 PM
LOL at the picture
5
 
We got some student today in our project that really literally freaked out because his code, which he spent 4h on, worked in the first try.
 
best Hungarian notation ever:
Public Function GetIsWorkingDay(ByVal StrDate As Date) As Boolean
    '2014.01.30 GB : Redmine 71, validate that the date is a working day.
    Dim strQry As String
    Dim rs As ADODB.Recordset

    strQry = "select IsWorkingDay from Schedule where Date = '" & StrDate & "' "
    Set rs = GetAdoRecordset(strQry)
    If rs!IsWorkingDay <> 1 Then
        MsgBox ("La date sélectionnée n'est pas un jour ouvrable")
        GetIsWorkingDay = False
    Else
        GetIsWorkingDay = True
    End If

    rs.Close
GetAdoRecordset: 2,592 uses throughout the code.
(starts thinking "that's not very ethic of me")
 
That code is awful, it's VB or something ;-)
2
 
VB6. StrDate is a Date, not a String. the comment belongs in the commit log, the parameter is concatenated into the query (and this function is called in a loop, obviously), and you can't use it just to validate a given date, because there's also UI logic in there!
 
In Java it would be so much better :p
(in C it would require it's own build script.)
 
6:53 PM
...and the implicit conversion from Date to String is culture-dependant and WILL FAIL (on the SQL side!) if the user's regional settings aren't the expected ones...
FML
 
@skiwi The thought of someone coding for 4 hours without testing it at least a little bit as they go makes me sad. :(
2
 
BTW.Work
 
7:06 PM
You've earned the "Nice Question" badge for Convert Date from yyyymmdd to mm/dd/yyyy Excel.
Thanks
 
awe SO likes your question
@skiwi had some good answers here, that probably deserve more looks... and more answers would be nice, or something else ;)
9
Q: Parsing Valve Map Files (VMF) into a tree like structure

BenVlodgiI've written a small library of objects for parsing of Valve Map Files (VMF). These files are always generated and exported from either the Hammer World Editor, or a Source engine built in map making program like the PTI in Portal 2. So I can trust them to always look roughly like the following, ...

 
@BenVlodgi - I am going through posts that have 'Parsing' in the title, but not tagged with ... do you want to add the tag, or should I ... ?
Nice question, by the way.
 
good idea tnx I shall
and tnx it is apparantly a nice question :)
 
:D
but those all have accepted answers
nevermind
I now understand what you are doing
 
7:22 PM
See, Ben, I am on a mission for [badge:genralist].
 
oic :) I believe in you!
 
See, no-one gets generalist (and there are a number of people (including me) who would qualify, otherwise) until all of the top 40-most-popular tags have at least 200 questions.
What that really means, is that the whole of this page: codereview.stackexchange.com/tags and the top row of this page codereview.stackexchange.com/tags?page=2&tab=popular need 200 questions.
Now, it is a whole lot simpler to make sure that qualifying questions are tagged appropriately (which should be done anyway), than to wait for new questions to come in.
 
Should I just make this a comment?
0
A: Implementation of Python's re.split in Clojure (with capturing parentheses)

Dave YarwoodFor what it's worth, clojure.contrib.string/partition does this exactly.

 
0
Q: D3 JsForce Directed Graph workflow editor

user39502Can someone review my implementation on JSFiddle and give me some pointers making my code cleaner and robust. I've been working on this in JsFiddle. I am attempting to get a nice clean graph implementation for workflow design. For instance, we have input and output nodes and processes in betwe...

 
I would say yes... it does not review any code.
Want me to flag it for ya...?
 
7:35 PM
You may.
 
@Jamal I'd say no ...
 
Well, there's now a flag for those fol with enough rep... time to let the hoards vote.
 
"short answers and link-only answers" on meta suggests it's on-topic; and it's a review comment that the OP explicitly asked for.
 
I must've forgotten about that again. Short answers just stick out to me quite easily.
 
So, to an extent..... man that line is a fine one.
ciao! @syb0rg
 
7:42 PM
I suppose I'll let the flag sit for a bit until I'm sure how to handle it.
 
Hey @rolfl
I've adjusted too much to the local time. I'm so tired right now.
 
You're in Italy?
 
Yeah.
+6 hours to what I'm used to (central)
 
anyone want to chime in on a Programmers Q&A??? or vote on?
 
@Jamal Do you know some friends that may be visiting Italy? I met some college students from Texas the other day that ran in the marathon in Rome.
 
7:50 PM
6
A: Should Android development be done on Windows or OSX? Is there any difference?

MalachiLinux I think you would want to use a Linux based OS for Developing Android applications seeing as how Android is a Linux Based OS, it's open source, it's free, and can run on a partition next to windows, and I think Mac Os as well (don't quote me on that though). it's been a while since I ope...

 
@syb0rg Welcome to my world! Or at least timezone...
 
Thanks Santa
 
Even Santa can work miracles through a phone ;)
4
 
7
A: Short answers and code-only answers

ChrisWIn conclusion, after reading the other answers, I think that the consensus about flagging as "not an answer" is, more or less: Flag link-only answers; for example: There's an interesting implementation at http://example.com Do not flag short answers, even if they contains a link, provided ...

 
^^^ yeah, I know that, now I just need to remember that.
 
7:54 PM
@Jamal and @ChrisW what does it do exactly?
 
Looks like it is a 'generator' format Regex Split operator.
 
his whole answer doesn't make sense without the link, and probably doesn't make send with the link, I haven't tried to read it. the point is that it's not complete, it doesn't form a complete thought/sentence
 
@Malachi It seems to do what the OP was asking for.
 
Right now this is being discussed if this is an answer or not because of how borderline it is. If you expand this answer a bit (perhaps show an example of its usage), that would remove the controversy over this post. — syb0rg 21 secs ago
 
@ChrisW I hate seeing answers that barely form a complete Sentence. but I see your point
@syb0rg you Sneaky Robot
 
7:59 PM
@syb0rg I don't think so.
 
@Jamal Awe, that would have been cool. Oh well.
 
@syb0rg - did you run?
 
Wow
 
No, I got to Rome on the last day of the marathon. I saw the finishing of it.
 
1
Q: Milliseconds to Time string & Time string to Milliseconds

coccoFast Time conversion I'm trying to write a very fast time-to-string and string-to-time function. I noticed that on low CPU mobile devices this function has, even if minimal, impact on the performance of the overall canvas animation. Milliseconds to Time string (HH:MM:SS.mss) In this function:...

 
8:00 PM
Is that why you are there? I recommend Florence, by the way....
 
Florence huh?
 
Thanks @Malachi
 
Sorry @Jamal I had to, please don't roll it back.....
@konijn you're welcome, it's about time someone answered that question. now hopefully the OP with Accept the Answer
 
@rolfl No, I'm just here to see all of the attractions. And I'm in Florence right now actually.
Here as in Italy
 
2 bounties a day keeps boredom away
6
 
8:03 PM
you got 2? they don't count towards your daily cap you know?
 
yep
also accepted dont count
 
@Malachi I wasn't going to. I've just noticed that the post has become way too confusing.
 
Let's try not to scare away the OP of the controversial answer. He's our top answerer.
3
 
@Jamal wait are we talking about the same question?
@konijn Nice!
 
1
Q: Milliseconds to Time string & Time string to Milliseconds

coccoFast Time conversion I'm trying to write a very fast time-to-string and string-to-time function. I noticed that on low CPU mobile devices this function has, even if minimal, impact on the performance of the overall canvas animation. Milliseconds to Time string (HH:MM:SS.mss) In this function:...

 
8:04 PM
@Jamal cocco does not seem to get or care for my analogy :\
 
I don't know what's going on with it, but I certainly won't be lifting the CW.
 
this is the one I was talking about.▼▼▼▼
3
Q: My first time ... generating Prime numbers

DEdesigns57I had to look up some other solutions online because I could not figure it out on my own, which kinda sucks. I really wish I came up with it completely on my own but that didn't happen. Nevertheless, please review my prime number program and let me know if there are any improvements I should make...

 
If anyone is able to get even one line in this game, please let me know: qntm.org/files/hatetris/hatetris.html
(removed)
 
@Malachi Ah. I didn't roll it back, but I did tweak the title a bit.
@konijn I'm not sure if I should re-edit it. Now it just looks junky. I may just give it my downvote.
 
Yeah, I was tempted to downvote as well, but then I would feel obliged to leave a comment
 
8:11 PM
 
Nice @Malachi. One line at least :)
 
I got 3
 
quick question: how to upload to imgurl?
 
first game it gave me all the same pieces and then this game it switched when I was about to make a line every time until that line
 
 
8:14 PM
@Vogel612 click upload .....
 
thanks ;)
 
Paste this in to the 'replay'.....
AAB0 02AA AAAA AAAA B00A AAAA AAAA AC2A AAAA ABAA AAAE A5AA AAAA AB00 0AAA AAAC 02AA AAAA B02A AAAA BAA0 AAAA AAEA A2AA AEAA AAAA AC15 55AA AAAA BA95 2AAA AAAA B2AA AAAB 0AAA AA95 6AAA AAAA AAC0 AAAA C02A AAAA C02A AAA9 AAAA AAA5 6AAA AAAB 00AA AAAA 416E AAAA 8AAA AAAA AAC1 55AA AAAA A0AA AAAB 6AAA 8AA8 2AAA 55E9 AAAA AB55 AAAA D556 AAB9 6AAA C00A AB0A AAAA B55A AB6A AD56 A
 
@Jamal My Version would have gotten more hits from Google, and Bing and Yahoo
 
0AAA AABE AAA3 9BAA 9AAA AA2C 00BE EDEA AAAA AAA6 A7AA AAA8 B055 56AA AAAA A82A AA96 99AA 8035 556A AAAA AAAA A82A 02AA AA0A 6AAA 16AD 55AA AAAA 8AAA AAA6 AD5A AAAA E6AA AAB2 CAA9 AAA0 0AAA AAAB 5AAA AAA5 96E6 AAAD 6AAA AB55 AAAA D6AA A82A 9AAA A02A A0A9 AA02 82AA AAD5 6AAA 356A AA2A AAAA 2A2A AA00 AD56 AA80 A8AA A802 A975 A802 A9AA 800A AAAD 56AA AD6A AA5D 6AAD 6AA3 6AA8 E2AA 800A AFA0 2A88 35AA 02A9 5ACE
 
@Malachi There may not be much of a difference here.
 
8:21 PM
@konijn Hey check this one out▼▼▼▼
5
Q: Rendering HTML through template using dynamic CSS?

Sean AndersonI'm creating an unordered-list element in Backbone via underscore templating. I've got the following: <ul id="FrontRack" style=" background-image: url({%= data.get('racks').at(0).get('imageUrls')[0] %}); height:{%= data.get('racks').at(0).get('pixelHeight') %}px; width:{...

@Jamal I think the words "My First Time" would get hit more..... LOL
 
Heck, I still doubt people search for titles like these. They're too localized.
 
AA56 AAAA AAAA AAAA AA9A AAAA A2AA AAA0 2AAA AAAA AAAA 95AA AAAA AAAA 2AAA AAAA 56AA AAAA AA2A A55A AAAA AAAA AAA8 AAAA 95AA AAAA AAA2 AA95 AAAA AAAA AA2A AAA9 5AAA AAAA 8AA9 5AAA AAAA AA2A AAA9 5AAA AA2A AA56 AAAA A2AA A95A AAA2 AAAB 002A AAAA AAB0 0AAA AAAC 02AA AAAB 00AA AAA9 5AAA AA9A A8AA AAC0 26AA AC2A AAB2 A9AE A56E AAD5 6AA0 02AA AADA 0E9A B55A AD6A 802A ACAA
^^^^ 4, but I thought I was doing so well.
 
TT**Q**W
 
hehehe ....
 
8:29 PM
@Mat'sMug Where ** is?
 
[failed] emphasis on Q
;)
 
@Jamal right...
 
someone got 28 there:
 
@konijn OP 'vandalized' the code in
0
Q: Milliseconds to Time string & Time string to Milliseconds

coccoFast Time conversion I'm trying to write a very fast time-to-string and string-to-time function. I noticed that on low CPU mobile devices this function has, even if minimal, impact on the performance of the overall canvas animation. IMPORTANT Performance Short code ms2TimeString (4 updates...

 
28 is not good. 244, or 2244, but not 28.
 
8:32 PM
IMO you should/could rollback to whichever version makes sense with your answer.
 
I like that idea. Perhaps my revision (#4) may work.
 
Or re-add (to the top) whatever the originally-reviewed code was.
 
Revision 12 added a large update (nothing removed), or #11 is another option. But I'll let konijn decide.
 
@ChrisW That short-answer was owner-deleted, and turned in to a comment.
For what it's worth, clojure.contrib.string/partition does this exactly. — Dave Yarwood 5 mins ago
Not sure at all about all this ;)
TTGDWTB - time to go deal with the brats.
 
Me, neither. Which is why I'm glad I didn't take action right away.
 
8:40 PM
@rolfl the brats being...?
 
@rolfl What a pity. blames Malachi's comment
 
8:58 PM
@ChrisW should have pinged me..... so I can rofl at the situation that @rolfl just found....lol
 
@SimonAndréForsberg Brat 1 and brat 2.,... the kids ;-)
@Malachi - what situation did I just find?
 
25 mins ago, by rolfl
@ChrisW That short-answer was owner-deleted, and turned in to a comment.
25 mins ago, by rolfl
For what it's worth, clojure.contrib.string/partition does this exactly. — Dave Yarwood 5 mins ago
 
0
Q: Integrating External JQUERY code with Edge Animate (Edge animate runs on JQUERY Backbone)

JustinThere are two ways i can see of integrating Edge Animate With External JQuery Something happens within Adobe edge and triggers something to happen externally or vice versa..... 1: When an action is performed (mouseUp MouseOver... etc...) we can initiate some external Jquery For example: When ...

 
@Malachi Ahh, just not sure I see it as funny, then.
 
I always think of the "ROFL" when I go to type your nick in chat @rolfl
 
9:07 PM
Yeah, that comes up often... then people laugh anyway when they discover my name is Rolf, and say Roooolllffff and pretend they are throwing up.
Well, I guess I killed that conversation ;-)
 
Rolf atleast is a quite common name in Dutch
and now goodnight, spent some time playing D3:RoS since I got home :>
 
So, I happened to look at the very first question asked on Meta (what should be in the FAQ) , and, look at one of the best answers:
11
A: What should our FAQ contain?

LREWhat belongs here vs what belongs on StackOverflow

(and programmers).
Guess w are still trying to figure that out.
 
9:22 PM
Yeah, I see what's going on here. The OP is trying to respond to konijn within the question, instead of using the comments section. I wish another moderator were here to help me with this. I'm this close to doing a lock.
 
@rolfl that is mean
@Jamal Lock it!
 
@Jamal Sounds like the OP should learn to use chat
 
@Malachi I'll be going to class soon, so I can't spend too much time on this. I'm trying to get it to a good revision, and to make sure the OP isn't trying to respond to answers directly within the question.
 
Hey C# People have you seen this Zombie? ▼▼
6
Q: C# SocketAsyncEventArgs send and receive

Matty SouthallI been working on getting the SocketAsyncEventArgs to work the way I want it to work. Now I was wondering is this going to work how it should work? /// <summary> /// The settings to use with this ServerSocket. /// </summary> ServerSocketSettings Settings; /// <summary> /// The buffer manager fo...

 
@SimonAndréForsberg That was in my latest comment. Perhaps him and konijn can work something out.
See how tough this job can be? I couldn't imagine being an SO mod.
 
9:44 PM
@Malachi Okay, I've decided to lock it for now. My last comment there:
On second thought, I'll go ahead and lock this post as is. Anyone wishing to help with this can join a chatroom with the OP. When a consensus has been reached, either ping me in chat or raise a flag. — Jamal ♦ 1 min ago
 
@Jamal @konijn answer was based on revision #11 (based on time-stamps and confirmed by reviewing konijn's answer to verify that it matches the code in revision 11).
 
@Jamal sounds good to me, now get to class! lol
 
Do you want me to see which if any later version vandalizes konijn's answer?
 
That was my second guess.
Yes you may. I'd still like this all to stay in chat; the comments section is already messy.
 
Version #19 vandalized the original code.
 
9:47 PM
Heh.... here I am pushing CodeReview on The Workplace...
3
0
A: How do I handle my Senior making fun of my mistakes?

rolflHow about getting your code reviewed by someone else before your boss gets to it? A second set of eyes is a good thing, and, if you get to choose those eyes, even better. Perhaps he is right, and you do need to improve your code, and getting help is a good thing. Not only will this improve your...

 
0
Q: Regex Check for invalid name

archonI'm trying to write a regular expression to check names for invalid entries. Basically i'm trying to eliminate people entering random junk as their name. I know i cant completely eliminate it but i'm trying to make it a little harder at the very least. Here is what i have so far. It works fine i'...

 
@ChrisW And he even told me later on that the code was kept intact (something like that). I knew from the beginning of the post that that wasn't true.
 
@Jamal So you/one could rollback to #18 on the basis that that was the last pre-vandalized version. Or copy/paste code from version #18 to the top of the latest version and mark it as the "original code" which konijn reviewed.
Version #11 source is here: codereview.stackexchange.com/revisions/… if you want to copy/paste it to the top of the current question.
Also copied here as follows:
**Fast Time conversion**

I'm trying to write a very fast time-to-string and string-to-time function.

I noticed that on low CPU mobile devices this function has, even if minimal, impact on the performance of the overall canvas animation.

**Milliseconds to Time string (HH:MM:SS.mss)**

In this function: is there a shorter & faster way to pad the numbers?

function ms2TimeString(a,ms,s,m,h){// time(ms)
return ms=a%1e3|0,
s=a/1e3%60|0,
m=a/6e4%60|0,
h=a/36e5%24|0,
(h>0?(h<10?'0'+h:h)+':':'')+ //display hours only if necessary
 
@ChrisW Well, even revision 18 is quite long (more updates). Or is it not really too long?
 
^ Copy/paste to chat lost the formatting.
 
9:53 PM
Shall I summon the OP?
 
@Jamal Personally I don't care a fig for anything after and including the **DEMO** line. I only (theoretically and on priniciple) care to preserve the lines above that, because that's the question which konijn reviewed.
 
I still have am hour until I have to go offline. I'll see if I can work this out myself, since konijn seems to be away now.
 
So if I were you I'd copy those lines to the top of the current question, draw a --- line under it, and leave the rest be.
("If I were you" == "if I were the mod")
 
@Jamal there's no rush. The post is locked, people can take a moment to cool off.
And, things are not going to self-destruct.
 
Totally agree with monkey.
 
10:00 PM
@rolfl You're right. I was just caught up with solving this. Like I said, someone can let me know if it's time to unlock.
 
monkey-sense.... Banana!
2
 
You've earned it. :-) Now I can take a break.
 
I've had my say: a) konijn reviewed version #11; b) edits 12..18 were to later "commentary" parts of the post which I don't care about c) edit #19 deleted the original code d) therefore copy/paste the top lines (from the top of the post down to the ***DEMO*** line) of any of version 11..18 to the top of the current question: in order to restore the original code and not invalidate konijn's answer.
 
@ChrisW I'll see what konijn has to say, just to be sure. As the monkey has said, this doesn't have to be rushed. I've also raised a moderator flag in case the others can weigh in (or just unlock the post if needed).
 
@Jamal no problem
 
10:13 PM
And thank you for your assistance as well. I am learning from this rather new experience.
 
0
Q: Counting occurrences of values in C Array (Shannon Entropy)

JoJoeI have written the following C code for calculating the Shannon Entropy of a distribution of 8-bit ints. But obviously this is very inefficient for small arrays and won't work with say 32-bit integers, because that would require literally gigabytes of memory. I am not very experienced in C and do...

 
Why does the user want to be deleted :(
Utkarsh, https://utkarsh.typeform.com/to/M4XLic
230 7
 
@Jamal The OP's current post is well-formatted and understandable i.e. harmless if you read it. Only problem IMO is the vandalism of the original code. In one comment he wrote,
why should i not answer to comments ? btw you just told me to remove all the updates...but if you want i could add the first versions of the functions at the bottom.but you should not delete valid descriptions & explainations of my code. — cocco 1 hour ago
... which is fine, except that our convention is to put the "first versions of the functions" at the top not at the bottom.
 
0
Q: Bash script : how to know if it's written correctly?

MrVaykadjiI'm writing a bash script to handle the PPA's on Ubuntu & derivatives. I was wondering how to know if I'm handling this the right way. So, the script works (flawlessly), but I posted it to a blog and got this feedback : The way you wrote you script is the one we all use when we begin : we ...

 
Exactly. I also must've missed that part of his comment. Still, if he was actually "responding" to the answer in the post, then that part should be removed. I've already mentioned that updated code should be concise so that others can follow.
 
10:27 PM
@rolfl I just happen to have a workplace account....lol
TTGH
 
@syb0rg I'm not sure, but I cannot do it directly unless the user also flags (unless a request was sent to SE instead).
 
@Jamal It wasn't like he was being ignored or wasn't getting rep either...
I thought we were pretty welcoming to him.
 
@syb0rg He may have his own reasons, and he's not obligated to share them upon deletion. He can always request a private chat with a moderator if needed.
 
@Jamal I know. Looking at his other SE profiles, I wonder if he just wanted to delete one of his other profiles and changed the "About Me" section for all of them.
 
@Jamal The updated code is concise: 2 functions, of 8 lines and 5 lines of code. The wall of text is a line-by-line (and expression-by-expression) commentary on those 13 lines.
 
10:38 PM
@ChrisW Which revision should I apply? I can keep it while the post is locked, until we're sure where to keep it.
 
@Jamal IMO copy the top lines (from the top-of-post **Fast Time conversion** line down to but not including the ***DEMO*** line) of any of versions #11 though #18 (for example codereview.stackexchange.com/revisions/… which is version 18), and paste them to the top of the current post, and draw a --- line under them.
 
hey guys
something important was missing on meta. just fixed that.
0
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...

 
@ChrisW Okay, so, I can copy that section from revision 11 and place it on top of this one, with a line. Correct?
 
I think so.
Or do it tomorrow per monkey's advice to let it chill for a while.
 
@Mat'sMug IEditable<T>, lol
 
10:51 PM
Either is fine by me.
 
@ChrisW I'll wait. I have to leave soon anyway. It'll allow more time in case someone else comes to weigh in.
 
A-OK.
 
TTGTB
 
@SimonAndréForsberg working on your proof?
@Simon then prove it and edit ;) — Vogel612 5 hours ago
 
Well, my SQL library needs some work. I got to spend about 5 minutes on it at work today.
 
10:55 PM
Hmm... 28 rep left to 9k... I wonder if I'll reach that tonight...
 
Bye @all!
 
Night @robot
 
hi/bye!
@SimonAndréForsberg you there yet?
 
@Mat'sMug Working on the proof, and no I haven't reached 9k (or at least let's say that for now ;) )
Thanks, Santa(s)
 
bright side of spending half the day in meetings and @rob0t being down: Mug still has votes!
 

« first day (326 days earlier)      last day (3693 days later) »