Sunday, May 29, 2005

Software engineering

I have to admit we (namely I) lack experience in software engineering. Specifically when it concerns complicated user interactions. I went through several relevant open source projects to see a proper way but everybody seems to be thinking diffirently on the matter. I'm not saying folks out there don't know what they're doing, I just can't see good systematics behind the scene. Is it possible I'm not alone with no computer science education trying to make my living out of it?
By the way, see how "define" defines computer science:
... that conduct research in the area of science that addresses the study of data and information storage and processing systems including hardware, software, basic design principles, user requirements analysis and related economic and policy issues.
What's left for others to do? I like "related econimic and policy issues" the most. Don't you have to be some kind of a market pro and a lawyer for this? Even software engineering being a part of computer science is about "directing programming teams, scheduling, and budgeting". Time to think about second education. Too bad there is no W3C specification/recommendations for engineering of client-server communicaton suit or similar. It's just a joke, relax. But if anyone knows where to read all about computer science for free, please...

Useful APIs; to div or not to div; DHTML public secrets

I guess everybody here knows about Google API. Well, in a few words this is a thingy that allows programers to use Google search engine capabilities in their software. API comes in diffirent languages, PHP and Java are amongst them of course and it makes me to like Google even more. Today we have discovered that MEDLINE (PUBMED to be more specifically) has an API to access to their services too. (Type "define: medline" in google search to see what the hell is that.) No PHP version though; is PYTHON still that popular? I wonder if there is some kind of an online resource for publicly available APIs like those mentioned above. Some tresure for search spamers.
Can I ask you a question about HTML? I wonder how many people prefer DIV over TABLE and if there is any other descent way to format HTML page. I'd say that vast (if no the most) amount of web sites use tables purely for formating. We found out that HTML specification doesn't recommend it but says nothing about an alternative way. I'm begining to think that Google crawler might like pages that follow some HTML ethiqette (85% chance there is no such word) more then "dirty" ones. Simply since all Google pages including this blogger site are made of DIVs.
One of the guys I'm working with is doing a web site design and instead of a traditional "reload all page on every user action" scheme he used interactive DHTML The trick is to load a new portion of javascript after user makes a choice. Looks really nice and loading time is significantly lower. I'll put a working link somewhere HERE when the web site is ready. Won't give detailed explanation though unless someone asks.

Friday, May 27, 2005

PHP vs Java

It wasn't really a question until now. We have a big PHP product to run our web servers and we want to sell it. It looks nice and serves its purpose. One problem is that PHP is very inefficient and higher traffic chokes the server. Another problem is scalability. Small scripts look nice but when they become bigger you just spend more time digging and meditating than typing. This road leads to a deadend where you can't fix/expand features and the scripts are just too valuable to throw away because you spent so much time and effort and it works somehow even now. What to do? Should have never started with PHP - that's for sure.
Okey, we sad, let's migrate to Java. The idea looks promising and worth to try. Quite some time later we realized two things. First, renting one more server is about 100$ a month, which is like at least ten times less the profit. So scalability is not an issure here. Second, we're going to have hard times selling our Java version rather then PHP one. This is weird. Java-setup is better by all parameters (for example some tests have shown Java to be about 500 times more efficient then PHP, so instead of 500 servers you'd have just one!) but less profitable for us to sell. Is Sun loosing the battle? We'd love to see Java SE runtime on every PC available or at least on most of them but that is so far from reality.
Representing a small outsource team I'll say that current market situation is unfair. Right now we have a complete production cycle based on open source technologies, from PC 3D games to large bussines network sollutions. Out of all that we prefer to deal with are PC client software and small to average bussines web sites because these segments are very massive and easy to pray. But it appears that Java positions here are weak: try to convince a regular WinXP user to download a 100 Mb Java SE RT bundled with your unquestionably briliant software. Even webmasters are not that easily touched by the promises of all Java bounties when they hear about an application server. Hardware is getting cheaper and more powerful, lame and lazy webmasters are multiplying like rabbits, Sun is still afraid of open-source community... I know, mobile edition is still something to think about but in a way it's like LEGO, it just looks cute but makes no sense.

Tuesday, May 24, 2005

I saw it with my own eyes

I saw two things I'd like to tell about.
The third episode of Star Wars. Perhaps it has been the most discussed news topic last few days and I'd say it should be. Can't even think of the movie downsides. Couple of questions though: what the hell was he thinking and what kind of lame medicine is that? Actually questions like that only prove that the movie was a success. I gotta say it exceeded my expectations. Especially in how much drama has been brought to the whole saga. IMHO Lucas has set a new SciFi/fiction movie standard or level of complexity in other words. Everything made after episode III will be compared to it, until something really new like 3D movies will be out. I'm hinting on Terminator IV: will they be able to get as high?
Another thing I can't keep to myself is spam in blogs. I like reading what other people think is worth writing about. I like the idea of everyone bieng able to write and share thoughts in his/her own style and manner. And I don't like going through spam blogs with Google ads all over them. Is there any countermesures taken by Google? I've put their ads on this blog too having no illsusions about it. During the AdSense setup there was a disclaimer about spam content and how Google is strict on that. Are they really? Out of twenty blogs I went through yesterday at least half of them looked like complete ad junk to me. Was it just an unlucky day?
And for the record. We shifted to a night-time work schedule during last week. Yesterday we decided to see the movie today. Somehow Mike was able to fix the car and early in the morning we took off. At 9:40 it was almost empty in the movie theater and we bought best sits for ~3 bucks each. During the movie I completely forgot I wanted to sleep but kept thinking to myself about cold beer. After that we visited our friend and had lunch. Somebody forgot to take plastic wrap off the milk shaker so milk shake contained an extra ingridient. It was very hot on the road back home, which I don't remember 'cause I fell asleep on the shoulder of my friend's wife.

Sunday, May 22, 2005

Star wars

We've watched episodes 1 and 2 to refresh our memory on the plot and characters before we'd go and see the new and probably most wanted part. I read that it has broken the all-time record with 55 megabucks in the first three days. Also I found out that wikipedia has nice and nearly complete description of "Star Wars" universe. Actors, terms, places, events..., a mix of real and fictional in form of an encyclopedia. You wanna know what "bantha" is and how do they look like? Go there and see.
Probably one of the most puzzling things that troubles me for a long time is how to make a lightsaber. I know it's just a movie but still... We came to a conclusion that it must be "plasma" saber rather then light. See, modern techniques could allow to recreate something that looks and feels like a lightsaber using electormagnetic field and a plasma generator. There are cost-perfomance issues as well as technical problems making it impossible to build in practice but at least in theory we are capable of such projects. Okey, modern science-technology level doesn't have a suitable energy source and that's the biggest problem. Carry on folks, let's wait another 10-20 years.
Quake4 is out and looks like Doom3, which is fair since Quake uses Doom's engine. The recommended computer configuration sounds crazy to me because I can't upgrade my laptop to 512 MB memory for like a year. Need more money! Yeah, getting a job would do too.
Weekend is almost over and we forgot about the Battlegorunds game. Last time me and my ally have won the game quite easily because I grew quite fast and I took advantage of it pretty well. A few minutes ahead of others moved to the level three and after that organized a brute force attack on a nearest foe. A few pamels later I had an extra holocron and all bounties of half of the map. Did you know that isles are short of carbon? Luckely this fact was on my side.

Tuesday, May 17, 2005

Java-java

Its' been quite some time since... It hasn't been that much in my life though. Same plain work, which I start liking by the way. Low in funds, which I'm getting used to. Now I have some spare time to devote to writing and here at this blog I'll try to keep it Java-related or all'bout computers. Because I'm a gick myself and not because I know everything in the field. Of course I don't. I just like talking :)
First, let me introduce my horse. It is Eclipse run on ASP Linux, which in turn works on a not very new laptop. I'm short of memory but short of money too. What is shorter? Money so far.
Second, my weapon: Java, as you could already have guessed. It's not like I'm a Sun admirer. I simply like it and I hope Java likes me back :)
About kills. None so far has been shot. I picked a target, learned all about its habbits and trails, followed it everywhere, hiding and sneaking, making final run and bringing the pray into the crosshair but... Whould a hunter kill an innocent pray after all this long and nasty pursue? Well, yeah, to sell it and become rich. Somehow the last part always snaps. That's why I don't kill them. Fresh duck anyone?