Archive

Archive for the ‘Software Development’ Category

My hesitation with ORM Technology (and else, actually)

November 20, 2007 arkofmind Leave a comment

Honestly, I know ORM technology such as Hibernate only from discussion and still not have opportunity to try it my self, but as a conservative guy who has a difficulty to accept new change, I feel that this ORM thing is one of my hesitation to learn deeper about it, but I know someday I have to.

First of all, I think the idea to make and object-based database is nice idea and absolutely will help so many people out there with their project, the idea to bridge the object from relationship database system is also a nice approach, but (ah here you go :) ) how long do you think this euphoria would happen? until the database system creator create the object-oriented connector to their system? so this is my simple imagination about ORM:

[ Program with ORM connector -> [ORM Engine] ] -> [RDBMS Data Store]

While SQL has been around for decades(?) it seem fair enough to me if this kind of concept should be embedded within the system it self, think of it, the database system is so mature it has it’s own art to deal with it, and programmers with god power to make a change to database schema on runtime, persist everything on the business computation / production server memory(?), is not a very much a good idea, somehow.

[ Application -> Virtual Machine -> Native Platform ]

hey, I like any 3 tier approach actually :) I realize that today is a virtualization day, everybody virtualize everybody, computer now is so fast, we don’t sacrifice human to do the dirty work, can’t we? ORM virtualize RDBMS, with one ORM engine we can connect to many BDMS platform out there, good to you, so then what will stop me and anybody else to make another ORM engine? is there any standard already? ah… the standard thing, I guess this is the case, SQL has already the standard fora while, with SQL we can work separated / distibuted server, so what did you think people make it in the first time(?)

So, I always say that good thing for many people maybe not suit for others, and it is all about the people behind the things no matter how sophisticated tools and technology we used. Maybe you share the same opinion with me, I like if the approach to be like this:

[ A well designed program with usual SQL connector ] -> [Managed RBMS Engine -> Data Store]

So I guess the issues here are about how well managed program in the end and overall performance to gain. yeah, I know misused of SQL in the program can be a nightmare, but managed SQL in ORM is also not a fun horror to imagine… But given a super duper server, heavy team workload and a long term project to managed, you bet I don’t have any option today except to join the hip (wordpress stuff :) ) soon…

Maybe, if it is in the military, the choice is about using a special force small tactical team with highly-specialized trained personels versus the whole batalyon with all the latest equipments, war machines and replaceable trained enough personels on a combat mission… it has its own advantage and disadvantage, your call…

Categories: Software Development

Javascript – Komunikasi antar child window dan openernya

April 4, 2007 arkofmind Leave a comment

Dari child window dengan menggunakan object opener
Contoh
Mengakses opener DOM: self.opener.document
Mengakses opener Function: self.opener.call(foo)

Categories: Web Development

Ajax – Post form input, spasi menghilang

April 4, 2007 arkofmind 1 comment

Kasus:
Input value dari form yang dikirim dengan ajax post menghilangkan spasi diantara kata

Batasan:
Menggunakan ajaxroutines library dari Dinamic Drive

Solusi:
Menggunakan fungsi encodeURI() di javascript ketika dimasukkan ke parameter ajax post, kemudian nilai yang dipost di decodeURI() lagi dari server side atau client side

Pertanyaan:
Pake fungsi encode() – decode() juga bisa sebelumnya, apa boleh ya?

nb. di VBScript 5 sudah ada fungsi escape dan unescape

Categories: Web Development

Deprecated HTML Tags

March 21, 2007 arkofmind Leave a comment

Sejak HTML 4, beberapa tag penting HTML mengalami deprecated (sudah tidak masuk dalam standar lagi)

Categories: Web Development

Form Post Request

March 21, 2007 arkofmind Leave a comment

Form.html -> (Postback) Form.html
- Jika di-refresh di halaman yang sama browser akan mencoba mengirim ulang data (muncul pesan peringatan)
+ Data hanya perlu di-load sekali dari server
+ Dari luar hanya terlihat 1 web file

Form.html -> (Post Validation.html + Server Redirect) Form.html
+ Jika di-refresh tidak ada pengiriman data ulang
- Data perlu di-load dua kali saat Validation dan Redirect
- Dari luar terlihat paling tidak 2 web file

Categories: Web Development

Form: Button Image

March 15, 2007 arkofmind Leave a comment

Jarang memakainya, ternyata ada juga input-control HTML berupa image.

<input type=”image” scr=”image.png” />

Menampilkan button yang berupa image.
Attribut lain sama untuk tag <input>.
Cocok untuk mengurangi penggunaan javascript dengan tag <img>.

Categories: Web Development

The Importance of Quality Control (QC)

October 14, 2006 arkofmind Leave a comment

After a while maintaining some projects as a programmer in my current job, I realize one thing that should be one of the important things in a software development project (well it should be important in any kind of projects) which is, according to the title, Quality Control or, in my office known as, QC.

So why QC is important? based on my real world practice, me as a programmer, was actually very lazy to check the end result of my work, especially on presentation level, because personnaly, I like to development code in the bussines process level, so sometimes I’m not very concern about little glinch or bug in the end-user interface, but that is something you cann’t forgive in a project. So, while in my company’s projects now I play a role as the database, bussiness process, dan presentation programmer, I need someone who will re-check my work result.

Well, of course it was already been the obligation of the company to guarantee the quality of our product, but since it was my first experience to work with the QC team, I really feel much advantage on my own part of work, since I ussualy working my code alone without team before. The QC team will surely find some bug that represent a mistake in code, logic, or sometimes just a wrong variable name I wrote that make the entire result wrong, they will send a notice to me, so I can make a change on the code right away… but that will make another chaotic situation…

There are a kind of bad practice we’re still doing in QC-ing project (hmm.. I should post this in team forum), which is when QC is in progress, the qc’er will send a notice to the development team right away, the developer then doing some fixing, and sometimes it will affect the rest of the part that is already been QC’ed, so I wrote again to the qc’er “hey, the bug in section xyz123 have been fixed, thanks”, for sometimes the qc replies “yes it fixed, thanks” things go perfect… no… it usually leaving another bug raise again in the related xyz111 section in example, which had been QCed before I made a fixing but it don’t recheck again by the QC’ers… it will found after a while, sometimes days, to find that bug again… there’s nothing perfect, bugs seem will always be found in every project we don’t expect…

But that will be another challange for project team to deliver good product anyway.
The importance of QC now is the top of reasons in my mind that good team and good team work is highly required if we think of high quality product/service.

/* doh, my english… */

Categories: Software Development