7,458 reputation
1939
bio website kohne.org
location North Wales, PA
age 45
visits member for 4 years, 1 month
seen yesterday

Embedded Software Developer


Nov
21
comment type infered statically typed languages?
@Bakuriu - Thanks. Interestingly, I've been doing C so long that I failed to see pointers as a breach of the type system. Walk the edge of a pit long enough and you forget how scary it is.
Nov
20
comment type infered statically typed languages?
I'm fuzzy on this one: In what way is C not type safe by your definiton (always has defined behavior)? I thought C had defined behavior for pretty much everything in the type system (not necessarily GOOD behavior, just I though it was defined).
Oct
30
awarded  Nice Answer
Oct
26
answered Why static members can't be abstract and don't implement polymorphism?
Oct
24
awarded  Yearling
Oct
1
comment Unit test private method in c++ using a friend class
@BЈовић - no. Just because you don't like the OP's dev process doesn't make the question invalid.
Sep
15
answered How to mark code lines licensed on MIT?
Aug
18
answered Billing from card directly
Aug
13
answered Doesn't an event bus affect global state?
Jul
28
comment How do you deal with clients asking for manual data edits in the database?
You can refuse. And you can be fired. They need the data fixed because they need to run the business. What you need to do is to convince someone in a position to direct development that these interruptions are costing more than just fixing the thing would cost.
Jul
22
comment Is “continue” and “break” in loops antipattern/bad practice in Java?
@kevincline - Right. But if you've got a long loop body, you've ALREADY got a problem. Even without continue, a long loop body is hard to read. I'm saying that with a short loop body, continue can be used in a readable manner.
Jul
22
comment Is “continue” and “break” in loops antipattern/bad practice in Java?
@CsBalazsHungary - If your loop body is long, and sprinkled with several continues and breaks, it will CERTAINLY hurt readability. But if you keep the loop body short and are careful how these things are used, then it's no problem to use them while keeping code readable. As usual, it's a balance that you have to strike for your code.
Jul
16
comment Static vs. non-static? (with non-OOP functions)
Note that in certain historical scenarios (I'm thinking early days of the PC with segment registers, and all that they imply), making the function static to a file might allow the compiler to use a nearer form of jump to get to, therefore shaving a byte or two, and perhaps a cycle or two on calls to the function.
Jul
13
comment How to handle divide by zero in a language that doesn't support exceptions?
@Philipp - One thing about IEEE 754- there's few enough professional programmers that really understand it (I certainly only know the most basic things about it), and if the language is intended for non-programmers, 754 is probably too much to ask of them. In fact, I'd go so far as to advise that any language targeting non-programmers provide a decimal representation for numbers instead of the base-2 representation that most of us use for floating point - it's got issues of course, but it leads to less surprises for the unwary.
Jul
11
revised How to name filename parameter to make clear it should contain full path?
Removed shortened URL
Jul
11
revised What does a code review look like?
Unshortened URL
Jul
11
revised Why do good programmers have ugly websites?
added 84 characters in body
Jul
11
revised How would you rank these programming skills in order of learning them?
Unshortened URL
Jul
11
revised Are separate parsing and lexing passes good practice with parser combinators?
added 22 characters in body
Jul
11
revised Is this a viable approach to resolving multiple matches in a lexer?
Unshortened URL