Tuesday, September 21, 2004

Don't be afraid of mistakes

Without doing mistakes, one can not learn, simply keep the vector of change in mind but never strive for the perfect code or design patterns.. in general i am estimating i will erase half the code if i am coding a brand new thing... and always start with a google search.. javaalmanac.com is a good start as well

Monday, September 20, 2004

JetBrains OMEA

My thirst for information management never ends.. So here is Omea from fine folks of JetBrains(the makers of IntelliIDEA) Unfortunately the trial demo would not work with "your license expired" message.

It was one of those Mondays.
i have begun writing a PLC emulator as a servlet/JSP, that refreshes periodically and behaves like a PLC.


Saturday, September 18, 2004

Novel openings need to be first quality

like Tolstoy's famous first sentence in Anna Karenina ("Happy families are all alike; every unhappy family is unhappy in its own way")
from here


Source
From Back When We Were Grownups by Anne Tyler: Once upon a time there was a woman who discovered she had turned into the wrong person.
From The Call of the Wild by Jack London Buck did not read the newspapers, or he would have known that trouble was brewing, not alone for himself, but for every tidewater dog, string of muscle and with warm long hair from Pugent Sound to San Diago.
Notes from Underground by Fyodor Dostoyevsky submitted by Nick Roumel I am a sick man. ... I am a spiteful man. I am an unattractive man. I believe my liver is diseased. However, I know nothing at all about my disease, and do not know for certain what ails me. I don't consult a doctor for it, and never have, though I have a respect for medicine and doctors. Besides, I am extremely superstitious, sufficiently so to respect medicine, anyway (I am well-educated enough not to be superstitious, but I am superstitious).

A Tail of Two Cities by Charles Dickens submitted by Andrew Campbel It was the best of times, it was the worst of times, it was an age of wisdom, it was an age of foolishness, it was an epoch of belief, it was an epoch of incredulity, it was a season of Light, it was a season of Darkness, it was the spring of hope, it was the winter of despair . . .

Peter Pan by J.M. Barrie submitted by Jim Richwalsky All children, except one, grow.


and i saved the best for last
Middle Passage by Charles Johnson submitted by Alexa New "Of all the things that drive men to sea, the most common disaster, I've come to learn, is women



Prevayler

i need to be able to save the snapshot of our plc integration system,
however i cant really anticipate what exactly i need to save. so i opted for saving a java object as BLOB object and updating it as necessary. unfortunately as fields are added to it, serialization schema complains. perhaps i will store attributes as a hashmap and be done with it. Then came Prevayler to my attention, why on earth do i come by elegant solutions after tackling problems?

Using Prevayler will be a risk, because our system will heavily use SQL for reporting. No one gets fired for sticking to Oracle and SQL.

Friday, September 17, 2004

AVK

Lately i am consulting for a web application project that needs to be deployed on IBM OS/390 Websphere 5.0. Database is also on same OS(DB2 v7). First it took them a long time to define a simple datasource properly. Secondly they did a bad job of migrating our test database to production database. The database encoding they used is Cp1026 (IBM LATIN5), needless to say i opted for UTF-8 during development. Well to keep a long story short this weekend i have to modify the data access layer to do encoding conversion as it reads and writes. thanks to our flexible DAO layer, i need to edit a single class. i miss unit testing in those cases.
i will also use SUN's Application Verification Kit to validate the project to keep IBM's mouth shut.
A busy weekend awaits me.

Java Tiger

Lately i have been toying with Tiger's new features. Autoboxing is cool for sure, and generics can be useful at times. For a developer never written in C++, i learnt to live without it.
Really using MVC, and interface based programming i am quiet happy. For me the major improvements are the Swing /performance improvements. Rich client space will be the next battlefield of .NET and Java. Armed with Longhorn buzz and enjoying Windows integration .NET is close to finish. However healthy competition in Java space could push up.
What is more, for me desktop is shifting towards cellphone monitors, J2ME is running well ahead there.
Anyway XML based GUI definitions are the way go. Then specific renderers can be written to output to html, swing or .NET who knows. Swings MVC paradigm fits into stateless HTML pages so well. Web applications tend to keep state information on server(sessions), Swing lets the same with model objects. At least the way it should be done is so. The only gap is event handling, and JSF nicely bridges there with its component oriented architecture.

Well here are my random thoughts at the end of a week.
This weekend i will be coding to integrate a web app with production line controller.
i hope to investigate JasperReports and WebWork 2.1.



information management

After my laptop is broken, i lost many bits of precious information(links contacts tips and tricks i have collected over time)
i always thought Confluence like tools would save me big time.
Today i seen onfolio, an information management tool. i need such a tool. even imagining developing a fraction of a such a tool is fantastic. open source alternatives are more than welcome.

Gmail

i got my gmail account with an invitation from a friend.
unfortunately my preferred username was already taken, so i had to go with uysal.kara@. i can live with that. The user interface is pretty slick and javascript is all over the place.
made me wish i had the time and patience to learn about javascript in deep.