Panasonic Youth rob sanheim writes about software, business, ruby, music, stuff and things



Posts Tagged Java

So if WebWork uses DWR & Dojo, and Struts is becoming WebWork…

So, WebWork 2.2 was just released, which makes heavy use of DWR and Dojo javascript framework. Struts is going to be merging with WebWork as Struts Action Framework. So does that mean that in a couple years everyone running Struts 2.0 will be using (or at least be able to use) Dojo + [...]


First No Fluff Just Stuff session of 2006 posted

The first NFJS show has been posted for 2006 for Milwaukee on Feb 24-26th. The full session listing has quite things that I either missed last year or are just new:

Programming Java Concurrency - as I mentioned earlier, concurrency is something I would really like to expand my knowledge on in 2006.
Unit Testing Best [...]


Keeping enums/constants DRY?

I'm pretty sure there is no way to do this with Commons Enum (yes, I'm stuck on 1.4) using plain ole java. Say you just want every enum to have the same attribute name as its variable name, like so:
PLAIN TEXT
JAVA:

private static int index = 0;

        private final static SalesOrgType DISTRICT [...]


The problem with JavaSchools according to Joel

Java is too easy to be the primary language taught in university computer science, according to Joel. I agree. Good thing I caught the last wave of C++ courses at my school, so I at least learned pointers.
update: Chad weighs in on it, asking where is the room for non-engineers:
What worries me is [...]


Monday wrapup: Eckel on Ruby, real-world Rails productivity, the Ajax Experience…

Bruce Eckel wrote on "The departure of the hyper-enthusiasts" and set of a flurry of dicussion amongst DHH, Curt, and Patrick, among others.
I think Curt nailed the most important point that Bruce made - forget the language wars, lets just talk about the best way to solve these problems without all the baggage from [...]


Logging in an abstract base class - violates good OO?

Scenario: you are starting a project and have created three classes that all do their own standard log setup, creating private static logs or whatever. Does creating an abstract base type with standard logging functionality violate YAGNI, the single responsiblity principle, or something else?
A couple immediate problems I can see with the [...]


Keep your sql and your java code separate

(assumption: using Spring JDBC or some other thin JDBC layer, obviously this does not apply to ORM)
At what point in the process do you decided to take all your sql out of your data access layer and put it into plain property files or sql files? This gives you the PowerOfPlainText but adds an [...]


Using reflection to determine method overloading

A thread on the DWR mailing list about properly detected overloaded methods with covariant types in JDK5 got me curious. So I put together some quick code to determine if one method overloads another. It works for covariant types, but I didn't add support for generics. I'm not sure how much more [...]


DHH on Rails and Django

The creator of Rails talks about the recent Snakes and Rubies event in Chicago this last Saturday. The thing that really strikes me (besides the very cool presentation [PDF] David gave) is the Django vs Rails code:

class Project(meta.Model):
project_manager = meta.ForeignKey(ProjectManager)
milestones = meta.OneToOneField(Milestone)
categories = meta.ManyToManyField(Category)

p = [...]


← Before After →