Skip to content

Code Monkeyism - Stephan Schmidt
Syndicate content
Updated: 2 hours 37 min ago

Better Configuration Files

Thu, 09/02/2010 - 12:45
Over the years I have seen many configuration files. Most of them were unusable. There are many reasons for unusable configuration files. What I’ve learned from looking at large configurations are those main points: 1. Values Often configuration files use the wrong values. Developers tend to use true/false for switching options on and off. track-users = true The [...]
Categories: Programming

Interface vs. Implementation Dependencies in Java

Tue, 08/24/2010 - 15:58
I often use the notion of interface and implementation dependencies, where interface dependencies are mostly always smaller. I think this is a very important concept to understand for Java developers, and although it seems obvious and self evident, many developers do not think along those lines and still couple classes too tightly. Take this example: class CassandraStorage [...]
Categories: Programming

Singletons without Singletons: Scala Type Classes

Mon, 08/23/2010 - 16:07
I was using Guice in a project recently. Objects which did not come out of Guice got their dependencies not injected. So I had a global singleton where objects could get their dependencies. Yeah yeah I know singletons are bad and stuff. It would be nicer to let Guice handle it all, but sometimes this [...]
Categories: Programming

Interview with DSL, NoSQL and Scala Practitioner Debasish Ghosh

Mon, 08/16/2010 - 16:01
This interview is with Debasish Ghosh. He’s writing the successful blog Ruminations of a Programmer with the tag line “A programmer’s blog – will deal with everything that relates to a programmer. Occasionally, it will contain some humour, some politics and some sport news.”. Name: Debasish Ghosh (dghosh@acm.org) Blog: http://debasishg.blogspot.com Twitter: @debasishg Github: http://github.com/debasishg Tell us something about you (what [...]
Categories: Programming

Continuous Deployment Setup at 2morethin.gs

Wed, 08/11/2010 - 11:39
I’ve set up continuous deployment for 2morethin.gs. Continuous deployment means that as soon as a developer finishes work, his code is pushed to the website. IMVU does it, as does Wordpress.com and kaChing. This post should show you that there is no magic in continuous deployment, everyone can do it. Why would one want to drop [...]
Categories: Programming

Java Interview Question: Synchronized

Wed, 08/04/2010 - 17:02
I’ve written already about Java Interview Questions here, here and here. Another question I sometimes ask is about Javas synchronized keyword. Can you tell me in which different ways one can use synchronized in Java and which are the pros and cons? There are two ways to use synchronized, as a method modifier and as a [...]
Categories: Programming

How to Recruit a Frontend Hero – Interview Question Series

Mon, 08/02/2010 - 19:08
This is the first guest post on this blog. Sebastian Deutsch (@sippndipp) was kind enough to help me with this frontend topic. Sebastian Deutsch is one of the founders of 9elements.com. 9elements is a small software boutique with a strong focus on design that loves to build web applications Recruiting a frontend developer for a large [...]
Categories: Programming

Adding Hardware is not Always the Cheapest Option

Mon, 07/26/2010 - 17:28
If your application grows and you need to support more customers, there is the common wisdom to buy more hardware. Or solve performance problems with more hardware. But the simple math says there is a point where investing in software or OS optimization is much cheaper than buying more hardware. There are essentially three ways [...]
Categories: Programming

Actor Myths

Thu, 07/22/2010 - 06:02
Actors are the new concurrency. They are everywhere. People make bold claims about actors, and while I do not agree with many of them, two in particular I regard as myths. Here they are: Actors are a shared nothing architecture Actors are easier to get right because of their shared nothing architecture I know I’m alone with calling [...]
Categories: Programming

This Function is Not Tail Recursive

Mon, 07/19/2010 - 18:52
Tail recursion seems to be an easy concept, but most people get it wrong – including me. Reading the latest German Java SPEKTRUM, I’ve found an article about parallel multicore development by Kornelius Fuhrer. One paragraph was about functional development and tail recursion. First he claims tail recursion makes functions 100% parallizeable (I guess broadly [...]
Categories: Programming

Want to Become a Startup CTO?

Fri, 07/16/2010 - 16:21
During the dot com bubble, I was a founder and startup CTO. At the beginning I wondered what to do as a CTO. There were many conflicting views on that position. From programming to vision, from technology to processes, from tools to people. After some time and more years at managing development teams and departments, [...]
Categories: Programming

Facebooks BigPipe Done in Java

Mon, 07/12/2010 - 16:48
BigPipe is a way of thinking for web pages. It introduces the concept of pagelets, small parts of the website. BigPipe was implemented at Facebook: BigPipe is a fundamental redesign of the dynamic web page serving system. The general idea is to decompose web pages into small chunks called pagelets, and pipeline them through several execution [...]
Categories: Programming

Facebooks BigPipe Done in Java

Mon, 07/12/2010 - 16:48
BigPipe is a way of thinking for web pages. It introduces the concept of pagelets, small parts of the website. BigPipe was implemented at Facebook: BigPipe is a fundamental redesign of the dynamic web page serving system. The general idea is to decompose web pages into small chunks called pagelets, and pipeline them through several execution [...] 15
Categories: Programming

Scala is Unfit for Serious Development

Sat, 07/10/2010 - 06:39
Updates: 1. I do love Scala as proven by this blog 2. I’m critical of the things I love 3. I’m ok with a language that is marketed as a research language, I’m not ok if this language markets itself as post functional, the next big thing and a Java successor. Update 2: Community response as [...]
Categories: Programming

Scala is Unfit for Serious Development

Fri, 07/09/2010 - 09:51
Updates: 1. I do love Scala as proven by this blog 2. I’m critical of the things I love 3. I’m ok with a language that is marketed as a research language, I’m not ok if this language markets itself as post functional, the next big thing and a Java successor. Update 2: Community response as [...] 180
Categories: Programming