Reputation
775
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
4 13
Impact
~27k people reached

  • 0 posts edited
  • 1 helpful flag
  • 147 votes cast
Nov
27
awarded  Revival
Nov
27
answered Which specific practices could be called “software craftsmanship” rather than “software engineering”?
Nov
27
answered Is the Java package name convention flawed?
Nov
23
comment Method vs Function vs Procedure
Great answer! Just one tiny addition: A procedure should "do something" to the arguments - or cause some other side effect (e.g. printf).
Nov
19
awarded  Critic
Nov
8
comment Why do so few large websites run a Microsoft stack?
Cost may indeed be the reason, but you bullet list of Microsoft technologies that cost money is wrong: .NET is free, Visual Studio is free (there are paid version too, just like there are paid version of PHP IDEs), SQL Server Express is free (again, there are paid version too), and IIS is an operating system component which is included for free with the OS. Also, you don't have to run the Microsoft stack (just call it by its name: ASP.NET) on Windows/IIS, it can run on Linux/Apache too (with Mono).
Nov
7
comment How do you use blank lines in your code?
@Mike: I don't know, I don't think the guy's around to ask him. I didn't even bother to check if all the methods were properly aligned. Like with a dirty public restroom, you go in, do your thing, and leave as quickly as possible.
Nov
6
comment How do you use blank lines in your code?
I'm assuming your Bad Whitespace example is a shortened version of what should be considered bad. At its current length, it seems unnecessary to split it up.
Nov
6
comment How do you use blank lines in your code?
@Rob: It was used in production code of a large system, but without the comment header, and having large enough method bodies that the alignment puzzled me, since I couldn't see other method signatures in that file. When I collapsed the bodies of the methods, I was able to see the "reason" for the whitespace.
Nov
6
answered How do you use blank lines in your code?
Nov
6
comment Which library/framework did you ditch as being too complex for the problem it is solving?
WCF 4.0 requires no XML configuration file at all. I don't have any experience with interoperability with other technologies (apart from using WCF as a client, which works well), but I can say I found it both easy and intuitive. Even though I started using it without reading any books or having any training (and with deadlines to meet), I was able to hit the ground running.
Nov
5
comment Why SQL is not so widespread in large desktop applications?
Databases are also just "a bunch of files". I'd argue that all the examples you presented are in fact databases, just not SQL-queryable relational databases.
Nov
5
revised Most logically consistent way to create methods of the form a affects b?
added 581 characters in body; added 9 characters in body; added 33 characters in body
Nov
5
answered Most logically consistent way to create methods of the form a affects b?
Nov
5
comment What does “Human Readable” mean? Is it a misnomer?
+1: Everything is "human readable" given enough effort. The de facto meaning of "human readable" in computers is: plain text, unstructured or some structure solely composed of textual characters.
Nov
2
comment async & await - poll for alternatives
Why the downvote? It's a courtesy to at least explain yourself after downvoting.
Nov
1
comment async & await - poll for alternatives
I like your inversion of the await keyword. And I also dislike the triple-redundancy of public async Task<int> FooAsync().
Oct
30
comment async & await - poll for alternatives
@Note: Well there's no verb in while. If you do add a verb, like do, then you get do {...} while (x), which does executes the body regardless of x (at least once). Your suggestion of yield while seems very similar to do while, but with opposite guarantees of performing the verb, which might be a bit misleading (but not that much of a big deal). The thing I dislike the most about yield is that it implies the implementation of a mechanism. The whole point of async/await is that you write a asynchronous operation in a synchronous style. yield breaks that synchronous style.
Oct
29
answered async & await - poll for alternatives
Oct
29
comment async & await - poll for alternatives
But you're not necessarily yielding execution if the task has already been completed. But you're always awaiting the completion of the task (though never waiting).