1,064 reputation
1818
bio website facebook.com/felix.dombek
location Berlin, Germany
age 30
visits member for 4 years
seen yesterday

Student of Computational Linguistics B.Sc. at the University of Potsdam, Germany

Programmer at a small backup software company (Visual C++, Python, some VB6 and PHP)


Aug
22
comment Is there a difference between fibers, coroutines and green threads and if that is so what is it?
+1 I hadn't even heard about Green Threads.
Jun
12
comment Ways to organize interface and implementation in C++
This answer would be even better if you elaborated a little on static compilation/linking (I didn't know it back then!)
Jul
2
comment Why do most programming languages only support returning a single value from a function?
For example, in C++ COM programming, many functions have one [out] parameter, but virtually all return an HRESULT (error code). It would be quite practical to just get a pair there. In languages which have good support for tuples, such as Python, this gets used in a lot of code I have seen.
Sep
24
comment Case insensitive keywords in a language
VB6 actually uses a kind of hybrid approach: You can write keywords and identifiers any way you want and the IDE immediately converts them to the stored way. (You can even write "endif" and it will be converted to "End If".)
Sep
2
comment Grading an algorithm: Readability vs. Compactness
I actually find the second version more friendly. In the first one you have duplicate code and it is just much more to read.
May
9
comment Working machines of developers - in what ways are they usually standardized or restricted?
@Telastyn: each department will have their own standard; until now we have only produced Windows software, but of course Macs would be different.
Nov
15
comment Is there a language or design pattern that allows the *removal* of object behavior or properties in a class hierarchy?
One could of course just throw a NotSupportedException from Penguin.fly().
Oct
20
comment Why c++? Where to start?
Why –1? I was looking forward to an answer evaluating the usefulness of Python for desktop programming; is this a bad answer?
Oct
20
comment Why is Scheme my first language in university?
@SK-logic: So you name one thing where the recursion is hard to eliminate. Big deal. I don't doubt that there are more use cases. In fact, I never learned Lisp, but from my experience with Prolog (which also employs recursion almost exclusively), you don't use the same approach in C++. People don't process linked lists recursively even if that seems logical. People don't do wildcard matching recursively even though you might find it more readable and easier to implement. And so on. De-recursivizing recursive algorithms makes constant memory usage possible, that's why it's important.
Oct
20
comment Why is Scheme my first language in university?
@SK-logic: I wrote that with respect to the "Lisp dialects follow the mathematical paradigm of algorithms more closely" answer. This sentence is correct, and what I wrote about C++ basically follows from this. Maybe not all mathematical ideas are discouraged in C++, but there are, for instance, some good reasons to use iteration instead of recursion. C++ makes it entirely possible to write a program in the same manner as you would write a basic Lisp program; in practice, this is hardly a good idea.
Oct
20
comment Why is Scheme my first language in university?
I agree that Scheme is a great language and it's a good idea to learn it. However, let's face it; almost every real-world programming job employs an imperative language; most really serious programming jobs require C++, and C++ programmers usually actively discourage you from using all the nice mathematically-based ideas for program design for one reason or another. Recursion won't play a large role in your imperative programs.
Sep
22
comment How do you learn Regular Expressions?
+1 because you address several things that are good to know when using regexes; I disagree however on your judgement that it's not necessary to know the insides. For drilling, you are totally right; in computers, I have found that sooner than I think at first, I get to the point where I have to understand something's insides to master its application – whether it's C++ (compilers), web servers (HTTP), or regexes (automata theory). Not to the point where I become an expert, but a good understanding of the underlying principles is often the quickest way to learn.
Sep
22
comment How do you learn Regular Expressions?
The mentioned "regex processor" actually doesn't implement disjunctions, and with the given approach, it's very hard to add them. I like the book, but this is one thing I was disappointed with.
Sep
12
comment Teaching C++ to first time high school students: Where to draw the line?
+1 ... and I LOL'd hard on "they introduce std::cout just before return (page 3)" gotta peek into that one :)
Sep
12
comment How to teach a script to detect sarcasm?
Here are two current scientific papers about developments in sarcasm detection. This is cutting-edge stuff, not production ready and very difficult to copy, such as (unfortunately) most current developments in NLP: paper from Jerusalem Hebrew University, paper from Valencia Technical University. Both approaches use statistical inference on hand-annotated corpuses of Amazon product reviews.
Sep
12
comment How to teach a script to detect sarcasm?
@DaveNay: The statement is missing a closing bracket and would be better expressed as containsSarcasm = string.Contains("<Sarcasm>") anyway. However: if someone tackling an open problem, it's bad to ridicule of OP's request, especially given that you're not knowledgeable in this field. Computational linguistics exists since the 1950s and has yielded some interesting insights into sentiment analysis, semantic role labeling and other semantic techniques which might be employed for this.
Apr
10
comment Does MS Visual Studio 2010 contain icons for source files?
Well, the only script icon in there is a VBscript icon which look exactly like the Windows 95 scripting host icon, but anyway, it's good to know this.
Mar
11
comment Is Prolog professionally useful?
Good question. Prolog is the first programming language taught in computational linguistics at Uni Potsdam, but after that we don't really use it that much, even if we're quite good at it. It's a pity. Every time I see a question such as "How do I use an accumulator" or "How do I get all possible answers" on StackOverflow, it makes me wonder where the actual professional users are – most stuff seems like homework. Or maybe Prolog proficiency turns you into a robot who never has questions.
Feb
17
comment Ways to organize interface and implementation in C++
That's not what my lecturer did. He spent the whole first C++ semester doing best practices and no STL/Boost at all, just implementing string classes and smart pointers and some automata things.
Feb
7
comment Worst practices in C++, common mistakes
That's what I mean too. Do you have an example?