tag:blogger.com,1999:blog-58144532009-02-21T09:10:22.108+05:30ReflectionsNeeleshnoreply@blogger.comBlogger30125tag:blogger.com,1999:blog-5814453.post-31680424187223695072007-04-03T22:36:00.000+05:302007-04-04T10:32:02.126+05:30ErlUnit : A Unit testing framework for ErlangWhen fiddling with Erlang, I found EUnit, a unit testing framework for Erlang. I tried it out, it did not work out of the box for me. I won't go in to the details of what went wrong. I was too lazy to fix the issues. So I started writing one myself. With contributions from Varsha(my wife) and Rajesh (of LJ), I churned out a simple unit testing Neeleshnoreply@blogger.com1tag:blogger.com,1999:blog-5814453.post-53133142216764648892007-02-23T14:50:00.000+05:302007-02-23T15:05:41.192+05:30Statistics on Python code in a projectI wanted to know the number of lines of python code in my toy django project, and could not find a nice tool that would give me that on linux. "find . -name "*.py" |wc -l doesn't do the job. As lazy as I am, I wrote a crude linecount program in python. The result is lc.py. The program takes the directory as an optional arg (defaults to current dir), finds Neeleshnoreply@blogger.com0tag:blogger.com,1999:blog-5814453.post-28279510777496480252007-02-22T10:52:00.000+05:302007-02-24T11:21:36.987+05:30Fiddling with Django Its been a few weeks playing with Django trunk. And a two more weeks than that, with Python. Initially, I was getting annoyed with the 'self'ishness of python. But got used to it. Python is refreshingly more powerful than Ruby,the only other dynamic language I know, IMHO. I won't go in to details of how, as this post is about Django. These are a few things I've started Neeleshnoreply@blogger.com1tag:blogger.com,1999:blog-5814453.post-1153066494400745942006-07-16T21:33:00.000+05:302007-04-12T12:55:25.319+05:30SQLRealm 0.1 availableFor the impatient, it is a custom realm for Tomcat (tested on 5.5.x) ,which supports arbitrart SQL queries to extract passwords and roles. Here is the jar file and here are the sources (eclipse project files included).SQLRealm can be useful in scenarios where the default JDBCRealm or DataSourceRealms prove to be inadequate. For example, if you wanted usernames to be unique Neeleshnoreply@blogger.com0tag:blogger.com,1999:blog-5814453.post-1153022667241313332006-07-16T09:18:00.000+05:302006-07-16T09:42:19.553+05:30Tomcat SQLRealm I was working on a J2EE project, deployed on Tomcat. We were using the tomcat realms for authentication and authorization. We ran in to a problem : We needed to pass an additional parameter from the login page to the receiving controller (Spring MVC). After sifting through innumerable tomcat mailing lists ( this , this and this). Yet another problem was that our tables that hadNeeleshnoreply@blogger.com0tag:blogger.com,1999:blog-5814453.post-1153021521400705162006-07-16T09:02:00.000+05:302006-07-27T19:36:17.656+05:30The InterviewLast friday, my wife got an interview call from a large multinational software services company in bangalore.My wife has just passed out of engineering.The scheduled time was 8:30 AM. So we go there at 8: 25.We, along with two hundred other aspirants are made to wait "outside" the campus for about an hour. So much for the schedule.Finally, my wife gets a chance to go in. She (along Neeleshnoreply@blogger.com1tag:blogger.com,1999:blog-5814453.post-1150194285141946392006-06-13T15:49:00.000+05:302006-06-13T15:54:45.150+05:30Moving to .Net After more than 7 years in Java, Im on to a C# .Net project. Day 1- Started feeling like MS was armtwisting me in to doing stuff their way. Not sure what I mean.Day 2- First encounter with Visual Studio .Net 2003. Felt like living in the cave age.Day 3 - Resharper to rescue. Atleast some respite from the beautiful IDEA makers.Day 4- I have to start IIS to open my Solution. What!!Neeleshnoreply@blogger.com0tag:blogger.com,1999:blog-5814453.post-1104925753859530812005-01-05T16:54:00.000+05:302006-05-13T12:19:33.666+05:30HandymenIm in a large project, with around 50 people. Most of my time during work is spent introubleshooting Websphere Commerce Server issues, helping out people with their questions on design/code, fixing build scripts and stuff like that.That leaves me almost zero time to do my coding. I was thinking if there should be a couple of handimen in the team, whose sole job is that- of a handyman. HowNeeleshnoreply@blogger.com0tag:blogger.com,1999:blog-5814453.post-1101529315406849032004-11-27T09:34:00.000+05:302004-11-27T09:51:55.406+05:30Its been very loong time since I updated my page. My blog got deactivated (almost!!). However Im back and will keep updating this space
Recently Ive been reading Hibernate in Action by Gavin King et al. , the developer/founder of Hibernate. One of my friends Dinesh and I are at loggerheads on whether CMP entities or an ORM tool is better for persistence. I've always defended ORM tools, Neeleshnoreply@blogger.com0tag:blogger.com,1999:blog-5814453.post-1074865210811174002004-01-23T19:10:00.000+05:302004-11-27T09:18:56.370+05:30Evaluating Developers and managers
Comments on Ravi Mohan's "How shall I judge a suit ?" at www.chaordicedge.org , and my thoughts here....
I ask people to write code, but more than monitoring, i get involved in coding, asking him to explaing why he is doing what he is doing, proposing alternate approaches and discussing the pros and cons.
This may not be an ideal collaborative environment to Neeleshnoreply@blogger.comtag:blogger.com,1999:blog-5814453.post-1072966767401729372004-01-01T19:49:00.000+05:302004-01-01T20:17:03.450+05:30I read Rajesh Babu's recent post on "Best Practices". I Cant agree more on this. Best Practices have haunted me everywhere. During a code review in my team, I asked the author why was the code written in a particular way. The answer was "It is a best practice given in xyz website/book". Now Im not arguing whether that code worked well in the given context or not. The point is people start Neeleshnoreply@blogger.com0tag:blogger.com,1999:blog-5814453.post-1072965968193098832004-01-01T19:36:00.000+05:302004-01-01T19:37:15.450+05:30Here I am, after long lull. I had been to my friend Rajesh's place today, and both of us tried out a few things on TDD and Fitnesse (An acceptance test Wiki). I got a few pointers on how to do TDD for database code. Ive always struggled with the enormity of testing database operations. MockObjects seem to solve that problem for me,now that I have a bit of insight in to the philosophy of TDD :Neeleshnoreply@blogger.com0tag:blogger.com,1999:blog-5814453.post-1065525345809216092003-10-07T16:45:00.000+05:302003-10-07T16:45:45.790+05:30Wiki Engines
Looks like a good idea. There are about 20 java based wiki engines . Why not write one more? :) Boy! I love redundancy! and freedom of choice!Neeleshnoreply@blogger.com0tag:blogger.com,1999:blog-5814453.post-1065448215279963562003-10-06T19:20:00.000+05:302003-10-06T19:20:15.530+05:30Blogger API changes
Blogger Developer blog has posts about supporting Echo as blogging API. Echo is volatile and not finalized yet.
I personally feel XML-RPC is more than enough,but still have to investigate what advantages will SOAP have. Thank God!They didn't say web services!
My client supports Blogger API 1.0 , anyway. Good enough for me.and many others I suppose.Neeleshnoreply@blogger.com0tag:blogger.com,1999:blog-5814453.post-1065431932665846362003-10-06T14:48:00.000+05:302003-10-06T14:48:52.596+05:30BlogClient Status
The client is almost ready.
The current features :
1. Create Blog Details
2. EditPane with text style capabilities [Bold, Italic, font size, font family and color]
3. Post and Publish news Item.
Will host it somewhere ASAP.Neeleshnoreply@blogger.com0tag:blogger.com,1999:blog-5814453.post-1065205243819599402003-10-03T23:50:00.000+05:302003-10-03T23:50:43.740+05:30 Hmm, this post is from the UI of my BloggerClient Neeleshnoreply@blogger.com0tag:blogger.com,1999:blog-5814453.post-1065203099358899572003-10-03T23:14:00.000+05:302003-10-03T23:14:58.860+05:30Test post from my blog clientNeeleshnoreply@blogger.com0tag:blogger.com,1999:blog-5814453.post-106507065002104762003-10-02T10:27:00.000+05:302003-10-02T10:27:29.383+05:30Test post from my blog clientNeeleshnoreply@blogger.com0tag:blogger.com,1999:blog-5814453.post-1064923301989978722003-09-30T17:31:00.000+05:302003-09-30T17:31:42.126+05:30Blogger Client Project
Well, My RU license has expired and BlogThis is not good enough for me. Methinks of writing a Blogger client.I know there are many out there, but in the process I will learn XML-RPC atleast :)
Neeleshnoreply@blogger.com0tag:blogger.com,1999:blog-5814453.post-1064469221794616742003-09-25T11:23:00.000+05:302003-09-25T11:23:41.993+05:30Nothing much happening, Im busy working on a user feedback system for our website. Hope to finish it fast and get it up and running.
Desperately trying to get used to TDD, so far the results are hopeless.
Neeleshnoreply@blogger.com0tag:blogger.com,1999:blog-5814453.post-1064328190039529642003-09-23T20:13:00.000+05:302003-09-23T20:13:09.750+05:30I was home last weekend and attended the naming ceremony of my newborn nephew... he's so cute! He's so soft, he's hardly 10 days old. Im really amazed to see his reactions to the events occuring around him..Neeleshnoreply@blogger.com0tag:blogger.com,1999:blog-5814453.post-1063736999425766082003-09-16T23:59:00.000+05:302003-09-17T00:00:13.943+05:30My work on OTN
Check out Virtual Shopping Mall 1.3 - A sample app with an aim to demonstrate end-to-end J2EE application architecture.
Has EJBs,JSPs, i18n ,Struts,JAAS etc.Neeleshnoreply@blogger.com0tag:blogger.com,1999:blog-5814453.post-1063735066847918592003-09-16T23:27:00.000+05:302003-09-16T23:29:41.333+05:30Unit test blues with CRUD methods on RDBMS
I had a small discussion with Rajesh Babu about unit testing methods that involve CRUD on Database. There does not seem to be an obvious way to manage test fixtures and initial conditions for tests.
For example, i need to test a method create(), which inserts a record to database.So i write a JUnit testcase for this.
...
create(myObject);
OkayNeeleshnoreply@blogger.com0tag:blogger.com,1999:blog-5814453.post-1063719345482037262003-09-16T19:05:00.000+05:302003-09-16T19:07:27.250+05:30Static or not?
Me and my collegue were having a discussion on static methods in Java. My collegues argument for static methods went this way
* They are fast [because of compile time binding]
* No need to instantiate classes, makes memory conservation
And my sole point against static methods
* No flexibility , if you want to change behaviour of the class partly,can't override .
I thinkNeeleshnoreply@blogger.com0tag:blogger.com,1999:blog-5814453.post-1063642858731520562003-09-15T21:50:00.000+05:302003-09-15T21:54:44.356+05:30Oracle JDeveloper 10g - Evolution of an IDE
So I started talking about Oracle JDeveloper after all. I must admit that JDeveloper has evolved to be a nice IDE for Java and Java/Database webservices. The initial versions of this IDE, (versions 3.x etc) were pain to work with, but the latest 10g is smooth.
To give a feel of what it offers-
* Wizard based code generation for EJBs
* Neeleshnoreply@blogger.com0