2,701 reputation
2819
bio website github.com/CodesInChaos
location Frankfurt, Germany
age
visits member for 4 years, 5 months
seen 14 hours ago

Feb
18
comment Web API: avoiding name conflicts in URL query parameters
I'm not sure if the url is the best place for the version number. A http header seems more RESTful.
Feb
18
comment Most efficient way to calculate number of iterations to run
(n+k-1)/k where / is integer division.
Feb
12
comment Does this python program obey functional paradigm?
listOfSequence.append(n) doesn't look functional to me.
Feb
12
comment Would it be troublesome to learn C# and F# at the same time?
To me the difference between F# and python looks much bigger than the difference between C# and python. Switching from python to C# you mainly need to get familiar with static typing the standard library. With F# you'll need to learn functional programming, which is a much bigger endeavor.
Feb
9
comment Can commented-out code be valuable documentation?
In your last case I'd keep both code variants as compilable code.
Feb
4
comment Well defined mathematical operations for bearing (angle) class
Because "2 * east = south" makes no sense.
Feb
4
comment Well defined mathematical operations for bearing (angle) class
@DocBrown Are you sure modular arithmetic is still a ring if you use real numbers instead of integers as basis? Isn't it just an additive group?
Feb
4
comment Well defined mathematical operations for bearing (angle) class
@BartvanIngenSchenau Multiplication with an integer makes sense (for relative angles), but multiplication with real numbers/floats leads to the same unintuitive effects as division.
Feb
4
comment Well defined mathematical operations for bearing (angle) class
If you normalize after every operation then multiplication/division should be removed.
Feb
4
comment Well defined mathematical operations for bearing (angle) class
Many of your operations only make sense for relative values but not for absolute values.
Feb
4
comment Are there deals (free or low cost) to license Visual Studio for open-source developers?
You can use the Visual Studio Community Edition, which is essentially a free Visual Studio Professional with a couple of licensing restrictions.
Feb
4
awarded  Excavator
Feb
4
revised Using Visual Studio with a screen reader without paying for an expensive edition
added 7 characters in body
Feb
4
revised Using Visual Studio with a screen reader without paying for an expensive edition
deleted 1 character in body
Feb
4
revised Using Visual Studio with a screen reader without paying for an expensive edition
added 7 characters in body
Feb
2
comment How is atomicity of reference operations enforced?
Platforms with 64 bit pointers/references generally provide efficient atomic 64 bit writes.
Feb
1
comment Does ORM at any point become a “requirement” for RESTful API?
Note just because you want to store (some) data non-relationally doesn't mean that you need to use a document database. You could store these parts in a text/binary field in an otherwise relational database.
Jan
30
comment Are there any benefits of using this extra variable in the for loop annotation?
In C#/.NET the variant using n might be slower than the variant using array.Length since the JITter might not notice that it could eliminate array bounds checks.
Jan
26
comment Should an Http API always return a body?
@Hey I'd use the location http header for that.
Jan
26
answered Should an Http API always return a body?