Reputation
9,283
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
1 35 52
Newest
 Yearling
Impact
~367k people reached

May
26
comment Why C++ to write a compiler?
@Giorgio I did it as part of my degree. It's good fun. :)
May
26
comment Why C++ to write a compiler?
@Giorgio Really, you can write a compiler with mostly OOP or mostly Functional concepts, but the best solution would probably to use the best of both worlds. I wrote a toy compiler for a C-like language in Scheme once, and I wished that it had some Object Oriented features. Scheme handled some things very naturally (parsing and lexing comes to mind), but with others (specifically code generation and optimization), I found Scheme a little awkward. I though that some object oriented concepts would have really helped.
May
26
comment Why C++ to write a compiler?
@Giorgio Having objects helps in a lot of other aspects of compiler writing. For example, there's a lot of state a compiler has to deal with when optimizing and that kind of stuff lends itself well to OOP. Also, OOP and Functional programming can be quite complimentary, so just because the algorithms might be mostly functional, doesn't mean that objects won't help.
May
26
answered Why C++ to write a compiler?
May
25
awarded  Good Answer
May
25
answered Definition of “state”
May
24
revised Ways to version user generated documents
edited title
May
24
answered Effective way to gain practical knowledge
May
23
awarded  Nice Answer
May
23
comment What is the point of using the private access modifier for C# class members?
@LuciferSam At the core of it, you are removing the amount of language knowledge you need to have to read some piece of code, and this is a good thing. You make it explicit so that there is no doubt about the visibility. With things like var, the developer almost has look it up to proceed with the code, but with omitting data like private, a lot of developers might miss the implicit meaning you are giving the code.
May
23
revised Software Optimization vs. Hardware Optimization - what has the bigger impact?
added 318 characters in body
May
23
revised Software Optimization vs. Hardware Optimization - what has the bigger impact?
deleted 8 characters in body
May
23
answered What is the point of using the private access modifier for C# class members?
May
22
comment Agile estimation with tech-debt
@MarceloOliveira yes, I think knowing the code-base will help you make better (more accurate) estimates. You probably won't have to do this every single sprint, for every single story, but it might help for the first few weeks of estimating.
May
22
answered Should we avoid object creation in Java?
May
21
answered Agile estimation with tech-debt
May
21
awarded  Enlightened
May
21
awarded  Enlightened
May
18
awarded  Good Answer
May
18
awarded  Nice Answer