8,744 reputation
53678
bio website
location
age
visits member for 3 years, 3 months
seen 1 hour ago

0x2B | ~0x2B


Sep
19
reviewed Leave Open Why has C prevailed over Pascal?
Sep
19
comment What benefits are there to native JavaScript development?
"You can very well know your dream car has a V12 engine, but you don't know what that actually means. So you're not a car mechanic, really - you're a car enthusiast. And until you learn how cars work, you will remain an enthusiast.": Great observation! I will pass it on to someone I know.
Sep
17
reviewed Leave Open How do you choose to use a specific programming language?
Sep
17
reviewed Leave Open Finding metrics for development time in different languages
Sep
16
reviewed Leave Open Are there opportunities working as full-time paid programmer for Non-profit organizations
Sep
15
comment Is it okay to use exceptions as tools to “catch” errors early?
"Two, is that if every function is throwing slightly different exceptions based on what kind of obviously wrong inputs have been provided, then pretty soon you've got functions that might throw 18 different types of exceptions...": In this case you can use the same exception (even NullPointerException) in all functions: what is important is to throw early, not to throw a different exception from each function.
Sep
15
comment Is it okay to use exceptions as tools to “catch” errors early?
"For one, it makes no sense to be passing a null there anyway, so I'll figure out the problem immediately based on the throwing of a NullReferenceException.": Not necessarily, as Prog's second example illustrates.
Sep
15
comment Is it okay to use exceptions as tools to “catch” errors early?
I have been working for a few years on a code basis that is based on this principle: pointers are simply de-referenced when needed and almost never checked against NULL and handled explicitly. Debugging this code has always been very time-consuming and troublesome since exceptions (or core dumps) occur much much later wrt the point where the logical error is. I wasted literally weeks looking for certain bugs. For these reason, I prefer the fail-as-soon-as-possible style, at least for complex code where it is not immediately obvious where a null-pointer exception comes from.
Sep
14
revised Is it okay to use exceptions as tools to “catch” errors early?
deleted 1 character in body
Sep
14
comment Is it okay to use exceptions as tools to “catch” errors early?
Can the downvoter explain what is wrong with this question?
Sep
14
answered Is it okay to use exceptions as tools to “catch” errors early?
Sep
14
comment Undefined behavior, in principle
@jxh: The point is that undefined behaviour can be deterministic, but different from one implementation to another.
Sep
13
comment Undefined behavior, in principle
@Arman: I agree with you, non-deterministic usually means that in a computation different choices / solutions are considered at the same time, while undefined behaviour means that the language specification does not define a specific behaviour for a given construct.
Sep
13
comment Why is Global State so Evil?
@maaartinus: IMO you have just moved the mutation from the object (mutable object == object with mutable member variables) to the mutable variable that can point to different immutable snapshots (immutable objects). The state of your system is now represented by that variable. In a purely functional approach you would have a stream of immutable objects: both the objects and the stream are immutable.
Sep
12
comment Why don't languages include implication as a logical operator?
I think some people just randomly downvote answers for no reason. Anyway, I did not know that Racket had an implication operator and I find it relevant to the topic of the question (some languages do have such an operator). +1
Sep
9
reviewed Leave Open Should every member of scrum team be universal?
Sep
9
comment How do you track what you and your team are working on day-to-day?
@Telastyn: Clearly you need discernible artifacts to be useful to your clients. The point is how often you and your client need them. There is no general rule but monitoring the development process too closely can disturb the process itself, slow it down and reduce the quality of the results. As a provocative example, when you walk, do you check that you are going in the right direction after every step?
Sep
8
comment How do you track what you and your team are working on day-to-day?
Unfortunately I only have one upvote for this! " If you begin measuring them on a daily basis, they will restructure their work so that they always produce some discernible artifacts for you to see each day.": For complex tasks, even a weekly checkpoint (one-week sprints) can have this effect: you end up working to produce a visible result instead of focusing on solving the real problems.
Sep
8
reviewed Leave Open Why friend in C++ should be in the header file?
Sep
8
reviewed Leave Open With agile, what do when a user story doesn't get completed in an iteration?