3,641 reputation
824
bio website hierax.org
location Minneapolis, MN
age 35
visits member for 3 years, 3 months
seen Nov 20 at 20:28

I love software development, and technology of all kinds. I have a boy and a girl and a beautiful wife, all of whom I adore. I practice Southern Chinese Kung Fu, and hope that my kids will too. I write code and play boardgames in my spare time.

I currently work as a JEE engineer in Edina, MN.


Feb
13
comment J2EE - Session swap
To be clear: javax.servlet.Servlets get instantiated once and are used to service requests, so any member variables could be shared by multiple requests.
Feb
7
comment Are (mostly) client-side JavaScript web apps slower or less efficient?
@jwenting - filtering on the client or server is an architectural decision; not all client-side apps request tons of data and filter it on the client.
Jan
29
comment How to properly use Hibernate
@Aaronaught: Sorry, I should have been more clear. I was referring to the idea that a business logic layer should be decoupled from the persistence layer, i.e. the dependency inversion principle. Using a DAO as an abstraction over the ORM allows you to change which you use without affecting your business logic. This may be overkill, but I don't know the OP's situation.
Jan
28
comment How to properly use Hibernate
@Aaronaught - the main reason to wrap the Hibernate session in a repository or DAO abstraction is to avoid coupling your code to Hibernate.
Jan
20
comment Why should I use Bower?
Related: programmers.stackexchange.com/q/174959/34183
Jan
20
comment Why should I use Bower?
I haven't used it all that much yet, so I can only describe what I've found useful so far. I'll update the answer.
Jan
20
comment Why should I use Bower?
I became aware of Bower when I bootstrapped an Angular webapp using the Angular generator for Yeoman. Trying that might give you an idea of how it can be used.
Jan
10
comment Is Convention Over Configuration “Knowledge in the World” or “Knowledge In Your Head”?
@JimmyHoffa - I'm curious to hear your thoughts on it.
Dec
11
comment Usage of magic strings/numbers
@StefanBilliet - not at all. My point is that readability is improved through consistency. The problem here is not the coding guideline itself, but a guideline taken to extremes through misunderstanding.
Dec
11
comment Usage of magic strings/numbers
The result of a judgement call can vary even between mature developers, so even arbitrary coding guidelines are meant to improve readability through consistency. This is unrelated to the fact that creating a constant NumberTen makes no sense.
Nov
20
comment Is it okay to test multiple similar files in one functional test
The if test at the end didn't make sense; fixed now. The getAllFiles() method would contain the logic to figure out what files need to be tested. I don't know of a way to create tests dynamically, but I'm sure you could do it with CGLib or similar if you really wanted to.
Oct
25
comment I need to create an employee schedule/appointments program, but I don't know how to set it up
Good point; I assumed 1 on 1 as well.
Oct
25
comment I need to create an employee schedule/appointments program, but I don't know how to set it up
I would keep two foreign keys on the appointments table: trainer_id, customer_id. An appointment is always exactly 1 trainer, and optionally 1 customer, so trainers have some set of appointment rows (created automatically each week/month based on settings?), and customers get linked to an appointment when they reserve one.
Oct
4
comment Java convention for if/else if order
When the difference in efficiency is negligible as in this case, readability is most important. Simplifying conditionals by extracting and naming their components is a great way to improve readability.
Oct
2
comment Refactoring two classes from third-party library that could have extended a base class
What's your goal for the refactoring? I can see that you might want to avoid writing too many copies of the two blocks shown in your question, but unless there are lots more object types that you want to abstract away, it doesn't seem like a very pressing problem.
Sep
30
comment Design Issue: Service layer/ trying to maintain RESTful architecture
Indeed. My earlier comment simplifies the topic, but I think my point follows from the idempotancy of PUT.
Sep
30
comment Design Issue: Service layer/ trying to maintain RESTful architecture
I don't have experience with this situation, so just a note: when the client knows the resource's ID (i.e. Customers/id, Orders/id), inserts/update should use PUT rather than POST. stackoverflow.com/questions/630453/put-vs-post-in-rest
Sep
27
comment Should I combine similar functions even though they are slightly different?
Using a boolean parameter is indeed not the best solution. I'll update the answer, although I think Carl's answer is more specific to the OP's question.
Sep
20
comment Correct comment to put for boolean function arguments that are “false”?
Good catch, thanks.
Sep
17
comment More efficient way to paginate search results
Please provide more detail in your answer about the content of the link. "Always quote the most relevant part of an important link, in case the target site is unreachable or goes permanently offline." programmers.stackexchange.com/help/how-to-answer