8,773 reputation
13351
bio website oleksiderkatch.blogspot.com
location Waterloo, Canada
age 24
visits member for 2 years, 6 months
seen Aug 27 at 17:43

Aspiring software engineer for the healthcare industry. Currently studying Computer Science at The University Of Waterloo.

profile for Oleksi on Stack Exchange, a network of free, community-driven Q&A sites


May
29
awarded  Nice Answer
May
28
comment Stuck due to “knowing too much”
@MSalters I think Graham is referring to TDD, where you write a set of tests before the code. Then you write the simplest code that makes those tests pass. Then you refactor. Following this technique may prevent you from over-thinking your initial development since your goal is to make the test pass, not make perfect code.
May
28
revised Stuck due to “knowing too much”
added 9 characters in body
May
28
answered Stuck due to “knowing too much”
May
28
comment Why C++ to write a compiler?
@delnan There's probably plenty more that I could've done to make it readable. I guess I'll know for next time. :)
May
27
comment Why C++ to write a compiler?
All that I meant to imply was that it felt more natural to do something like pushing out machine instruction bytes (which felt like a low-level operation) in a low-level language. When I did it with Scheme it felt awkward. Because manipulating bytes and pushing them out is a lot more common in C, than Scheme, there were better libraries available that made the code much cleaner. Perhaps the code might not have been as awkward in other high-level, or perhaps that I just didn't know Scheme well at the time.
May
26
comment What are some ways to maintain codebases written in two languages that implement the same logic?
Just make absolutely sure that you need that performance. Maintaining two versions of a program (especially one this complex), is a colossale effort. Make sure you absolutely need to do this in C++, because your are going to pay a huge cost in time and effort to do this in two languages.
May
26
comment What are some ways to maintain codebases written in two languages that implement the same logic?
Do you really have to re implement it in another language? Why not use just Java?
May
26
awarded  Nice Answer
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