1,057 reputation
46
bio website AdamJaskiewicz.com
location Ann Arbor, MI
age 30
visits member for 3 years, 10 months
seen May 11 '12 at 16:31

Aug
10
awarded  Editor
Aug
10
revised Should the internal naming (classes, methods, database tables, etc) of entities be changed if the marketing and UI naming changes?
added 149 characters in body
Aug
10
answered Should the internal naming (classes, methods, database tables, etc) of entities be changed if the marketing and UI naming changes?
Aug
8
comment Excessive use “final” keyword in Java
@Robert It does not. You can think of final in Java like "readonly" in C#, only you can apply it to local variables and method parameters.
Aug
8
comment Excessive use “final” keyword in Java
Definitely agree that it should have been the other way around. My coding style uses lots of stuff that could be final, but I don't make it final because it makes the code look cluttered and messy. I try to keep methods short so that it's obvious what's going on, though.
Aug
5
comment Excessive use “final” keyword in Java
@nerdytenor Yes and no. UnmodifiableCollection is only a wrapper, so it will only protect the underlying collection if ALL interaction goes through the collection returned by unmodifiableXXX. If any thread still maintains a pointer to the backing collection, it can still modify it.
Aug
4
comment Why would a company develop an atmosphere which discourage code comments?
Your SVN/git/whatever logs should cover what you changed it from and when, so there's no need for that. It's pretty obvious that you're setting foo to 1; I'd call foo something like "bizRuns" and include a comment such as // biz should only run once [ticket 1234].
Aug
4
comment Excessive use “final” keyword in Java
But the collection itself is still mutable. If another thread holds a pointer to the same map that is being passed into getValuesForKeys, it can add and remove elements at will. Likewise with whatever Collection keys is pointing to can be modified in another thread, likely causing a ConcurrentModificationException to be thrown by the for-each.
Aug
4
awarded  Commentator
Aug
4
comment Excessive use “final” keyword in Java
But it isn't immutable; only the reference is immutable. You can still modify the contents of the collection, but you can't reassign the reference to point at another collection.
Aug
4
comment Why would a company develop an atmosphere which discourage code comments?
"Code Paragraphs" should be extracted into their own methods, and given descriptive names.
Aug
4
comment TDD negative experience
I mean "up front" in the sense of "at the start of the project". Of course you plan before you start coding a user story; just not six months before. If you do, your plan is out of date by the time you can fit the story into an iteration. Do people really jump straight into coding on the first day of an iteration? I mean, if you have some simple stories that don't require much in the way of design, sure, but in my experience, the first few days are mostly spent sketching stuff on a whiteboard or legal pad.
Aug
4
comment TDD negative experience
No, it means you don't plan up front. You do your planning as you need it, during the iterations/sprints.
Aug
4
comment TDD negative experience
@Aaronaught Agile doesn't mean no planning, it means just in time planning.
Jul
29
answered How to significantly improve Java performance?
Jul
27
comment Documenting a REST interface with a flowchart
The server in a RESTful architecture is stateless, however, the system itself is not. State is stored at the client, and possible state transitions are encoded within the representation of a resource so that the client can initiate the transition to a new state by making a request to the server. I think a state diagram is quite effective at communicating the overall system state, even if it doesn't precisely document the requests and responses between the client and server components.
Jul
22
comment Bypass HR to get an interview
+1. This is also an issue in the Java world, where your experience in "Java EE" might not match up with the HR filter's search for "J2EE".
Jul
22
answered Were you able to implement design patterns in tight deadlines?
Jul
14
awarded  Teacher
Mar
21
awarded  Supporter