21,079 reputation
14184
bio website back2dos.wordpress.com
location LE City - Germany
age 28
visits member for 3 years, 10 months
seen 3 hours ago

"the code is the design"


1d
comment Why is polling accepted in web programming?
@ptyx: The 1s interval is the one being discussed here. 10k requests per second means 10k TCP handshakes and 10k HTTP requests (each easily reaching 2KB), which gives you multiple orders of magnitude more background noise pounding your server. There is a variety of battle tested libraries that make push subscriptions as easy as putting polling in place. There are even frameworks like meteor.js that completely abstract the whole issue away. Appealing to scalability without any further explanation is also hardly an argument. Anyway, I have voiced my doubts and don't wish to start a discussion ;)
1d
revised Can a closed-source programming language survive?
added 51 characters in body
1d
comment Why is polling accepted in web programming?
This is a horrible analogy to put it mildly. In order for the push to work, any user's client must maintain an open connection of some sort. In fact, polling is an emulation of a connection. It's not like because some clients are polling, that all clients are notified. Similarly, when some clients open a connection for push notifications, not all clients are notified. This is very poor advise that invites throwing resources out the window. Being bombarded with 10000 requests per second is virtually never cheaper or otherwise better than maintaining 10000 open sockets.
1d
revised Can a closed-source programming language survive?
added 1 character in body
1d
answered Can a closed-source programming language survive?
Jul
14
comment “Cross-cutting” domain in DDD
@RobertHarvey: Is that a comment or a question? ;)
Jul
13
awarded  Good Answer
Jun
28
comment Checked vs Unchecked vs No Exception… A best practice of contrary beliefs
Much of the noise you speak about disappears if you have type inference. The error types are then propagated through your system. Much like with unchecked exceptions of varying type, but type safe.
Jun
1
revised What is O in Big O?
added 14 characters in body
May
17
awarded  Good Answer
May
9
revised Are abstract classes / methods obsolete?
added 25 characters in body
Mar
16
answered Why are Python's package names not creative?
Mar
7
comment What exactly is the Garbage Collector in Java?
@assylias: You have absolutely no numbers to back that up. I would also point out that object pools are common place in Java for performance critical sections. And that the non-determinism and blocking of conventional GC can become an issue just as easily. GCs are one of many choices of dealing with memory management. There's really no need to glorify any of them.
Mar
7
comment How is the publish-subscribe pattern different from gotos?
@MichaelT: For an overwhelming majority of cases, there are alternatives to goto that make it easier to reason about code. There's no harm in appreciating that fact. Harm is done only if you don't use goto when warranted (which usually it isn't), or if you use goto carelessly. I believe Apple showed us a good example of the latter.
Mar
1
comment What exactly is the Garbage Collector in Java?
@Oded Or maybe you are reading too much into the question - which asks a whole lot of things (and hasn't been flagged "too broad" without reason). Your answer is misleading and superficial. And really seems just like an endorsement of your preferred style and platform. I felt it important to point out what's wrong with it. You're free to ignore my comments ;)
Mar
1
comment What exactly is the Garbage Collector in Java?
@Oded: Maybe you should reread your very first sentence.
Mar
1
comment What exactly is the Garbage Collector in Java?
You make it sound as though garbage collection were the only way to deal with these issues. And as if it had no down sides.
Mar
1
comment What exactly is the Garbage Collector in Java?
This illustrates it pretty well ;)
Feb
26
comment How to organise intermodule integration in a modular project?
How to organise a modular project? Think of each module as a project.
Feb
24
comment Does it make sense to break fluid interface if a bad argument is passed?
Compare the code you wrote with $object->name='foo';$object->number=12;$object->color='brown'; The latter is 1. shorter, 2. faster, 3. simpler.