| bio | website | |
|---|---|---|
| location | Argentina | |
| age | 36 | |
| visits | member for | 2 years, 3 months |
| seen | 1 hour ago | |
| stats | profile views | 187 |
Software developer and science fiction fan.
|
Feb 25 |
awarded | Nice Answer |
|
Feb 25 |
comment |
Why Use !boolean_variable Over boolean_variable == false @ell I suggest this isn't "language-agnostic". Pick a language and follow its conventions! |
|
Feb 25 |
revised |
Why Use !boolean_variable Over boolean_variable == false grammar |
|
Feb 25 |
comment |
Why Use !boolean_variable Over boolean_variable == false @zzzzBov: It's true that Java's syntax resembles C, but its conventions and best practices are different in many ways. |
|
Feb 25 |
answered | Why Use !boolean_variable Over boolean_variable == false |
|
Feb 25 |
comment |
Why Use !boolean_variable Over boolean_variable == false @zzzzBov I haven't programmed in C in ages... is that the idiomatic way of evaluating a boolean expression? In any case, consistency is relative to specific languages. In Java it's idiomatic to write if (condition) {...} rather than if (condition == true) { ... } (same with false). |
|
Feb 23 |
comment |
“Comments are a code smell” @CodeInChaos I retract my opinion. Here is what Sunacle has to say about assertions. It seems you were right. Well, you learn something every day! |
|
Feb 23 |
comment |
Can anybody recommend an application for laying out algorithms on a mac? Consider changing the title to mention you want a flowchart app, otherwise you'll confuse people. Traditionally, in order to write algorithms on a Mac you'd use your brain and a programming language ;) |
|
Feb 23 |
comment |
“Comments are a code smell” @CodeInChaos IMO Assert(!list.isEmpty()) is not exactly a contract as in the third comment, but simply behavior (i.e. "throw IllegalArgumentException if the argument is empty") that must be unit-tested like any other program logic. Note the subtle difference with the comment, which states when the method can be used, but specifies no behavior if the precondition is not met. Even better than the comment would be to enforce compile-time contracts. But this exceeds the scope of my answer ;) |
|
Feb 21 |
comment |
Do I need to know how to program before going to university if I want to study programming? Have you tried asking a professor or tutor from the university you're planning to attend? |
|
Feb 21 |
awarded | Enlightened |
|
Feb 21 |
comment |
Why was dependency injection pattern not included in the Gang of four? @Falcon I agree with on the subtle difference between DI and the Strategy pattern, but disagree with your assessment of which of the 2 answers is better. Nevertheless, an upvote for a different answer is irrelevant for this one. |
|
Feb 20 |
comment |
Why was dependency injection pattern not included in the Gang of four? +1 Dependency Injection is merely doing the Strategy pattern with a fancy framework such as Spring. |
|
Feb 20 |
comment |
Why was dependency injection pattern not included in the Gang of four? -1 The original question is about Dependency Injection, but you discuss Dependency Inversion. Not the same thing. |
|
Feb 12 |
awarded | Enthusiast |
|
Feb 11 |
comment |
Will correctness proofs of code ever go mainstream? Consider the economic argument: maybe it's better for developers to "waste" time with correctness proofs than losing money because of software errors. |
|
Feb 8 |
comment |
Why is CS taught to be memorized? @GlennNelson Oops! I misread that. Ok, in that case: esqew: you'll be relieved to know, at a university level, CS is (mostly) not about memorization of code. You'll have to read lots of stuff, though ;) A CS education is also not necessarily about finding a job (you'll probably be disappointed if you think it is) |
|
Feb 8 |
comment |
Why is CS taught to be memorized? CS is not about memorization of code and functions. Where the hell are you studying CS? May I suggest the real problem is that the course you're taking is crap? |
|
Feb 7 |
awarded | Yearling |
|
Feb 5 |
comment |
How REST is used outside of the web Your confusion is understandable. While some REST concepts are easy to understand and comply with (e.g. use of common verbs such as POST, GET, etc), other concepts are still baffling people. According to Roy Fielding, REST APIs must be hypertext-driven; anything else is simply not REST. He also has pretty strong opinions on how a RESTful API must be discovered by the client. |