2,648 reputation
1722
bio website focuspocus.org
location Ireland
age 34
visits member for 3 years, 5 months
seen May 16 at 18:08

May
24
comment In languages that don't allow underscores in integer constants, is it a good practice to create a constant for 1 billion?
Awkward to read is much more of an issue than awkward to type.
Mar
5
comment Building automated unit tests for tools which don't have an xUnit implementation
I'm curious what language(s) the code you are talking about is written in, can you share?
Aug
8
comment Do I need to use an interface when only one class will ever implement it?
Creating an interface solely because of a limitation of your mocking framework seems like an awful reason to me. Using, for example, EasyMock mocking a class is as easy as an interface anyway.
Feb
28
comment Is there any reason to use “plain old data” classes?
Can't believe this answer has no votes (well, you have one now). This might be a simple example, but when OO is abused enough you get service classes that turn into nightmares containing tons of functionality that should have been encapsulated in classes.
Nov
18
comment Inspiring problems to show off the importance of regular expressions?
For more advanced stuff you can also (in addition to knowing regexs) use more specific tools such as logstash.
Nov
18
comment Why are public and private accessors considered good practice?
Then you need a Coordinate class ;)
Nov
18
comment Programming in academic environment vs industry environment
@FrustratedWithFormsDesigner I think there usuall is as teams tend to be larger, and there also tends to be a larger hierarchy of people that need to be briefed at some level. Small companies can't afford bureaucracy :)
Nov
18
comment Programming in academic environment vs industry environment
@FrustratedWithFormsDesigner I had more meetings in academia actually. Though I do work in a fairly lean small company that is low on formal process.
May
20
comment Why are there multiple Unicode encodings?
@jfs lol at managing to find something (love) even more complicated than character encoding to use as simple example. Now I'm really confused.
May
4
comment How do you get consistency in source code / UI without stifling developer's creativity?
Your issue may be more to do with the fact you have duplication in the code. e.g. can you extract the date code to one single piece of code that is re-used.
Apr
22
comment Is there a name for the concept of a hierarchy of many short methods in a class
thanks, this is the type of answer I'm looking for, I'd never heard that expression before, is it commonly used?
Apr
21
comment Is there a name for the concept of a hierarchy of many short methods in a class
Hmm the template method pattern is similar, but as I stated in my question, I think extracting methods in my case is the right thing to do from a readability POV even if they are private and are not to be overloaded. I'm asking if there's a well known principle that covers why this is.
Apr
21
comment Is there a name for the concept of a hierarchy of many short methods in a class
I know that what I am doing is the extract method refactoring, what I'm really asking is the name for the principle that makes it the right thing to do in my example. E.g. if I had duplicated code, I would also use the extract method refactoring but it would be because of the DRY principle.
Apr
19
comment Why does the Java collections APIs not have a last method?
@Peter urgh the only thing worse than not implementing getLast() is implementing it with a hack like get(-1).
Apr
19
comment Why does the Java collections APIs not have a last method?
The question specifically said ordered collections.
Apr
8
comment How to deal with IDE Addon creep?
why not just install them as you need them to start with?
Apr
4
comment Is it fair to charge again for checking why my code not working on client's server?
sounds like he paid you to convert his menu, but your work only converted your menu.
Apr
4
comment How do you convince management to “invest” in unit tests?
Just having them locally doesn't work well in a team environment with a shared code base, other people will keep breaking your tests with their changes.
Apr
4
comment What is the etymology of the phrase “Source Code”?
@FrustratedWithFormsDesigner I never said source code is directly machine understandable. I said it will be encoded to machine understandable instructions.
Apr
1
comment What is the etymology of the phrase “Source Code”?
@FrustratedWithFormsDesigner added it to the answer.