526 reputation
310
bio website honzabrabec.cz
location
age 22
visits member for 2 years, 2 months
seen yesterday

Student of Computer Science at Czech Technical University in Prague.

In software development since 2001.

I love programming and mathematics.


1d
comment What GUI is used in industry for c++
possible duplicate of What popular program is used to develop GUI in C++?
May
29
comment What is a real-world use case of using a Chomsky Type-I (context-sensitive) grammar
@MattFenwick I think your XML example doesn't show the true reason why XML is not context-free. The reason is that arbitrary tag names are allowed. If only a specific set of tags was allowed XML would be context free.
Feb
25
comment Apple eating problem
I don't find this answer helpful. Giving a link to "graph theory" is like giving a link to "programming".
Nov
26
comment Should a class know about its subclasses?
I don't think it is an exception. The class still doesn't know anything. The documentation knows.
Aug
19
comment Is it good practice to create convenience delegate methods?
... but I admit I've asked the question with the interest to the general case and for that you have replied well, so +1
Aug
19
comment Is it good practice to create convenience delegate methods?
I do not want to build the general JsonSerializer because I will not need it. I know that I need to serialize just this one concrete class in my project. I also don't like the DI in this case. If I would have already exposed the _CorpusJsonSerializer I would probably abandon the convenience method completely because then it would have not enough added value. I was just trying to isolate the serialization behaviour from the Corpus so the class isn't too large. Do you find the circular dependency bad even in this concrete case where one of the classes is in the same module and is private? ...
Aug
5
comment Do pointers really exist in Java?
@MichaelBorgwardt Pointers were invented before C existed and the term really isn't C specific but as it is used it always has some connection to memory addresses. Just use the term 'reference' when talking about this concept in Java there are too many differences.
Aug
1
comment Clarification of “avoid if-else” advice
So you just put the negated condition into the else if? That doesn't seem too DRY to me. And there is also the risk that if you change the condition you forget to change the negated one. I do not like it.
Jul
31
comment Pure C Vector Implementation
You could also add something about spatial locality to your list :) I don't want to write it in a separate answer but I think it should be mentioned.
Jul
29
comment Does modular programming affect computation time?
While I agree that most of the time it is premature optimization, I think that your argument with the time is bad. Time is relative in different situations and you can't simply calculate like you did.
Jul
23
comment Are algorithm questions good interview questions?
codinghorror.com/blog/2007/02/why-cant-programmers-program.html
Jul
22
comment Have Superclass Contain List of Subclass?
He is keeping the Class objects not the instances of the subclasses so there should be no problem with GC imho. However I would change the collection to Set instead of List to avoid duplicities.
Jul
3
comment When to decide to introduce interfaces (pure abstract base classes) in C++?
I am asking just hypothetically so I can not respond to the last paragraph. Of course, you are right and I expected someone will play the premature optimization card against me :)
Jun
27
comment How do functional languages handle random numbers?
I am always glad to read answers like this :)
Apr
30
comment Where did the convention of naming command line arguments as 'argv' come from?
Always thought argv means "argument values" glad I learned something new :)
Apr
28
comment Coding style (do more, then simplify)
@dietbuddha The simplest code to write is not always the shortest :) Basically thats what this question is about.
Jan
18
comment Descriptive naming vs. 80 character lines
I prefer 80, because I can then easily open 2 files side by side on my notebook.