« first day (425 days earlier)      last day (3589 days later) » 

1:02 PM
@CaptainObvious Off-topic
 
Does anyone know a Java http proxy library, that provides some methods on which I can hook?
 
Would that be considered spam as it points to his github?
 
No, it's not spam
 
0
Q: jQuery refactoring and DRY principles (basic image slider)

Jamie BI built a very basic image slider, but I'm still having trouble refactoring. I caught myself reusing same code for clicking the previous/next buttons, selecting a slider dot, and the automated sliding. The difference between these actions is how the index of images changes. I'm not sure how t...

 
@CodeX I don't see anything spam-ish at all about his github page.
 
1:08 PM
Did my netbeans just go crazy?
BlockingQueue<Message> messages = new ArrayBlockingQueue<>();
it gives errors there
 
@skiwi s/go crazy/behave just as normal/
 
Thanks for clearing that up, i wasn't sure if he was linking for exposure
 
@ckuhn203 Any time!
 
Headers in a HTTP request are split by a newline... In the headers the character encoding is written, how do I know what byte represents a newline?
 
Monking!
Wow this OP is... special.
4
A: CSV reader and parser

Mat's MugIncluding the signature, scope opening and closing braces, and all the superfluous vertical whitespace you've got here, the Read method has 223 lines of code, checks if the end was reached in 7 places and includes 4 goto instructions. Other answers already stated it, but I don't think it can eve...

 
1:20 PM
How can I interpret the header bytes at all?
Monking @Mat'sMug
 
Look at the comments!
 
Afternoon @Mat'sMug
 
2 hours ago, by ckuhn203
WTFs per minute indeed. OP is trolling hard.
@Malachi This is actually pretty cool. I'm learning all about bitwise comparisons for that Enum.
 
if you want to learn basic Bitwise I would check out the Wikipedia on Bitwise it will tell you the basics on the operations. there are several of them
 
@skiwi new lines tend to be byte 10. Sometimes byte 13 + byte 10.
\n vs. \r\n
 
1:23 PM
In digital computer programming, a bitwise operation operates on one or more bit patterns or binary numerals at the level of their individual bits. It is a fast, primitive action directly supported by the processor, and is used to manipulate values for comparisons and calculations. On simple low-cost processors, typically, bitwise operations are substantially faster than division, several times faster than multiplication, and sometimes significantly faster than addition. While modern processors usually perform addition and multiplication just as fast as bitwise operations due to their lo...
 
hey @Mat'sMug
 
@SimonAndréForsberg Is that like accross all character sets? (Reasonable ones)
 
0
Q: Java class/method declarations, logical conditions and chained method calls formatting suggestions?

MatejI'm an upstart, been only professionally programming for a bit less than 2 years, mainly in Java as I am currently working as an Android developer. I often find myself thinking about how to improve the readability and maintainability of my code, and establish some style guidelines, for the proje...

 
and a \n and \r\n are the same concept, right?
 
@skiwi Yeah, well, byte 10 is always byte 10 as far as I know...
 
1:24 PM
Also...
 
@skiwi Yes, both are line breaks. \n for Linux and \r\n for Windows
 
How can I read the character set value if the character set encoding is encoded in that header?
 
there are more than what is listed on that wiki, I don't use them much so I don't know them all offhand, there was someone looking at some encryption code a while back and it had a lot of bit manipulation in it @ckuhn203
 
@skiwi Read the header as if it is UTF-8 ?
 
It would be a fair bet
 
1:26 PM
14 rep until I pass amon
did I miss a fun conversation in Chat?
And, at this point, let me remind people that comments are not the right forum for discussion, please move to chat (The 2nd Monitor)rolfl ♦ 17 hours ago
 
@Malachi Yeah. That what I was using.
 
it's been a while since I tried to dabble with it, when you are working with micro controllers you use them a lot. like arduino
 
@SimonAndréForsberg I'll just ignore all \r's in the header, it shouldn't hurt in theory
 
In theory, theory and practice is the same. In practice, they're not.
 
Shame on you... You wrote my very answer in 3 sentences where I needed almost a full page ;) — Vogel612 1 min ago
 
1:34 PM
In this case though, I don't think it will hurt in either theory or practice.
 
Really right the moment I am writing my last sentence that guy shows up and steals the show ;)
 
Now figuring out how a a string builder relates to the charset...
 
@Mat'sMug I agree with the OP about the Constant name. What if the escape character (for some completely inexplicable reason) needed to be changed to a backslash 5 years from now? Then you'd have to rename it and change all instances of it, or let the name of it lie. Now, I don't think that would really happen for a csv reader, but still...
 
@ckuhn203 the current name is a PITA though..
 
@Vogel612 Not arguing against that fact.
 
1:42 PM
@ckuhn then it shouldn't be a const!
 
I'm just saying that "QUOTE" would also be a bad idea for a name.
Because it's really an escape character.
 
then call it ESCAPECHARACTER
hell, renames are not that hard with IDE's.
 
Yay, I can read my headers!
I don't get this scheme...
GET top-secret-url.com HTTP/1.1
Why is the GET specified before the HTTP/1.1?
 
2
Q: Splitting Company name into 3 Strings

McDaulyI wrote an algorithmn which should cut a companies name into 3 strings. Input: 1 String Output: 3 String. Conditions: String 1 2 and 3 shall not be longer then 35 signs. If the Input string is longer then it should be cut to a length of 105. If you have fun and be interested ...

 
1:58 PM
@skiwi How much web development have you done? GET for GET, POST for POST...
 
@SimonAndréForsberg How do you mean?
As far as I know, GET and POST are actions possible within the http protocol, why would the used protocol then be defined last?
 
@skiwi You mean that it should be "HTTP/1.1 GET top-secret-url.com" instead?
the information is there anyway.
 
I would say yes
 
You want to try changing the HTTP protocol specification?
 
That's not really feasible I guess ;-)
 
2:07 PM
I'm sure there are bigger or smaller mistakes in all protocols. I believe this one is a very minor one, if they don't have a good reason for why it should be like that.
For me, I think GET xxxx HTTP makes sense.
you can read it like a sentence
GET this page with this protocol
 
It does make sense like that
What is more clear?
 
0
Q: Refactor these two methods

RobertI am trying to refactor two methods. Let me begin with context: I cannot edit the QueryPermissions Class, it is an external dll that was given to me to use. Yes I realize its a bad practice to use an out variables. I am pushing for a rewrite of that service. As you can see below the two metho...

 
if (headers.isEmpty()) {
}
or
if (headers.isEmpty()) {
    ignore();
}
 
ignore(); ?
 
Yeah, which does onthing
or a comment?
I think having empty handlers is kind of risky
 
2:11 PM
Or you just remove the if-statement entirely?
Or use if (!headers.isEmpty()) ?
 
Maybe this is a case of YAGNI
But it would be nice for future extension to have a hook-in for writing a warning for example
 
// do nothing is clearer than ignore(); though.
 
More importantly
When doing the reverse you'll get those huge blocks
 
if (headers.isEmpty()) continue; ?
If you want more opinions, you need to provide more code context
 
perhaps
But can't before it's finished :)
Ugly much?
if (!headers.isEmpty()) {
    String[] words = headers.get(0).split(" ");
    RequestType requestType = RequestType.getByName(words[0]);
    String url = words[1];
    RequestProtocol requestProtocol = RequestProtocol.UNDEFINED;

    if (requestType == RequestType.UNDEFINED || requestProtocol == RequestProtocol.UNDEFINED) {
        //ignore
    }
    else {
        switch (requestProtocol) {
            case HTTP_1_1:
                switch (requestType) {
                    case GET:
                        break;
Erm, forgot that big bug there ;)
 
2:22 PM
Do mysqli connections truly close automatically if i dont call $mysqli->close(); ?
 
@CodeX I believe they close when your script ends.
@skiwi What are you going to use all this for?
 
@SimonAndréForsberg To rewrite charset=utf-8 to charset=UTF-8 in the Content-Type header
 
Oh dear...
 
Web services here...
 
@SimonAndréForsberg i was using $mysqli->close(); at the end of a function then wondering why the next query function wasnt working :/
 
2:34 PM
@SimonAndréForsberg Yep fun fun
This will make for a nice piece of Code Review ;-)
And wow at this
if (headerWords[0].contains(":")) {
    headerMap.put(headerWords[0].replace(":", ""), String.join(" ", Arrays.asList(headerWords).subList(1, headerWords.length)));
}
 
0
Q: Error Handling When Using Dictionary

aaronmallenI have set up a Dictionary that calls on a class to fill a DataGridView via SQL statements. The problem is in two (out of 5) instances the value passed HAS to be an integer. Any idea on how I can add error handling to this? Preferably a message box that just says "value needs to be an integer". ...

 
@Mat'sMug if I do a substring in VB like var2 = var2.Substring(0, 35) and the string is less than 35 characters, will it error?
 
@Malachi - here's the manual to smoke: msdn.microsoft.com/en-us/library/…
> ArgumentOutOfRangeException

startIndex plus length indicates a position not within this instance.
 
lol I was just reading that. sometimes the Manuals use language that is too coarse for my thought processing unit
 
2:51 PM
@Malachi TPU?
2
 
@skiwi it needs an upgrade
 
I was just considering pouring beer into my TPU.
to keep it cool, of course.
 
@Edward of course
 
@Malachi - You will get an argument out of range error if the start index + length is longer than string.
 
@JohnP kind of late to the party, but thank you.
 
2:56 PM
There was a party?
 
Can anyone spot an error in this perhaps?
Socket outputSocket = new Socket(address, port);
PrintWriter outputWriter = new PrintWriter(outputSocket.getOutputStream());
headers.forEach(outputWriter::println);
System.out.println("--request sent--");
BufferedReader inputReader = new BufferedReader(new InputStreamReader(inputStream));
inputReader.lines().forEach(System.out::println);
 
@rolfl it was a short one
 
Erm... wow
 
> PrintWriter outputWriter = new PrintWriter(outputSocket.getOutputStream());
 
The inputStream was some old variable used somewhere else ;-)
@rolfl That one actually works
 
2:58 PM
@skiwi I was about to say that. There's no inputStream variable below the Socket variable
 
But still doesn't work
(With outputSocket.getInputStream())
 
"Doesn't work" is not a valid error description.
 
@skiwi Huh, I did not know you could create a writer on a stream without wrapping it as an OuputStreamWriter first... I presume PrintWriter does that.
 
@Malachi - I read top down. Sorry bout that. I'd have known if I read the room Chinese style :p
2
 
lol
@JohnP it's all good I do the same thing sometimes
 
2:59 PM
Is it cheating to answer a question with an MSDN code block?
 
@rolfl I guess so yep
 
No, not cheating, but add a link.
 
0
Q: Multiple overloads for message handling

FacundoSo we have a base interface: public interface IMessage { //Some properties } then we have derived messages that implement this interface such as: public class AlarmEventMessage: IMessage { //Some properties } Now, these messages get r...

 
I cut/pasted the code. :p
 
I can't imagine that the server would not reply to me
 
3:00 PM
@JohnP I like personalized explanations personally
 
Unless... it uses bogus ip + port :)
 
@skiwi flush the output
outputWriter.flush();
 
I found a bug
 
@JohnP If you can, add the link to the MSDN page you copied from/
 
It uses top-secret-url.com/42.24.65.233
(Imaginary numbers!)
But with a different meaning
 
3:04 PM
@JohnP, I figure it is a good answer, if you can change it to only conditionally add the validation for when the input needs to be a number.
 
I asked for clarification - It makes no sense to have a text box input that has to validate numerically only in 2 of 5 instances.
 
anyone want to compare some VB answers?
 
@Malachi - Compare to what? My vb is a little rusty but...
 
I have an answer on this question that is sort of like another answer, I personally think my answer is better though.
6
Q: Splitting company name into 3 strings

McDaulyI wrote an algorithm which should cut a companies name into 3 strings. Input: 1 String Output: 3 String. Conditions: String 1 2 and 3 shall not be longer then 35 signs. If the Input string is longer then it should be cut to a length of 105. If you have fun and be interested i...

 
@Malachi my stock VB answer: "Just say 'no', kids!"
3
 
3:09 PM
@Edward LOL, agreed
 
Ok, his comment now makes the question make no sense. He wants to restrict it to numbers in 2 out of 5 cases that could be hundreds of thousands of parameter inputs?
 
@StackUnderwhelm
Sometimes the only way to respond to a Stack Overflow question is with sarcasm.
12 tweets, 7 followers, following 2 users
4
 
@Malachi - I think yours is the best out of the three, I was trying to think of a way to recurse it to get the three values, but recursion always gives me a headache.
 
3:24 PM
@JohnP what are you talking about, just finished writing a meeting minutes email, I hate them..
 
20 til repcap...
but...
 
1
Q: Checking if website exists and adding +1

Customized NameI am trying to find if a subwebsite exists in sharepoint, if it does then add +1, I think loop can be improved. // subsiteName will be like "FruitCrateOfCompanyX" public static string FormatMyHomieURL(string subsiteName, string mainSite) { if (!mainSite.EndsWith("/")) ...

 
btw. Invalidation / Invalid edit?
2
Q: Refactoring JavaScript functions that differentiate only by condition and return value

Joe SmithCurrently I have 3 functions which are really similar. They differentiate only in input parameter name, condition and return value. I'm going to refactor them, and I thought you guys might tell me what is the best way in your opinion to refactor these. Feels like there has to be 1 function but wi...

 
I have overtaken Amon, @ChrisWue Here I come!
 
@Vogel612 I think it's OK because there were no answers and not even any comments before the edit was made.
 
3:28 PM
@Edward IMO it should be an answer...
 
@Vogel612 It could be an answer, but I interpret it as meaning "please review this replacement candidate."
 
hum. then IMO the old code should be replaced.
 
"Questions must involve real code that you own or maintain." that "real code" link should lead here IMO
 
@Malachi - Was talking about your VB review question. I looked at the three answers, yours seemed cleanest to read.
 
@All.. does anyone have an answer pending for that 'invalidating' edit question?
 
3:32 PM
@rolfl Not me, but either way... link?
 
Oops, wrong keyboard.
2
 
Oh, dear.
 
@JohnP thank you. the one answer is all about the formatting of the code, which I think is also a good answer
 
:16405799 Nice password you got there
 
@SimonAndréForsberg I was saving a file.
 
3:33 PM
s/file/life/
2
 
That's how I read it.;-)
 
I'm sorting my music collection. In many cases I have to find and add the album covers manually.
 
Closing as 'unclear what you are asking'.... because your update leaves you with two chunks of code to review, and it is unclear what a reviewer should do in this case. If you want the revised code reviewed, start a new question. — rolfl ♦ 31 secs ago
 
Damn I wish I had a banana..
 
3:39 PM
Would you like me to message you one?
 
@Vogel612 An instance of a banana or a banana class?
 
@Edward I'd need a passable instance....
Or I just use my food enum..
 
:)
 
this.give(Food.BANANA, rolfl);
 
Noo, I don't want to have all my stars used before dinner already!
 
3:46 PM
better than upvotes ;-) :
Thank you very much for this detailed and well referenced answer, I really appreciate it! I will take the time to read through the answer and the resources you linked to carefully, then I'll come back and add a short conclusion to my question. — Matej 11 mins ago
 
Nice one
 
Is it ethical to release some code as open source which I have made during office hours, but which technically have nothing to do with the work? Apart from that they simply were unexisting libraries that didn't exist yet.
In the end I expect to be at most 1/3th of the time of it to be spent at work, and other time at home either way, documentation, etc., stuffz.
Examples are a proper interface to Tesseract in Java, and a modifyable proxy
 
@skiwi If your employer agrees, then yes.
 
@skiwi - depends on your employment contract/agreement. Some companies state that any code developed on company time belongs to said company.
 
3:52 PM
@skiwi - typically, unless you have specific provisions that say otherwise, anything you do while employed by someone, belongs to them.... this includes after-hours work.
 
I think he was asking about the ethics and not necessarily the legal perspective.
 
Simply put, the chance that they even care is pretty low, yet it doesn't mean taht I'll immediatly put it out there
 
When it comes to contracts, ethics don't apply. If you disagree with the ethics in the contract, you should not sign.
 
0
Q: VBA Function slower than Excel Formula

KersijusI've replaced the following horrendous Excel formula (values and names have been replaced): =IF(AND(SourceTable[@Field1]="Value1",SourceTable[@Field2]="Value2"),"Result1", IF(SourceTable[@Field2]="Value3","Result2", IF(AND(SourceTable[@Field1]="Value4",SourceTable[@Field3]="Value5"),...

 
The one about Tesseract is slightly tricky, it's never been on company grounds and I maybe only programmed like 2 hours on it, and 10+ hours at home already and more to come... Therefore I consider that one mine
 
3:53 PM
@skiwi You should ask (in an e-mail). If they don't care, they can reply and say 'sure'.
 
I'll do, but not sure when yet
 
@skiwi To be clear here, just because you feel like it's your code, and on your time, it does not mean that you are actually right.
Read your employment agreement.
 
@CaptainObvious Ai yai yai
 
Now, whether any company will actually do anything about it, is something else.
 
@rolfl Yes, but if it's legal but not ethical, I'll take the ethical approach every time.
Ethics always apply, IMHO.
2
 
3:56 PM
I'm at least surely not putting up like the core of the code they're selling, that would be...
 
@skiwi - Doesn't matter. If you create something and they think they can monetize it, they will take ownership.
 
@JohnP Yep.
 
@JohnP That's a good point there
To be completely sure: If I develop something at home I could use as a library for work-related work, then it's okay?
 
@Edward You are right, but, if you disagree with the ethics of the employment contractyou are in, then your choices are simple: 1. quit or 2. renegotiate. That's the only ethical choice. Doing something that is in breech of the contract, whether the contract is 'ethical' or not, is not ethical. Two wrongs don't make a right.
 
@rolfl I agree with you.
if (legal && ethical) doit();
 
4:01 PM
@skiwi - Again it depends on your contract. If you develop a library at home, it's yours. If you bring it to work and incorporate it into work related code, it gets murky. I've seen some contracts where the employee had to also become a third party contractor to be able to use the home created library.
 
^^^ not! that
 
Hmm about the free time employees get at some companies (Google is one of them I believe?), that work is all owned by the company i suppose? Like one day do something for fun
 
Whether what you do at home is yours or not, depends on your contract.
 
Surely a contract that would say that they own all code you have ever written in your life and is not already owned by someone other than you would not be legal, right?
 
Don't take your home built library to work and use it. You either have to license it to them or build it from scratch on their network.
 
4:03 PM
@ckuhn203 Isn't that fixed with a correct open-source license? That allows (almost) anything?
 
Otherwise, you run the risk of them saying you stole it from them and then you have to prove it was yours to begin with.
 
You might want to search for the term "works for hire"
 
Only if you can prove it was yours first @skiwi.
There's a great question about it on Programmers somewhere.
 
^^^ good thought.
Wiki has some info on it too.
 
0
Q: Is there a way to optimize this aggregate postgreSQL statement by using CASE?

OthyaGood day, I have a working SQL statement which shows the following: Player Champion Role Total Kill/Death Ratio Total Kill+Assist/Death Ratio Total Win % Difference between Ratio from one month ago Difference between KA Ratio from one month ago Difference between win % from one month ago Howe...

 
4:06 PM
The Copyright Law of the United States intends to encourage the creation of art and culture by rewarding authors and artists with a set of exclusive rights. Federal Copyright law grants authors and artists the exclusive right to make and sell copies of their works, the right to create derivative works, and the right to perform or display their works publicly. These exclusive rights are subject to a time limit, and generally expire 70 years after the author's death. US Copyright law is governed by the federal Copyright Act of 1976. The constitution explicitly grants Congress the power to cr...
 
I just need to figure out in what kind of position asking such question would put me
 
I know it is US law, but is interesting.
 
I do work one day a week there, so I'm actually doing more work if I continue to make those libraries in my own time, might shed some different light as working there every day in the week and then 'saying' you made things at home
 
@skiwi - Just ask. "Hey, I have some ideas for libraries that would make things more efficient. What is the policy if I create this on my own time to use for work?"
 
Even if it fails, nothing's massively wrong... If I get a significant part of the job done then I'll get a raise and I like to code, so I might still do it in my free time!
 
4:11 PM
I must be writing too many answers lately, codereview asked me if I was a robot!
 
@JohnP That's the right approach. I once asked an employer this question and they said, "then it's ours." so I replied, "oh, too bad. I just forgot the idea." :)
 
CodeReview must Miss @syb0rg something bad
 
Not really, just his votes .... anyway, he's a two-timing ...... ... ;-)
3
Q: Control Your Computer's Fan Speed

syb0rgThe objective of this question is to create a program that pushes your computer's internal fan speed to its maximum RPM. Upon exiting the program, your fan should return to the normal operating RPM. Rules: You may not perform a CPU intensive task in order to modify the fan's speed. Exiting th...

 
That's definitely the right approach @Edward.
 
Hey @syb0rg - ;-)
3
 
4:13 PM
@rolfl I do still vote on CR lol
 
I know you do.... (I was jesting... ;-)
 
No he wasn't.
 
@JohnP - you must be new here .... ;-)
 
I still on the top row :P
 
I know.
 
4:15 PM
Yeah, I kinda figured. I just like to stir the pot.
 
I figure syb0rg is just ramping up to be a mod on RPi or something .... right?
 
@rolfl 272+ views on that question, and not a single answer btw.
@rolfl Nah, that beta site is heading on it's way out.
I've been finalizing a big project of mine for release though.
 
oh goodness.....
 
Anyone else think this question points at a design flaw somewhere? codereview.stackexchange.com/questions/56009/…
 
@JohnP jingle jingle
 
4:18 PM
Given his comments.
 
this questions bounty is ending tomorrow, anyone want to check out my answer and see if it holds water?
1
A: Show days of single week - the right way?

MalachiThere is a lot of going back and forth going on here. I think that I would just pick PHP and write the whole thing in PHP, you would eliminate a lot of confusion and obscurity by being able to remove the <?php ?> tags from all over the place along with being able to properly indent the code. Yo...

 
0
Q: Passing parameters to a query

aaronmallenI have a function that takes a Dictionary<String, Object> as an argument. It uses this Dictionary to create parameters for a query string. private static TableAdapters dataSource = new TableAdapters(); private void findScriptsQueryButton_Click(object sender, EventArgs e) { string fillBy = fin...

 
@syb0rg - ??
 
Oh, did we kill that Santa thing?
 
@JohnP - that's the sound it makes when the syborg rattles his nuts.
 
4:21 PM
No. Santa lives.
 
Needs oil.
 
@JohnP I gave you a few upvotes on some stuffs. Like Santa gives presents on Christmas.
 
@syb0rg jingle jingle indeed. :)
 
Have you seen this yet @JohnP?
6
A: What's a Zombie? And what are the many other memes of Code Review?

ckuhn203Meme: Smoking The Documentation / STM Originator: Simon, in response to a question by rolfl Cultural Height: The 2nd Monitor Background: "The documentation." is now a common response to rhetorical question like "What was I smoking when I wrote this?". This is often followed by "STM again?" (Sm...

 
Hey, over 200 rep! I finally get that first shiny little silver badge...
6
 
4:27 PM
On CR, Christmas comes everyday. :D
 
Oops. Meant to post just the question.
 
What is the consensus about putting a Bitcoin wallet address in my user profile?
 
your profile is generally treated as your profile. You can be relatively vulgar (within limits which are not standardized).
You can self-promote in any way you want.
Link your CV, facebook, linked in, etc.
Paste it in if you want.
 
Nothing better than a squeaky chair to annoy the crap out of a co-worker. :p
 
@syb0rg:
13
Q: Rules for Profiles

Miyagi CoderAre there any rules concerning what I can put in my profile?

15
Q: Why is the f word still allowed in profiles?

wafflesWaffles is getting upset. The management, with its magnificent reality distortion field, seem to have a Stalinesque attitude towards the F-word, with one notable exception: user profiles. Sometimes, after clicking on a user's profile I am promptly presented with a nasty word. This makes me cry...

 
4:50 PM
Now that the first round of meta tag burninations is complete, what do you think should go next? My recommendations now are and .
 
Damn it. I would like to answer a VBA question. Why are they all off topic?
0
Q: VBA Function slower than Excel Formula

KersijusI've replaced the following horrendous Excel formula (values and names have been replaced): =IF(AND(SourceTable[@Field1]="Value1",SourceTable[@Field2]="Value2"),"Result1", IF(SourceTable[@Field2]="Value3","Result2", IF(AND(SourceTable[@Field1]="Value4",SourceTable[@Field3]="Value5"),...

Not real code^^
 
thread, threadx and threading seem to all be similar could be combined.
 
and are already synonyms of .
 
What if I want only one thread?!
 
is different.
You don't need to tag single-threaded code.
 
4:55 PM
@ckuhn203 That's an interesting one .....
Hey @200 ...
 
I think it's worth a meta post, can you rename real things in your code to protect things.
 
@rolfl Yeah. I thought so too, but it's too much. None of it is any longer meaningful. Any review would focus on "These are terrible names."
 
Is it 'example code' after the rename.
 
Some anonymization of identifiers should be OK. Example:
4
Q: Deciding whether a list of sum types is homogeneous

YuushiI ran into a problem recently where I had to decide whether a set of sum types was homogeneous (all the same). In itself, this is a pretty simple problem. However, there were a few complicating factors: There exists a type within the types (call it Id) that is ignored in the comparisons. There ...

 
4:58 PM
@rolfl - I've done that in a few questions here and there.
 
But it needs to look specific enough to be realistic.
And there should be context.
 
Why replace the names? It takes away meaning, which makes the code pretty hard to read and ultimately to review. — Mat's Mug 23 secs ago
 
look at all those familiar faces ... hi all!
 
I don't see this one as any different from Foo and Bar.
 
0
Q: C# CSV reader (revised)

Leopold AspergerThis is the successor of my previous CSV reader. I implemented quite some useful suggestions. Because I know some people will never be fully satisfied, I will give explanation on a few parts. Please do not bring old stuff up. Prefixing constant identifiers with Sym_ (abbreviation for symbol) is...

 
5:02 PM
I don't mind anonymization, but turning "Sales" into "Field1" is slightly more than just annoying
3
 
Wow, that Leopold is just prickly. "Don't bring up old stuff, and screw you if you don't like whitespace"
 
@CaptainObvious has OP accepted an answer on the other post?
 
@Mat'sMug - That would be negatory.
 
But, no goto in the new question
 
@rolfl - I noticed that. Was thinking of asking where they went...
 
5:06 PM
Yeah, well I feel like commenting if (!originalQuestion.HasAcceptedAnswer) { goto FuckOff; }
5
...but I won't
 
ok, how do you get a tag look in chat?
 
[tag:image]
 
type [tag:something-like-this] .
 
5:11 PM
Self-entitled noob actually
 
self entitled? qua?
 
@Simon ... all, may be interested in this: addons.mozilla.org/en-US/firefox/addon/se-autoreviewcomments/…
 
0
Q: Why is enum singleton pattern not working?

JamesI recently read that I should use enum for singletons to insure that only 1 instance exist throughout the code. So I created an EmailTemplate using the enum pattern. public enum EmailTemplate { FORGOT_PASSWORD("forgotpassword.txt"), CONFIRM_EMAIL("confirmation.txt"); private final S...

 
@rolfl I think he already uses it ;-)
I'd want to use it, but at the same time I don't want to become a robot
 
@skiwi - he uses a greasemonkey user-script, not a plugin ....
 
5:18 PM
@rolfl Oh, finally!
 
Ah, I didn't know that :)
 
Indeed. There hasn't been a plugin for Firefox before AFAIK
 
Why didn't you make one?
 
It's officially registered, etc.
 
@skiwi Ummm, why not? It's awesome being a robot!
 
5:21 PM
that's "nuts".
 
0
Q: Porting a custom module to Backbone?

user3293653Below is a custom module which provides a framework for making ajax calls. How can I move this to Backbone? It is very simple, if a user is found to exist ( determined by checking the local storage ) make an ajax call to get their data. Otherwise just flip the page to the front or splash page....

 
"What common misconceptions really irk you?" That Java sucks.
 
1
Q: Flag an answer after removing cursing?

MalachiI have been flagging answers where I have removed cursing so that mods are aware of a user in the case they violate the rules on a regular basis. Should I not flag it after I have removed the cursing?

 
@skiwi Why would I make a Firefox plugin?
 
@SimonAndréForsberg So you can use it
 
5:25 PM
@Malachi - so, you made me look ....... and you should really use that little box that lets you put a message in for your edits.... saying what you changed.
 
@skiwi As I'm using greasemonkey, I can already use it. Besides, it doesn't feel like a FF plugin is really mine to make...
And also, I don't know how to make FF plugins :)
 
I neither know! So we can both be as good at it
Lol something I spot: reddit.com/r/ProgrammerHumor
LOL, "If you make this change, I will fork the code."
Oh god... "We need this to fit on a single floppy."
 
Too harsh?
0
A: VBA Function slower than Excel Formula

ckuhn203I'm assuming that names have been changed to protect the innocent, but just in case they've not been... These are terrible names. All of them. Function names should have verb-noun names and be PascalCased. So instead of CUSTOMFUNCTION should be GetCustomMatch (or something like that. I can't s...

 
5:42 PM
 
T-1000 and T800 were terminator versions.
killer-robots.....
The T-1000 is a fictional shapeshifting robot assassin and the primary antagonist in Terminator 2: Judgment Day. Created by the series' long-running antagonist, Skynet, the T-1000 is described in Terminator 2 as being composed of a mimetic poly-alloy, whose body is composed of liquid metal that allows it to assume the form of other objects (commonly knives and stabbing weapons) or people, typically terminated victims. Therefore, it is portrayed by multiple actors in the film. It is further explained in the prologue of the film's novelization, that the T-1000 was created through nanotechno...
The Terminator (also known as the T-800, T-850, or Model 101)—a cyborg, initially portrayed as a programmable assassin and military infiltration unit—is any one of a number of fictional characters portrayed by Arnold Schwarzenegger. "The Terminator" character first appeared as the titular antagonist in The Terminator, a 1984 film directed and co-written by James Cameron, and its sequels. The first film in the series features only one cyborg: the one portrayed by Schwarzenegger, although a second Terminator played by Franco Columbu is shown in a future flashback scene. In th...
 
lol...... this is awesome.
Hungarian notation doesn't even deserve a proper burial. — BeetDemGuise 35 secs ago
5
 
@ckuhn203 I guess I can be funny sometimes right? :P
 
@rolfl Great-grampa? Is that you?
 
Was that you @DarinDouglass?
 
5:46 PM
@ckuhn203 yeah, I switched up my display name
 
Well, thanks for the laugh. That post irritated me a bit.
 
@ckuhn203 I couldn't tell ;)
 
lol
 
thanks santa!
the ghostly votes on my old post
today and yesterday
 
I would really like to discuss this question in the 2nd monitor, if you don't mind..... — rolfl ♦ 9 secs ago
0
Q: Email template singletons using an enum

JamesI recently read that I should use enum for singletons to ensure that only one instance exists throughout the code. So I created an EmailTemplate using the enum pattern. public enum EmailTemplate { FORGOT_PASSWORD("forgotpassword.txt"), CONFIRM_EMAIL("confirmation.txt"); private fina...

 

« first day (425 days earlier)      last day (3589 days later) »