Reputation
57,870
Next tag badge:
564/400 score
79/80 answers
Badges
17 127 212
Newest
 Nice Answer
Impact
~1.1m people reached

1d
awarded  Nice Answer
2d
comment Why is it so difficult to read code?
It is extremely common for programmers to hate existing code.
2d
answered How to stop thinking in terms of code?
2d
comment How can I learn algorithms?
One thing to note is that these challenges aren't about algorithm design usually. They require a trick to get the best performance for the challenge, and if you don't know the trick, you're usually not going to figure it out from scratch. For these, it's often memorizing a pile of tricks that aren't terribly useful in the real world, and diagnosing which trick can be used for this challenge (which is a useful real world skill).
2d
comment Is there a Haskell idiom for trying several functions and stop as soon as one succeeds?
Not Haskell, but in C#, you'll occasionally see the null-coalesce operator (??) used like that: return f1 ?? f2 ?? f3 ?? DefaultValue;
Jul
26
comment Are modern IDE's a 'crutch'?
That's like asking if people are better off with shelters, not always having to watch out for bears trying to kill them. I mean, having shelter all the time means nobody has the skills to detect and avoid bears!
Jul
23
comment i++ vs i+=1 in cycles, why evaluate?
Do you think that i+=1 somehow does not evaluate i?
Jul
23
answered Why is modularity a good idea?
Jul
22
answered Why dynamic memory allocation functions in C returns void*?
Jul
21
answered Creating a Java project without using any objects and just calling static methods on input?
Jul
19
comment Will statically typed, compiled programming languages be affected by Microservices Architecture?
If the microservices are doing the same thing a single module or class did in the old code, it necessarily needs to have the same dependencies/complexity. Shuffling the deck chairs does not make the Titanic any less doomed.
Jul
19
comment Will statically typed, compiled programming languages be affected by Microservices Architecture?
Replacing "class" with "microservice" doesn't make your codebase any smaller or less complex.
Jul
17
comment How are mixins or traits better than plain multiple inheritance?
@DavidMoles - that's the common way, I've also seen limitations on virtual dispatch rules (think C#'s explicitly implemented interfaces).
Jul
16
awarded  Good Answer
Jul
15
comment How to ensure this constraint at compile time?
Ah, I see. Interesting.
Jul
15
comment How to ensure this constraint at compile time?
Well, at least in some languages, you can make an Attribute<T> which then can be required to have the same T as AttributeValue<T>.
Jul
15
comment How to ensure this constraint at compile time?
Is there any reason AttributeValue has an AttributeID rather than an Attribute other than "that's how the DB stores them"?
Jul
14
comment Hot-patching a server: dynamically loading types from an uploaded assembly
@RobertHarvey - I would not be terribly surprised if other servers didn't have similar refresh mechanism - I don't know enough to speak to them though.
Jul
14
answered Hot-patching a server: dynamically loading types from an uploaded assembly
Jul
14
comment Integer Map Algorithm
@JPtheK9 - oh no! 4 meg! That is breaking the bank!