4,824 reputation
941
bio website
location
age
visits member for 2 years, 5 months
seen 2 hours ago

17h
comment Is a web application only something that has a UI that runs in the browser?
@BryanOakley would you call a Java IRC client that runs inside your browser a web app or a "Java IRC client"?
19h
comment Is there a technical reason why you can't develop iOS apps on a Linux computer?
You can develop iOS apps on other platforms.
19h
comment Is there a technical reason why you can't develop iOS apps on a Linux computer?
I can't understand why this is the accepted answer. Developing iOs apps on other operating systems is totally possible, the only thing you need a mac for is the signing part, but that's not part of development.
23h
comment Is a web application only something that has a UI that runs in the browser?
Things have evolved that you basically can't see much difference anymore between intranets and the world wide web.
Sep
17
comment Should I worry about performance, even if there is no loss of convenience?
caring about performance is not the same as optimization.
Sep
15
comment Early return statements and cyclomatic complexity
You're doing two things here. You have conditional logic but also a guard clause. I tend to respect the single responsibility concept, because in general it makes code more readable, except for guard clauses at the start of a function.
Sep
4
comment Automatic denormalization for a NoSQL database application
That's why I suggested: index everything.
Sep
2
comment Should I throw guard exceptions that will be thrown by internal methods anyway?
Why are you disallowing a truncate to 0 length?
Sep
2
comment Whether to store all numbers or just their ranges in database for this application
A possible race condition is when 2 (or more) processes work on the same data in parallel. Imagine, 2 processes at the same time querying which numbers are free, giving a range and then storing it in a database. Where it can go wrong is this: 1 asks free range(gets a range), 2 ask free range (gets same range as 1 because 1 hasn't written the range yet). 1 saves range. 2 saves range (and in the process overwrites the range of 1 because you only checked at the start which numbers were free)
Sep
2
comment Whether to store all numbers or just their ranges in database for this application
@OMI size of data: how many numbers do you expect to sell, how many rows will this table contain?
Sep
2
comment Whether to store all numbers or just their ranges in database for this application
How does any of these designs prevent race conditions?
Aug
26
comment How do I move away from the “for-loop” school of thought?
The way I read that link on vectorizing data is that it mainly hides the looping and makes it more efficient but it still takes place. Correct me if I'm wrong but will numpy arrays transform O(n^2) operations into O(n log n) operations? If you don't handle complexity you're just delaying your bottlneck.
Aug
26
comment How do I move away from the “for-loop” school of thought?
If your arrays are slow you may want to think about using other datastructures, like a binary tree. laurentluce.com/posts/binary-search-tree-library-in-python
Aug
26
comment Is method overloading anything more than syntactic sugar?
Following your reasoning, the overloaded "+"-operator is purely syntactic sugar, because it can add 2 numbers but also concatenate 2 strings.
Aug
25
comment Minimal set of critical database operations
I'm wondering what the real problem is? Do you want to whitelist some database operations or blacklist others? Like allow statements with SELECT, UPDATE, INSERT but disallow statements with things you may not need? Like UNION, HAVING etc, ?
Aug
22
comment Do you think asking to sign contributor license agreement for a open source project creates a resistance for contributors?
"Lack of a CLA guarantees to me that my work will stay open source." CLA's can provide that too.
Aug
22
comment Do you think asking to sign contributor license agreement for a open source project creates a resistance for contributors?
This is Extremely bad advice. There may be reasons for or against a CLA, but starting without one and then adding one later is one of the worst paths you can take.
Aug
22
comment Do you think asking to sign contributor license agreement for a open source project creates a resistance for contributors?
"I believe you first should make your free software popular and successful and attract small contributors; for that you need to avoid CLA." By the time your software becomes popular and your project has a dozen contributors, your project already will have so many people with their copyright rights on the source that making a CLA then will not work. Have one from the start or not.
Aug
20
comment In what programming language did “let” first appear?
You make the incorrect assumption that the first use of "let" in a programminglanguage is the origin of "let"-use in Lisp, Clojure, and Haskell.
Aug
20
comment In what programming language did “let” first appear?
@JohanKarlsson There are 2 original questions and 1 incorrect assumption by the topicstarter. The incorrect assumption is that the first use of "let" in a programming language must be the origin of "let"-use in Lisp, Clojure, and Haskell.