« first day (433 days earlier)      last day (3574 days later) » 

11:03 AM
@rolfl in what kind of situation?
int main(void) { int i = 5; i++; printf("%i", i); return 0; }
^ that gave me the same binary output as the ++i version
compiled with gcc, no optimizations
 
While it is nice to see you incorporating my review in your code, I would like you to refrain from editing parts of the code, that I talked about. We call this answer invalidation. More information in What you can and cannot do after receiving answers. In accordance to the rules defined there I rolled back your edit. I bet you will get another answer on this question in the next 30 hours. Have patience ;) — Vogel612 1 min ago
 
0
Q: Higher order functions in Python using reduce technique

overexchangeFor the below query, ++++++ Show that both summation and product are instances of a more general function, called accumulate, with the following signature: def accumulate(combiner, start, n, term): """Return the result of combining the first n terms in a sequence.""" "*** YOUR CODE HER...

 
@rolfl wait are we talking about C or C++
 
@rolfl I guess the keyword is usually. And I suppose the definition of usually have changed over the years.
 
@DaggNabbit ++c; in C++
meh previous was better...
 
11:15 AM
lol
ok, i just tested C++
#include<stdio.h>
int main(void) { int i = 5; ++i; printf("%i", i); return 0; }
has exactly the same binary output as the i++ version
compiled with g++ -O0
 
0
Q: Increase performance on canvas repainting

Damian FrizziI'm working on a little project where I have to create sort of an image mask. Overall my code works quite good but I was wondering if I could increase to performance when repainting my canvas (on mouseover/out). DEMO JS: // Stores all dday objects var Ddays = {}; // Configuration options var ...

 
s/then/than/ + s/its/it's/
3
 
@SimonAndréForsberg why do French-speaking people speak English better than English-speaking people :(
 
@DaggNabbit You do know that simon is swedish???
just because there is an accent in his name, that doesn't mean he's french,....
 
11:32 AM
Am I doing something wrong with my answers? I feel I give a pretty detailed answer to every Objective-C question that comes through here. And only 2 of my last 15 answers have more than 3 upvotes. Meanwhile, 200_success answers an Objective-C question posted last night that's borderline off-topic (and the answer happens to be borderline incomplete), and he gets 11 upvotes within 8 hours?
 
@Vogel612 i thought he said he was French one time :p
must have been someone else
 
well anyone can go to Sweden
 
And Forsberg isn't really a French name.
 
user image
2
 
11:37 AM
lol
 
@rolfl much better
@nhgrif same seems to go for my java answers. while they may not be in-depth, they are certainly valid, and I got 10+ upvotes for less...
 
@DaggNabbit - my ++ comment was based on what I had heard 'around the place'. Searching for evidence finds a lot of things saying 'in general use pre-inmcrement because there are cases where it can be significantly faster than postincrement'. Those cases appear to be centered around overloads.
 
It's not even that he's posting answers to the same questions as me.
 
For primitives, it appears that there is likely no difference
 
It's that I just went on assuming there wasn't an Objective-C crowd, and now all of the sudden 11 upvotes on this answer.
Within 8 hours, no less.
 
11:40 AM
@rolfl: Primitives are much better understood and therefore optimized by the compiler
 
@nhgrif and it was a RTFM answer at that...
 
1
Q: Avoid Postfix Increment Operator

muntooI've read that I should avoid the postfix increment operator because of performance reasons (in certain cases). But doesn't this affect code readability? In my opinion: for(int i = 0; i < 42; i++); /* i will never equal 42! */ Looks better than: for(int i = 0; i < 42; ++i); /* i will...

 
and Monking @all
 
just it seems that his question has a more popular topic...
Monking @Nobody
 
@Nobody i had optimizations off
i think people are talking about operator overloading on class types or something
 
11:43 AM
@nhgrif Did the question get hot? That might explain
 
0
A: Is it still necessary to check for a front camera?

nhgrifThe current range of iOS devices that support 7.0+ don't include any devices that lack a front-facing camera. I also agree with you that it is unlikely that Apple will release any future devices without the front-facing camera (though not impossible). Even if they do, however, you could and sho...

There's an actual answer to the question--now I'm headed to work.
 
Perhaps... anyway, it goes back to your original assertion:
1 hour ago, by Dagg Nabbit
whether he wants to write ++i or i++ there is purely a matter of style, not performance (in any c-like language that I know of)
 
@DaggNabbit: There are "optimizations" that even get applied on 0 level
for example: the compiler won't store data that is not read
 
Is this acceptable for a singleton enum?
public enum CatalogMap {
    INSTANCE;

    private final Map<Class<?>, CatalogMapping> mapping = new HashMap<Class<?>, CatalogMapping>()
    {{

    }};

    private CatalogMapping getMappingInternal(final Class<?> clazz) {
        Objects.requireNonNull(clazz, "clazz");
        if (!mapping.containsKey(clazz)) {
            throw new IllegalStateException("No mapping present for " + clazz);
        }
        return mapping.get(clazz);
    }

    public static CatalogMapping getMapping(final Class<?> clazz) {
 
@Nobody that's why i stuck a printf in there
 
11:45 AM
yes but you are doing it the wrong way ^^
 
lol, show me a better example then
 
you "discard" the return value of the increment so the compiler is free to do this too
 
(Especially the static method)
 
#include<stdio.h>
int main(void) {
int i = 5;
printf("%i", ++i);
printf("%i", i);
return 0;
}
 
how do i discard the return value when i printf it in the next satement?
 
11:47 AM
when using i++ you have two values: the old value of i which is returned and the current value of i
 
@Nobody - if you don't discard the value, if you actually use it, then the difference between ++c and c++ is significant, and they are not interchangeable.
 
your example is only using the new value of i
 
right, that example can't be swapped out with an i++ version that's otherwise identical
 
It is not about the difference in output but the difference in code
naturally this does not matter if you don't take the value the compiler will optimize both version to the same code (because it detects that the return value is not used)
 
find an example that gives the same output when i++ can be switched out with ++i and it does the same thing
an example you think is good enough
 
11:50 AM
that was not the point I was trying to make
 
what isn't
int main(void) { int i = 5; printf("%i", i); i++; printf("%i", i); return 0; }
 
I am afraid my english skills are too low to communicate this correctly :(
 
would that be good enough? Checks i before and after incrementing
 
this again discards the return value of i++ so the compiler may optimize it away
 
Fingers crossed
I've never used recursion - or yield return - before
 
11:53 AM
i only ever has two values, and they're both used, how can it optimize anything away?
 
if you go down to assembler level then you have to think about where to store the old and the new value of i (when both are used)
so you either need two registers
or one register and memory
(or both in memory but that is not very likely)
 
    movl    $5, -4(%ebp)
    addl    $1, -4(%ebp)
that's what i get for that part
 
I am afraid we are still talking about two different things
I have to do some work now. If I find the time I will try to write up an example of what I mean
 
alright
@nhgrif +1
 
12:33 PM
@DaggNabbit: Now where do I put this?
 
12:43 PM
This is most definately an interesting read: np.reddit.com/r/Buttcoin/comments/2adssm/…
 
@skiwi "And in way, even though I never owned any, I still cashed out because of Bitcoin."
Interesting indeed.
 
Argh, I made the typo in "definately" again :(
 
1:07 PM
"(For a concrete example, one might want to specialize ArrayList<boolean> using a BitSet as the backing store rather than a boolean[].)" Yes, this is Java.
 
1:20 PM
0
Q: Why am I suspended from chat?

Chak De IndiaPlease un-suspend me. I did nothing and i am suspended for 342 days. why? that's almost an year! Please Unsuspend me otherwise i would have to quit.

 
@StackExchange Judging by his profile, that guy is taking it really serious.
 
@skiwi: Why is he suspended?
 
No clue, never seen him here myself
 
Apparently, I have...
Apr 27 at 15:19, by Chak De India
@SimonAndréForsberg new? http://codereview.stackexchange.com/users/38941/chak-de-india
 
@SimonAndréForsberg Appereantly I should've seen him as well.
 
1:30 PM
I've flagged one of his posts for moderator attention, I believe only a mod can answer him.
 
That's for me
Searched by relevance it is... really relevant!
 
"remember changing stuff and deleting stuff causes chat moderators unnecessary work " I've never heard complaints about that?
 
in Unix and Linux, Mar 27 at 4:36, by slm
0
Q: Mods: I want to delete all my accounts excluding codereview

Utkarshi want to delete all my accounts excluding code review Please do it i want to delete all my accounts excluding code review i want to delete all my accounts excluding codereview

The reason he is banned from chat is probably because of his presence at AskUbuntu, ELL, and some other sites.
 
I don't really get what was going on, but I can neither see the offences
 
1:36 PM
The other accounts are deleted so we can't see anything there
 
I bet the CR mods will be able to figure everything out. Whether or not they can/will do something about it though, that's another matter.
 
0
A: Java enum for mapping classes and specific url

toto2 When I glanced at your code, without even reading it, it looked too complex. I also do not think an enum is appropriate here. Performance is not an issue for 20 items. If you are worried about concurrency, use an immutable map. Instead of using enum or map, maybe all the elements you group i...

So much bad advice :(
83 answers, 0 questions from him, that's rather odd
I personally think it is not possible on CR to show authority in your answers unless you ask questions and unless you are called Jon Skeet or Eric Lippert
Just my observations... Wondering if I should comment on it or not, I've disagreed a few times with him already in the past days and I don't want to step on his toes
 
If you don't agree with points in his answer then comment on them explaining why
 
It's hard to properly explain it in comments without formatting, etc. I don't really like it
 
I think I will have to disagree an about all points you make here, except for the one on "grouped classes". This holds especailly true, as the other two answers disproved the points you make. — Vogel612 2 mins ago
anyone else seeing the thunderstorm coming up?
 
1:44 PM
The thunderstorm was here yesterday evening and this night
 
again? didn't we have enough of it this week?
 
I heard it was quite bad in the western side of Germany
 
@skiwi you bet...
 
@skiwi I find myself agreeing with toto2 quite often. Haven't read this question enough to have an opinion though.
 
our dog (see my picture) couldn't sleep and we had one family member calm him as he shuddered uncontrollably..
 
1:46 PM
@Vogel612 No storm in sight around here: sk6dw.se/sm6sjw
 
@Vogel612 aww
Though here last night there were remarkably few lightning strikes on ground, though in the air it was flashing non stop
 
@DaggNabbit: It got way longer than I thought gist.github.com/NobodyOnSE/f859096e4028f3b5bdd2
 
@Nobody As long as you didn't type the assembly yourself ;)
 
Those days are gone
and I am glad
 
"There's a bug in your Assembly program"
 
2:00 PM
0
Q: Python dictionaries: loops over keys and values

DovahI have two dictionaries like: d1= { 'key1': '******', 'key2': '*******'} d2= { 'key1': ['2', '3'] , 'key2': ['5','6','7']} And I have to replace the string value '*' in d1 with a '+' in every position indicated by the value in d2 build an expected output like: d3= { 'key1': '*++***', 'key2'...

 
monking!
 
@SimonAndréForsberg post does not exist
the one word that I see so much that it is starting to annoy me pythonic
2
 
@Malachi There is a similar concept in the Scala community. Thankfully, we don't have a stupid buzzword for it.
 
@Donald.McLean: scalistic?
 
@Nobody No. Please smack yourself repeatedly until sanity returns.
5
 
2:13 PM
lol
 
Scalien?
 
scaled
 
scalable?
 
They just call it "idiomatic Scala".
 
ohh, two buzzwords actually?
 
2:14 PM
Yes, but the point is that it isn't a stupid buzzword like "pythonic".
 
tell me, why is it stupid?
 
Personal taste. I don't like the word "chillax" either.
 
Well personal taste does not qualify for calling something stupid (in an objective sense)
 
So you're telling me that you have never used an objective term for a subjective opinion (food, art)?
 
I can't remember :P
I was just curious I don't blame you for disliking a far too often used word
 
2:25 PM
But seriously, I agree with your point.
 
I better get offline the thunderstorm is near
bye all, see you later
 
For people who've always wondered:
23
Q: Where do students who don't get into Hogwarts go?

JasonHogwarts is modeled on English private schools like Eton. If Hogwarts is a "private school" where do the students go who either can't afford it or don't get in?

 
probably that is..
or maybe not... not sure yet..
lookie who's there, Hi @Mat'sMug
 
Coming to destroy a wall, are you, @Mat'sMug?
 
finally completed that merge..
 
2:34 PM
@skiwi Like the answer isn't completely obvious.
 
I had these 25 commits squelched into 9 and the whole refactoring is still almost completely untested...
 
@Vogel612 "Our testing is done by the users on production."
 
20% coverage :(
 
Users will get 100% coverage, even when you can't.
I'm really wondering how much all needless paper, etc. in laptop bag weighs
As it's holiday anyway, it's time for a cleanup
 
@skiwi Not sure how I survived not knowing that. =)
 
2:40 PM
@sim I have some major catching-up to do! Hopefully some bounties will help :)
 
I think I am really transitioning from SO to CR these days.
4
 
^^ someone star that!
 
@skiwi Finally!
@Mat'sMug Bounties, as in same kind of mug-bounties you've made earlier, i.e. awarding bounties to other people's questions?
 
@Nobody LOL
 
lol nah, the other way around! I have a draft on a +50 and an answer to flesh up on a +100 ;)
 
2:43 PM
I cleaned up my bag, now I need to clean up my closet at some point, there's at least 3 years worth of study stuff in there
 
@malachi where are our goodies?!!
 
@Mat'sMug I was just about to ask you that!
 
@skiwi I pretty much gave up SO after a week of CR.
3
 
And then my laptop bag was only 6.2 kg... I had 1.8 kg of useless paper in there.
Which surprises me
 
@Mat'sMug should I bug @timpost in the Tavern?
 
2:52 PM
Ok. This is clearly examle code. How did it get 11 upvotes? We can do better than this guys.
10
Q: Most pythonic way to combine elements of arbitrary lists into a single list

GriffinI have a list of lists which represents the options I can chose from. I have a sequence of indices which represent which option lists I want to take elements from, and in which order. E.g. if I have choices = [ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7, 8, 9 ] ] sequence = [ 2, 0, 1, 1 ] I ...

 
@ckuhn203 not my fault, I voted to close it! and commented!
 
I'm not saying it's anyone's fault. For all I know it was a hot question that got outside upvotes.
Just calling it out here so we can correct it @Malachi.
 
I caught it right away before there was any answers on it
@ckuhn203 @200_success answered it, so maybe you and I are both wrong about it
 
Maybe.
idk.
 
0
Q: For Loop and While Loop Efficiency/optimization

SteveZrgSomeone suggest that this question is better suited for this part of stackoverflow, My question is how to make this code more efficient in terms of line saving, or any other way: def missingDoor(trapdoor,roomwidth,roomheight,step): safezone = [] hazardflr = givenSteps(roomwidth,s...

0
Q: Can someone help me make this css effect more efficient?

xcdemon05I recently created one of my first hover effects using html and sass. Since it is my first hover effect, I'm almost positive that is it horribly inefficient. I'm sure there's a way to do this effect using half the number of lines of code, but I can't figure out any ways to do it. The hover eff...

0
Q: Using sql to reorder items in a list view - is this efficient?

sotrhI'm writing an application for work that requires me to process a list of transactions. The list is small (5 records at the most) and I'm required to display that data in an android ListView. My client has asked that I include the ability to order the list based on the date (I have added orderin...

 
2:59 PM
whoa that was weird, 3 at the same time
 
@ckuhn203 What is example about it? It's an A vs. B (vs. C) question, but I don't think it's example code.
 
It might require to be closed and a custom moderator notice like SO does with historical questions... I agree that it's not really what CR needs and seems A vs B vs C, which are deemed off-topic, right?
 
@SimonAndréForsberg A vs. B questions seem like a slippery slope. Some of them might be ok, others probably not. IDK. It doesn't feel on-topic.
I could be wrong though.
 
@Jamal!
 
@Malachi perhaps just subtly ask if it has shipped? ;)
 
3:03 PM
@ckuhn203 We've had an issue with A vs. B questions before, I believe we've discussed it quite a bit. I don't remember exactly what we concluded, but I think that some A vs. B questions are good.
 
@Malachi hi
 
I was editing that, but I am on my laptop so it took me too long and your edit went through...lol, I am going to get some things done now though
 
how do you strike some words in a question/answer?
 
@chillworld <s>text</s>
 
@skiwi still updating answer :)
thx @skiwi
 
3:05 PM
Need to check if I have time to react on the edit then today, meeting this evening
And I want to answer another question, but first dinner
 
@SimonAndréForsberg stick a tag on A vs B posts (I'm ignoring that tag! ;p)
 
0
Q: laravel 4.2 how can I clean up / refactor this store() method?

user49060I'm new to laravel and trying to figure out how I can reduce/refactor this store() call in my SessionController. Basically, the SessionController is used to authenticate a user against an LDAP server (using wells/l4-ldap-ntlm instead of the default auth driver) on LDAP auth success, it then che...

0
Q: FormBuilder Code suggestions for poco

user3824967Hi I am constructing a form builder in asp.net and I am wanting help with the structure of my poco classes I have the following so far. I just dont see why i need to add to a list and then process it futher again would their be a neater way to return a list of .net controls just to add to Panel ...

 
@Malachi ships tomorrow?
 
ha done skiwi
I hope that will give more insight of what I did
 
3:10 PM
in Tavern on the Meta on Meta Stack Exchange Chat, 2 mins ago, by Tim Post
@Malachi Ayup. I generally clear out the swag queue on Saturdays, because there tends to be less interruptions which makes it go a whole lot faster.
 
damn the little kid won't let me on the pc, Always whining
 
awesome!
 
@Mat'sMug That feels like a
 
ugh. it is one.
 
@Mat'sMug there is a link in Meta you should get in on
in Tavern on the Meta on Meta Stack Exchange Chat, 11 mins ago, by Bart
Apr 16 at 22:06, by Abby T. Miller
HEY TAVERN! in honor of the imminent split, you can fill out our super secret form with associate code MUG to get a SUPER SPECIAL MSO/MSE SPLIT MUG* (*DISCLAIMER: may look just like a regular mug)
maybe I wasn't the first close vote on that python question.....
 
3:31 PM
Ok. It's official I hate JAVAscript. I want to learn JavaScript instead.
 
@ckuhn203 Personally, I hate JavaScript just as much.
 
Hello, World!
 
I'm just glad that I only have to dabble in JavaScript.
 
Hello @Phrancis!
 
Do you lose rep associated with a question post if you delete it?
 
3:39 PM
This stuff is just getting old.
@Phrancis I think it depends on how old it is.
 
It's almost a month old
 
I think it has to be 60+ days
 
Cool
 
damn MySQL is a PITA
well.. MySQL + MySQL Workbench vs SQL Server + SSMS I mean
 
Monking!
 
3:50 PM
monking!
 
monking @CodeX!
 
Everything good?
 
@Mat'sMug what is giving you a hard time? Perhaps I can help
 
@Phrancis I hate how ALTER TABLE brings up a UI, I would just want it to give me a script. UI is annoying.
and when you're editing a view or stored procedure, you can't just select+execute, you have to copy to another query... it's dumb.
 
My Workbench doesn't bring up UI when I alter, as long as I write the whole script
 
4:02 PM
and the amount of useless parentheses the editor is putting in whenever you edit a view/SP, is fucking ridiculous
 
@Mat'sMug Are you missing your old job?
 
Why don't you do everything through writing the script yourself? I never use the editors
 
@SimonAndréForsberg hahahahha you're kidding right?
 
I got a couple of examples specific to MySQL you may want to look at... CREATE TABLES (same syntax as ALTER TABLES
CREATE PROCEDURE (same syntax as ALTER PROCEDURE)
 
0
Q: Python code calculating mesh centers runs very slow

PrashanthI have a piece of code that is used to calculate the cell centers in a rectangular mesh. The mesh size is pretty large (650 columns by 1150 rows). The code runs very slow. I was wondering if I could employ any tricks to reduce the runtime.In the example below, deltax is a 1D array of column spaci...

 
4:06 PM
Here is some script examples for CREATE VIEW ALTER VIEW syntax is the same
 
@Mat'sMug Just wanted to remind you that it could have been worse :)
 
And in all those cases it saves the script along with the object so when viewing later you will view your own clean script, not the one with parentheses.
 
@SimonAndréForsberg yeah thanks ;)
 
I recall MS Access also does the crazy parentheses/brackets whenever you use the UI or Wizard, but I normally write my own instead, much cleaner
 
everything is working off views here, I'm in the process of dumping everything into tables and normalizing the data so we can get a bit of querying performance
 
4:10 PM
@Mat'sMug hope this helps
 
@Phrancis yeah, thanks :)
 
Ah, sounds fun.
Sounds like you need some of this in your life: INSERT INTO MyTable SELECT MyColumns FROM MyView;
 
@Mat'sMug 1794 to target.
 
@Phrancis exactly, ...but some of the data is scattered in Excel workbooks, so I'm bringing it into MySQL, and then I'm re-creating the views into another schema and getting the ID's/FK's up.
and then I'm writing SP's to keep the data synchronized between schemas
 
@Mat'sMug sounds like a big job
 
4:14 PM
huh? that's nothing. then I need to actually consume the data and come up with a sales plan :)
 
Anything I can assist with, n'hésite pas à me le dire
 
:)
 
@Mat'sMug are you good writing JOINs by hand? I feel that could save you a lot of time (and better organize) esp with INSERT INTO .. SELECT
 
Damn @SimonAndréForsberg, you answered that questiona rleady!
 
@skiwi Which one?
 
4:18 PM
1
A: Using SQL to reorder items in a list view - is this efficient?

Simon André ForsbergEnum First of all, instead of an int orderByType, I would use an enum. enum SortOrder { NEWER("date(" + SomeConstant.KEY_DATE + ") desc"), OLDER("date(" + SomeConstant.KEY_DATE + ") asc"), ...; private SortOrder(String order) { this.order = order; } public Strin...

- raw sql queries / preparedstatements
- switch on int -> enum
- styling
- defaults to call with null as argument?
These were my notes!
Also custom comparators is probably a very good, especially in Java 8 they're easy on small sets
 
I just spent over 4 hours figuring out that I can't do what I want to do.
2
I think it's lunchtime.
 
@Phrancis yeah, no problem with that! :)
yeah, time to eat!
 
(although, technically, it's a zombie)
 
@skiwi I didn't mention all of that, did I? I'm not sure if PreparedStatements are available in SQLite on Android though.
@ckuhn203 What did you want to do?
 
@SimonAndréForsberg I don't know either
Got to go though, meeting time
 
4:33 PM
@Jamal I just came up with a new Canadian notation: ehSet
 
lol
German notation: jaSet ("yes, it is a set").
2
 
@Phrancis Sounds better than the Scottish notation I invented at least. int[] arr; String s; VeryConfusingObject vco;
2
 
@sim int[] arr; sounds like pirate notation ;)
7
 
4:50 PM
I had a funny conversation with my boss today. She said, "One of your calls was calibrated for one of our large clients, and you did great on the call. But... we saw that you had some code in your Notepad screen and just wanted to make sure you were not writing this for our company, because our IT department needs to do that..."
 
@SimonAndréForsberg I basically want to use a radio button in google apps script, but because of some bugs (google's not mine), I have to use a form and doPost. I wanted to use an OOP approach to the form, but you can't with doPost. To make it even better there can only be one doPost in a project.
 
@Phrancis lol at least they didn't see The 2nd Monitor open :)
2
 
I told her it was only for a personal project while I was caught up on my job duties. Gotta love this place
(not)
@Mat'sMug yeah I make sure to tab over whenever a call rings lol
 
@Mat'sMug Speaking of 2nd Monitor, what does your new job say? You have two monitors?
 
@SimonAndréForsberg At work I have two. At home I have 4.
 
4:54 PM
@Donald.McLean 4? Multi-task much?
 
@SimonAndréForsberg not yet. I asked to get one, currently on a tiny little shit 16" screen
 
@Phrancis Three computers. Work laptop has a 30" second monitor. File/media server (old iMac). Main home computer (Mac mini).
 
FieldProxy<CharPoint> field12 = detail.getProxyFor(analyze.getPoint(1, 2));
FieldProxy<CharPoint> field20 = detail.getProxyFor(analyze.getPoint(1, 2));
FieldProxy<CharPoint> field03 = detail.getProxyFor(analyze.getPoint(0, 3));
^^ No wonder my test failed for field20...
@Mat'sMug Moahahaha.... I don't even know how big my (main) screen is. Except that it's 1920x1080...
 
5:33 PM
0
Q: Can this insertion sort be optimized?

CeleritasCould you provide feedback for this code? For arrays of length 2, is it more efficient not to use a sorting algorithm? package insertion.sort; import java.util.Arrays; public class InsertionSort { /** * @param args the command line arguments */ public static void main(Strin...

 
@Jamal What!? You have received more rep than I have today. How did that happen?
 
@SimonAndréForsberg points to JAVA question :-)
 
Oh, right!
 
Other than that... O.o I've also answered just one zombie, and got 20 rep from Santa.
 
@Jamal You'd better keep that secret about your question, otherwise the whole site will be filled with JAVA questions!
 
5:40 PM
I'll be sure to post my next question using Eclipse. If anything, your answer can help visitors.
And because of the controversy around Greg's answer, I'm not sure if I should accept it just yet.
 
@Jamal There's been some controversy around my answer too, more specifically about that i++ vs. ++i thing...
 
True, but I would've accepted yours because of the Ideone stuff. I can still wait a while.
 
@CaptainObvious Scottish notation detected
 
What is Scottish notation?
It sounds like some kind of ethnic slur to me.
 
@Donald.McLean It's something I made up a week or so ago. int[] arr is an example of it. It's kind of like Hungarian notation but without the actual name. I.e. the name is only related to the type of the variable.
 
5:48 PM
@SimonAndréForsberg Why Scottish though?
 
@Donald.McLean Because of the stereotype about Scottish being cheap, (so they use fewer letters in their variable names). Other name suggestions are welcome. As we know, naming things are hard.
I don't want to offend the Scots, but I do feel sorry for the Hungarians for what they have suffered because of their notation.
 
@SimonAndréForsberg Ok, so it's definitely an ethnic slur then. As long as we're clear on that. :-)
@SimonAndréForsberg According to Wikipedia, Hungarian notation is so called because of the way that Hungarian surnames precede given names.
 
@Donald.McLean I believe a lot of countries do that.
 
As I understand it, other cultures do the same thing, so it could just as easily been (IIRC) Chinese notation.
Now if you had said it was because the Scottish had a reputation for being taciturn, then it wouldn't really be an ethnic slur (taciturn not having any negative connotations).
 
@Donald.McLean We could make it Swedish notation and apply that!
 
6:02 PM
@SimonAndréForsberg that would be private int t_h_i_s_i_s_a_n_i_d_e_n_t_i_f_i_e_r; // assembly required
 
Looks like Hangman notation. :P
2
 
@Mat'sMug Why that?
 
@SimonAndréForsberg As a taciturn Scot, I don't have any problem with calling it Scottish notation.
 
@SimonAndréForsberg IKEA notation, perhaps
3
 
@Donald.McLean So, are Scottish taciturn?
 
6:06 PM
But just so as we're clear, I have nearly as much Swedish ancestry as I do Scottish ancestry.
@SimonAndréForsberg No clue.
 
Ughhhhhhhh
Ugly ugly ugly
3
A: Is there a work around for an object oriented front-end in Google Script

Henrique AbreuAll handler functions must be top level functions on your script. It's not possible to have it inside an object like this.

 
Well, its Heineken time again, have a great weekend everyone! Bye :)
4
 
@CodeX happy Heineken!
 
6:22 PM
Should we remind @Malachi what day it is today?
 
Hey guys :)
 
@SimonAndréForsberg true, it's fry day!
hey @AlexL
 
0
Q: Scoring matches of a game - reducing duplicated code

Ernest3.14I'm writing a small application to score matches of a game. (There are two "teams" on each "alliance", and two alliances play each other in a match.) I have a "logic" class that handles the values of different scoring elements for each team, and calculates that team's score. Instead of writing ...

 
0
Q: Are we blind upvoting answers based on answerer reputation or are my answers no good?

nhgrifAdmittedly, Objective-C isn't very popular on Code Review. There certainly aren't a whole lot of answerers. I am basically the only regular Objective-C answerer. I'd like to think that my answers to Objective-C questions are good answers that the asker and the small Objective-C community can b...

and now back to work. :/
 
@Nobody "This makes the whole test meaningless because the postfix/prefix difference is not about code before or after the increment but at the increment." -- but this is exactly what people were questioning, whether there was any difference in prefix/postfix when it was by itself, not when it was used as part of another statement. That's what the test was designed to prove.
 
6:31 PM
@nhgrif Sadly, that first paragraph may explain it. Considering that your rep isn't that low compared to others, I don't think it's a factor here in particular.
 
0
Q: Are we blind upvoting answers based on answerer reputation or are my answers no good?

nhgrifAdmittedly, Objective-C isn't very popular on Code Review. There certainly aren't a whole lot of answerers. I am basically the only regular Objective-C answerer. I'd like to think that my answers to Objective-C questions are good answers that the asker and the small Objective-C community can b...

 
@nhgrif i think that question (somehow) went hot and your trigger finger wasn't quite fast enough.
 
@nhgrif may I make a suggestion? Whenever I think I have a good answer, especially to a more obscure tag like or , I make sure to post it in chat, just to make the regulars aware you would like attention on the answer (and question).
I would say your participation in is particularly valuable since it is not as popular of a language and you obviously are the most knowledgeable regular contributor, as far as I know
 
^^ Totally agree.
 
6:47 PM
@nhgrif also if you posted some Objective-C questions, and then reviewed your own code and self-answer, this would be a great way to educate the rest of us on Objective-C and perhaps get some of us to follow the tag? (also, earn some good rep)
I looked at all your answers in Objective-C tag and notice a trend of the OP not accepting an answer... perhaps make a note when you answer, If you like my answer the best, please "Accept" it so that others will benefit from it in the future.
 
@Phrancis Good observation
 
@nhgrif I'm going to go through your ObjC answers with low votes and no accept and see if I can help that trend.
> @ChristianRosick please "Accept" the answer if it helped you make better code. Thank you! – Phrancis 1 min ago
 

« first day (433 days earlier)      last day (3574 days later) »