Here an example of J2SE 5.0 Enhanced for Loop by one of my old colleague:
This code maybe will run faster.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." - Martin Fowler
Tuesday, January 15, 2008
Fiddler HTTP Debugger
Fiddler HTTP Debugger - A web debugging tool which commonly used by my colleague.
Today, I found a flash file (SWF extension) not loading a xml file correctly during my web development. So, I was thinking is it my false that putting the flash file in a wrong directory or there is some error on the flash file itself?
Suddenly, my colleague help me find out that it is the flash file problem, the xml file must put at a special path in order to make the flash work. It was Fiddler which help us trace which process calling which file at which path having problem.
Actually I had been teach by my colleague to use Fiddler before, but I just alway forgot to use it.
Anyway, here a Firefox Add-ons - Live HTTP Headers, something similar to Fiddler & it works well on Firefox browser.
Do remember to use it when you need it.
Today, I found a flash file (SWF extension) not loading a xml file correctly during my web development. So, I was thinking is it my false that putting the flash file in a wrong directory or there is some error on the flash file itself?
Suddenly, my colleague help me find out that it is the flash file problem, the xml file must put at a special path in order to make the flash work. It was Fiddler which help us trace which process calling which file at which path having problem.
Actually I had been teach by my colleague to use Fiddler before, but I just alway forgot to use it.
Anyway, here a Firefox Add-ons - Live HTTP Headers, something similar to Fiddler & it works well on Firefox browser.
Do remember to use it when you need it.
Thursday, January 10, 2008
Eclipse + Netbeans
I start switching from Netbeans to Eclipse. Reason of switching: company requirement.
"Code in Eclipse, build & run in Netbeans.", this is what I did on my first day using Eclipse because I have no idea how to run in Eclipse.
Well, I has been trying to use Eclipse from the past few days, I feel that this IDE is special for professional user. There are a lot of setting & plug in can be add. It really need some time for a developer to familiar with this IDE.
For a newbie on both IDE, Netbeans might be easier for them to learn up. Netbeans screen interface is more user friendly.
Although Netbeans 6.0 had released recently, but the overall speed still slower then Eclipse. Eclipse is more powerful on the debugging & find bugs features.
Overall, I still haven't familiar with Eclipse. Now I have to run both IDE, using Eclipse as the default IDE, Netbeans as my backup IDE in case I don't know how to use Eclipse.
"Code in Eclipse, build & run in Netbeans.", this is what I did on my first day using Eclipse because I have no idea how to run in Eclipse.
Well, I has been trying to use Eclipse from the past few days, I feel that this IDE is special for professional user. There are a lot of setting & plug in can be add. It really need some time for a developer to familiar with this IDE.
For a newbie on both IDE, Netbeans might be easier for them to learn up. Netbeans screen interface is more user friendly.
Although Netbeans 6.0 had released recently, but the overall speed still slower then Eclipse. Eclipse is more powerful on the debugging & find bugs features.
Overall, I still haven't familiar with Eclipse. Now I have to run both IDE, using Eclipse as the default IDE, Netbeans as my backup IDE in case I don't know how to use Eclipse.
Sunday, January 6, 2008
ASP.NET 2.0 Membership API
Today I was exploring on how to make a login form with ASP.NET & Ajax, then I come across few website that bring me to ASP.NET 2.0 Membership API.
Nowadays website require membership, user need to enter a username & password to login. Besides that, there are also roles for each user, something like admin user, super user or normal user. These two things are very hard to avoid, normally it is a requirement to implement.
All the above things can be done with ASP.NET 2.0 build in Membership API. It only require developer drag & drop few things, a simple website with login form done.
For this API, I do feel it is very useful, it save developer hundred of code to implement a login form with roles for each user. But when I start implement it, I feel very hard. The hard part is on their tag. Something like asking a developer who don't know HTML to make a website with Dreamweaver. I feel so uncontrollable on the login user detail:
1) How to login?
2) Login user detail stored where? Session? Cookie?
3) How to logout?
But in the end, I still choose to use this API, temporally able to login & logout. Maybe I need more time to read the tag documentation.
Nowadays website require membership, user need to enter a username & password to login. Besides that, there are also roles for each user, something like admin user, super user or normal user. These two things are very hard to avoid, normally it is a requirement to implement.
All the above things can be done with ASP.NET 2.0 build in Membership API. It only require developer drag & drop few things, a simple website with login form done.
For this API, I do feel it is very useful, it save developer hundred of code to implement a login form with roles for each user. But when I start implement it, I feel very hard. The hard part is on their tag. Something like asking a developer who don't know HTML to make a website with Dreamweaver. I feel so uncontrollable on the login user detail:
1) How to login?
2) Login user detail stored where? Session? Cookie?
3) How to logout?
But in the end, I still choose to use this API, temporally able to login & logout. Maybe I need more time to read the tag documentation.
Subscribe to:
Posts (Atom)