8,973 reputation
13452
bio website oleksiderkatch.blogspot.com
location Waterloo, Canada
age 24
visits member for 2 years, 10 months
seen Dec 12 at 14:55

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
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
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 Show “hobby” project during the interview?
May
22
answered Should we avoid object creation in Java?