1,722 reputation
11233
bio website
location Stockholm, Sweden
age
visits member for 3 years, 9 months
seen Oct 15 at 4:23

Sep
27
comment Are long compiles a thing of the past?
A recent large project took me 40 minutes to compile (40 000 source code files compiling with Maven). The workaround is to paralliize the compilation on many CPU cores.
Mar
30
comment Algorithm for base-conversion in C?
Thanks. I updated my question with a function that seems good.
Feb
25
comment How to write camel case for words like “phonenumber”, “motorcycle”, “wavelength”, etc
@PeterTurner I wasn't sure about usernamesince we already got streetName.
Feb
25
comment How to write camel case for words like “phonenumber”, “motorcycle”, “wavelength”, etc
I wonder if it's an algortihm or just a dictionary lookup that makes my IDE know that String hairstyle is not a typo but String codestyle has a typo and should be codeStyle.
Feb
25
comment How to write camel case for words like “phonenumber”, “motorcycle”, “wavelength”, etc
@PacMani Yes, what about "username" vs "userName" ?
Feb
24
comment How to write camel case for words like “phonenumber”, “motorcycle”, “wavelength”, etc
Ok. I assumed that the correct English would be phonenumber and not phone number. If the correct English is "phone number" and not phonenumber then the camelcase of phoneNumber is correct. I assumed that it was written in one word i.e. phonenumber but now I understand that correct English is "phone number" and that is different from my assumption.
Feb
24
comment How to write camel case for words like “phonenumber”, “motorcycle”, “wavelength”, etc
But phoneNumber looks as wrong as passWord and setUp. Shouldn't it be phonenumber since its a word of its own and not a concatenation like motorcycleColor" or phoneColor` ?
Feb
22
comment How to encapsulate method parameters in Java?
I want to know what is a good Java ADT for a parameter list. If I first have updateMethod(String s1, String s2) and then need one more parameter for a third parameter updateMethod(String s1, String s2, String s3) then its like a varargs and with all strings that would be Map<String, String> or Map<K, V> for any types. So I wonder if I can have just an updateMethod(Map<K, V> map> for any number of parameters of any types.
Oct
13
comment Why does the instruction “do” require a “while”?
What we're trying to program in an instuction that does do foreverand I think that could be just do { ... } but that is mostly not allowed.
Sep
3
comment Why would one transform a checked exception to an unchecked exception?
@Kemoda I knew I didn't know. Now I must know why not.
Sep
3
comment What is the one or the few major changes from Java 6 to Java 7, couldn't JBoss do that already with Java 5?
Thank you. That looks very good.
Aug
25
comment Is Perl outdated for CGI and FCGI?
@ott-- That was interesting, can you elaborate? My colleague next door was a 100 % Cobol programmer. I like C, Java is too large.
Aug
24
comment Is Perl outdated for CGI and FCGI?
@StevenBurnap My Government still codes in COBOL, yes.
Jul
22
comment Can we illustrate a CPU pipeline with a UML sequence diagram?
@RobertHarvey Ok...But it's still not strictly UMl and I'd like to be clear about what's data and what's time. In this illustration data is just flowing back and forth and propagating, there is no easy way to follow time like an UML sequence diagram has.
May
1
comment Did I answer this correctly and concisely?
@Mat Thank you for the comment. I understand what you say and I'd like to add that these very broad generalizations might actually be good prep for typical interview question from large companies when they hire programmers the companies might very well ask the candidate check questions that are just like comparing two languages e.g. "What is the difference how dynamic memory is allocated in C and C++" is an interview question that I've verified that other programmers were also asked.
Mar
7
comment Is there a constant for “end of time”?
@JimG.I updated the question with an example I just saw. A blogger wants to write a welcome page.
Feb
4
comment What's a good way to explain the need for pointing to a pointer?
@Brian I agree that the example you put in is very good since it's common. It's one I've seen.
Dec
10
comment How many bits' address is required for a computer with n bytes of memory?
Nice answer, many thanks.
Dec
10
comment How many bits' address is required for a computer with n bytes of memory?
OK so for 512 Mbyte RAM the equation is 512*1024²=2^x(?) Thanks a lot for the prompt answer.
Dec
3
comment How is a switch statement better than a series of if statements?
But don't you think that a decent compiler can and should perform this optimization since a) switch statements are more difficult to read than if..else and b) the syntax for switch statements is difficult to remember.