8,816 reputation
23655
bio website
location Cambridge, United Kingdom
age 29
visits member for 4 years, 3 months
seen 20 hours ago

I’m a bioinformatics PhD student at EMBL-EBI and the University of Cambridge but I’m originally from Berlin.

My programming interests span from C++ over .NET and dynamic languages all the way to XHMTL/CSS and R.

I’m mainly working on genomics using high-throughput sequencing data. My thesis is about the regulation and expression of non-coding RNA (especially tRNA) in mammals.

Here’s my …

twitter-pic Twitter account
g+-pic Google+ account
github-pic Github account
cv-pic Resume


Nov
13
comment Why are pointers not recommended when coding with C++
@VF1 std::unique_ptr. Also, why not ptr_vec? But usually a value vector with will still swap faster (especially with move semantics).
Nov
12
comment OOP CLI menu structure organization?
@Doval I’d argue that until C++11, C++ supported generic programming much, much better than OOP, simply because you cannot do OOP reasonably when you have to worry constantly about your pointers leaking. This has been somewhat alleviated but compared to other mainstream languages C++ simply sucks at OOP. Compared to almost all mainstream languages, C++ is the only one with reasonable generic programming support.
Nov
12
comment OOP CLI menu structure organization?
@Doval OCaml notwithstanding, C++ is simply the only actually used too which offers overhead-free abstractions. Yes, it kind of sucks but it also kind of works. Generic programming is used extensively in C++, and you can actually specify the interface if you’re not afraid of a bit of hackery (C++17 will hopefully make this much, much easier). “Templates are a bitch to work with” – right, but they are actually much simpler than they’re often made out to be. Not great, but a-okay.
Nov
12
comment OOP CLI menu structure organization?
@Doval Algorithm-based programming and the related generic programming. Read the interview with Alexander Stepanov, the inventor of the STL. The interview is quite long; the relevant part discussing OOP and generic programming is mainly in the middle; search for “object oriented” to jump there.
Nov
12
answered OOP CLI menu structure organization?
Nov
12
comment OOP CLI menu structure organization?
My point was (and remains) that moving everything from one function to another does not make sense. And that’s what you’re doing (modulo some unimportant stuff). And it really makes no difference whether it’s in a function called main or a function called run. In particular, having a function “a couple hundred lines long” is simply always bad. Likewise, having a class with only one member function just doesn’t make sense – just use a regular function instead, without the class.
Nov
9
comment What's wrong with statically linking the STL into multiple shared libraries?
@Sjoerd ah yes, of course. Thanks.
Nov
9
comment Including extra headers that I do not really need
“If you are unlucky, there might even be a small runtime-penalty on startup, shutdown and in memory-footprint for the program.” – this needs explaining, because there are very few situations that I can think of where this would be the case (and it’s unrelated to templates, and the same as in C).
Nov
9
comment What's wrong with statically linking the STL into multiple shared libraries?
I’m unclear what “string” refers to here. If the talk is of a std::string then the problem simply does not exist: either libB.so receives a copy of the string, with memory managed in its own memory, or it will receive a reference/pointer to the string in libA.so, and won’t attempt to remove the string from its own memory.
Nov
9
comment OOP CLI menu structure organization?
What benefit does it have, in your opinion, to move the code from one function (main) into another one (run)? For that matter, what benefit does using a class have here? The answer to both questions is, of course, "none". Merely moving a code into a class doesn’t make the code OOP.
Sep
30
awarded  Explainer
Sep
17
awarded  Yearling
Jun
24
comment What are the drawbacks of immutable types?
@MainMa The example does not represent the best available approach though. The immutable code can be made (almost) as short as the mutable one, and many examples are indeed shorter then their mutable counterpart.
Jun
24
comment What are the drawbacks of immutable types?
“It requires more work” – citation required. In my experience it requires less work.
Jun
24
comment Project based prefix for class names
Your project leader is replicating the functionality of namespaces, badly. They gain nothing by doing so, and potentially lose. Shouldn’t this be an absolute no-brainer?
Jun
23
awarded  Nice Answer
Jun
10
awarded  Nice Answer
May
8
awarded  Good Answer
Apr
28
awarded  Guru
Apr
1
awarded  Enlightened