loading
comments ›
close
Home
loading

Categories

RSS 2.0 / RSS .92 / Atom 0.3

Archives

 
loading
 

New game launched - Yamb

Published on 21.04.2008., in Programming
Even though I constantly keep saying that I hate game development, and that games are one of my least favourite things to program - this one was an exception to the rule.
It was mighty fun making it, if for no other reason than the fact that it's completely done in JavaScript!
Since it would have been rather stupid launching a subdomain just for Yamb, I decided to publish two games I did earlier for uni purposes. They're mostly crappy, yet somewhat fun.

So, head on to my new Games Microsite for some in-browser gaming goodness :)


 

Every day brings new disappointment

Published on 26.01.2005., in Programming, Madness
Well not literally, but I've been surprised how things can get screwed up while you're away.
I haven't been checking my site for some time as I guessed it was running smoothly "as always", and what do I get when I decide to make a slight reconfiguration? A bit of confusion.
Now, at the moment I'm quite more confused than pissed, actually - how the hell could this happen:
I've had implemented a simple MySQL querry thingie that counted visits and clicks each day. It worked perfectly for a month or so. Now, I was reading errors on all the pages. Guessed - I screwed something up by editing the code few minutes ago, reffered to backup. The same. Logged into the MySQL phpMyAdmin and what do I see? The permanent loss of "stats" table. Why? Who the hell knows!
And in because of it, I'm sitting here expressing my confusion instead making myself something to eat!
To hell with it, jag måste laga mat!


 

Pascal owns ye all!!

Published on 25.08.2004., in Programming
I finally made my mind several days ago, and bought MS Visual C++ .NET book. I couldn't be more happy that day! Unfortunately, what I was able to experience, shocked my being.... My friends, I came to an exciting yet terrible conclusion: Pascal is the best scripting language.
I know that some of you will take this as bitch-slap in the face (as I did), but stats prove it right.
I'll present a simple program which calculates how many throws you took to get critical hit (19,20) or critical miss (1) in three scripting languages: Pascal, PHP and MS Visual C++ .NET.

Pascal: view code
PHP: view code
C++.NET: view code

Now, out of this, you would say "Well, PHP's code is the shortest one, isn't it?" - which is correct, but let's get a bit deeper into the stats:

To run PHP script you must:
- have web-server installed (Apache, IIS, PWS, ...)
- have PHP support installed for that web-server (usually: configuration of lots of files)
... which, usually, you don't ....
BUT when you have those, you don't have to compile the file - it's all done (functionality in less than 1kb)

Ok, now let's say that MS Visual C++ .NET's code is the most complex one, but there's a hidden catch, and it must be the best scripting language (for crying out loud, it's C++!). I compiled it and got 170kb EXE file which runs in command prompt. Okay. I distributed it to several persons having different versions of Windows (98, XP pro, Me) - and all of them got different kind of error.
Neat.

Now I got pissed and compiled Pascal variant. I got 3kb EXE file which runs in command prompt, on all OS'es from MS Dos to Windows XP.
What do you think of that?

If you don't believe me, here are the examples:
Download Pascal Variant;
Download MS Visual C++ .NET Variant; (zipped to 66kb)
Run PHP variant (if you want to run it on your own server, copy-paste the code shown above)

And so. If you get the MS Visual C++ .NET variant running, please leave a comment to enlighten me. Also, take a note if you have ".NET framework" installed or not.

What to say except 'Pascal owns ye all' .... but still I like PHP the most ;)


  Facebook Dachaz - GTalk [email protected] - Skype darko.zelic - mobile +31639107668 - Mail [email protected] - Twitter @Dachaz -