2,199 reputation
1329
bio website
location
age
visits member for 4 years, 3 months
seen 10 hours ago

Nov
28
comment Starting Execution of Java Program
@justin: There're no member functions in C and there're no non-member functions in Java. There's no other choice in C - non-member functions are the only choice. There is some choice in Java (all functions are member functions but they can be either static or non-static). Non-static member functions could have been used as entry points - however the design choice was made in favor of static member functions and I don't know why it was done this way but I guess it is because it is simpler. Also please note that static for C functions and static for Java member functions are totally different.
Nov
28
comment Starting Execution of Java Program
@justin: C runtime invokes a non-member function main() and Java runtime invokes a static member function main() of some class that happens to contain it.
Nov
28
comment Starting Execution of Java Program
@justin: Yes, it uses main() non-member function the same way as C does.
Nov
28
comment Starting Execution of Java Program
@justin: Yes, mostly. You can call non-static member functions on specific objects and you can call static member functions using either a specific object or a class name.
Nov
28
comment Starting Execution of Java Program
@gnat: This is a 80th level newbie question - the OP cannot get out of the following dilemma: the book says it has to be static because there's no object yet and he cannot get why they would need an object given that C and C++ don't need an object.
Nov
28
comment Starting Execution of Java Program
@gnat: That question is about why it is a static function and not a non-static function (less newbie). This one is about why it is a member function in the first place.
Nov
28
comment Starting Execution of Java Program
@justin: I think calling them non-member functions would make things easier. stackoverflow.com/a/4863328/57428 I edited the answer.
Nov
28
comment Starting Execution of Java Program
@justin: All functions are standalone (also called free functions) in C - fread(), rand(), malloc(), main(). In C++ functions can be member functions and free functions.
Nov
28
comment Starting Execution of Java Program
That's an example of a very good newbie question.
Oct
29
comment How was the system clock first used in early computers?
@DanPichelman: That doesn't necessarily required a wall clock equivalent - a tick counter would be enough. Your task starts running - the counter value is saved in your session. Your task stops running - the stored value is subtracted from the current counter value and that's how long your task has been running.
Oct
29
comment How was the system clock first used in early computers?
@DanPichelman: How is Manhattan Project useful for commerce? Yet it certainly required computations provided by serious tools, not toys.
Oct
29
comment How was the system clock first used in early computers?
Why would synching circuits require time keeping instead of just a series of impulses?
Oct
29
comment How was the system clock first used in early computers?
@kdgregory: The equivalent of wall clock. I added a clarification.
Oct
29
comment How was the system clock first used in early computers?
Okay, so UNIVAC maybe had separate system clock, but would it use it for?
Mar
5
comment What's the standard practice to prevent users from having unreasonable expectations?
@LokiAstari: I always hear that to counter negative user experience one has to be really impressive (preferably not spending a fortune on that). So once the customer expectations were not met for whatever reason it's somehow time to counter his negative impression and so be impressive.
Mar
5
comment What's the standard practice to prevent users from having unreasonable expectations?
@LokiAstari: Well, publicly documenting a refund worth one peanut doesn't sound impressive.
Mar
5
comment What's the standard practice to prevent users from having unreasonable expectations?
@LokiAstari: Will a 1/20 refund (in any form) really make you happy? I understand that 1/20 sounds reasonable - that's what you haven't got - but will it actually compensate for the fact that you were not served as expected in the first place?
Mar
4
comment What's the standard practice to prevent users from having unreasonable expectations?
@Loki Astari: That would be such a tiny sum it wouldn't make them happy. Suppose you wanted to take a bus and a ticket costs 1USD. Now the bus came one hour late. Will 1USD (or 5USD) refund make you happy?
Mar
1
comment What's the standard practice to prevent users from having unreasonable expectations?
Okay. We don't promise what we can't provide, but customers feel we have promised that. What can be done with this part?
Mar
1
comment What's the standard practice to prevent users from having unreasonable expectations?
@Telastyn: That's all great, but some of them actually demand compensation.