Skip to main content
Tyler's user avatar
Tyler's user avatar
Tyler's user avatar
Tyler
  • Member for 14 years, 2 months
  • Last seen more than a month ago
awarded
awarded
awarded
comment
Shouldn't we count characters of code and comments instead of lines of code and comments?
There are lots of bad reasons to count lines of code, but lots of good reasons too. If you're porting some old code from one language to another, the more LOC in the old code, the longer it will probably take. If you're hunting for a bug, the more code you have to look through to find it, the harder it might be. Etc. It wasn't asked super eloquently but I think it's a highly constructive question.
awarded
awarded
comment
is there a programming language designed to express data combinations?
Haskell has a way to express ranges, pretty similar to the Bash syntax from choroba's answer.
comment
How to justify migration from Java 6 to Java 7?
I think the idea is that less boilerplate means it's easier to get right.
Loading…
answered
Loading…
awarded
comment
Why did memory-managed languages like Java, Javascript, and C# retain the `new` keyword?
It's not constructive to ask why a language is designed the way it is, particularly if that design asks us to type four extra characters for no obvious benefit? What am I missing?
awarded
comment
Code Smell: Inheritance Abuse
Just for the record, Haskell is 10 years older than C# :)
comment
OO Design, how to model Tonal Harmony?
It seems to me that it might be helpful to think about what you want to do with these note/chord/scale classes. Are you going to produce sheet music? Midi files? Do transformations on scores (transposition, doubling all the note lengths, adding trills to all whole notes above a certain note, etc.)? Once you have a possible class structure, think about how you would accomplish those tasks. If it seems awkward, maybe you want a different class structure.
Loading…
comment
Why does Java allow to implement different interfaces, each containing a method with the same signature?
If you highlight your code and click the {} button, then the site will format it to look like code.
comment
Why does Java allow to implement different interfaces, each containing a method with the same signature?
"If you consider it a design issue where one interface has one contract for that method and the other interface has other contract then not allowing it would not solve the issue." Why not? It would force you to rename one of the interface methods. If the interfaces are coming from third-party code, that might involving asking that third party to change it, but it would effectively solve the problem, wouldn't it?
1
2 3 4 5