54,364 reputation
16118200
bio website
location Minneapolis, MN
age
visits member for 3 years, 1 month
seen 1 hour ago

1h
answered Should I use a source-to-source or a traditional compiler in order to develop my own Programming Language?
9h
answered How can I have objects interacting and communicating with each other without forcing a hierarchy?
15h
revised Why can't there be any implicit conversions?
edited body
16h
awarded  Nice Answer
17h
revised Why can't there be any implicit conversions?
Formatting fix
17h
comment Save flags in an int32
@JPtheK9 - you wouldn't have 32 booleans, you would have 32 enum values. At that point it is simply a matter of casting to/from the int/enum.
1d
answered Save flags in an int32
1d
comment Why can't there be any implicit conversions?
@piecrust - I expect because having it for unary functions only makes them special and would provide little benefit. And some languages think that the occasional runtime error is worth the brevity of code (or that their code is small/simple enough to make runtime errors not as troublesome).
1d
comment Why can't there be any implicit conversions?
@PieCrust - 123 + "456", did you want "123456" or 579? Programming languages don't do context, so it is difficult for them to "figure it out", since they would need to know the context that the addition is being done in. Which paragraph is unclear?
1d
answered Why can't there be any implicit conversions?
1d
comment Is there a name for the anti-pattern of over-using event busses for uncoupling?
It's also related to service locators, which are often seen as an antipattern. Instead of asking for an interface, your just sending messages/events into the void. Personally, I don't see this as a clear antipattern - the input/output messages are plenty easy to unit test and you sometimes need that level of decoupling.
2d
answered Difference between Single Source Of Truth and Single Responsibility Principle?
2d
comment Good c++ books for a non-programmer?
For what it is worth, C++ is (arguably) the worst programming language to start with. And no "experienced with algorithms and logic" isn't going to make the language any more forgiving of beginners, or erase any of its historically bad tutorials.
2d
comment C# console app which calculate a volume of a box
1. This isn't a site for "here's my code, fix it!" 2. You'll learn more if you figure it out for yourself 3. That's not how properties work, and if your learning source thinks so, you should burn it.
2d
revised Would it be good to have a readonly modifier for method level variables?
edited tags
May
23
answered How to design for good abstractions using algebraic data type?
May
23
comment Is is possible to write a “Brainfuck with variables” compiler?
Since Brainfuck is Turing Complete, yes, there is guaranteed to be a way around. That said, it might be ugly, and nothing springs to mind without modifying the target language slightly.
May
22
comment Does the company own my work?
@Josh - You were at one company, with which you made the above contract. They own your work. You then stole their work and formed a partnership with another company (in exchange for equity, salary, the benefits of partnership). Yes? "sell" might be pedantically inaccurate, but I wonder if your partnership would've been as valuable without it... Also, I question your ability to found/run a company without having a grasp of such straight-forward mechanics.
May
22
comment Does the company own my work?
I am not a lawyer, this is not legal advice, but yes - it looks as though they can sue the hell out of you, not just for the files, but for damages caused by you stealing that IP and reselling it to a competitor. These sort of contracts exist to prevent the exact thing you did.
May
22
comment Does the company own my work?
I'm voting to close this question as off-topic because we are (almost universally) not lawyers, and cannot provide legal advice.