Wednesday, October 3, 2012

How NOT to design a messageboard

Goddammit, everything about MySQL sucks serious sackage. Have you ever googled for a MySQL issue and clicked a link for anything related to mysql.com? The whole site is designed to be incredibly painful and user-hostile.

Nice messageboard, MySQL.
Nice documentation, MySQL
Nice Homepage, MySQL.
Nice forums, MySQL.

DO YOU BASTARDS FUCKING TEST ANYTHING??

Seriously, just because things exist (forums, docs etc) doesn't mean they need to be changed.

Holy fucking shit MySQL, look at what SQLite did! An easy to read flowchart! Clear documentation! Who'da thunk it.

I fucking hate MySQL.

Tuesday, October 2, 2012

Awesome uploading gif generator!

I don't spruik much but I just found this and it's awesome

Loading GIF generator

I am always trying to find decent free loading gifs and that has a selection of pretty much all the ones you ever see on the net. I thought it worth noting down in case I am looking for it again later.

Lazy mysql

I fucking hate MySQL.

is it just me or do the letters 'sql' take far too long to type? They are in complete opposite ends of the keyboard and chafe my ass. Add in 'my' and you now have a word that requires you visit all compass points of your keyboard to type it. What's worse, every mysql function in php has "mysql" at the start of it!

Because I am a lazy bastard I made a little function that eases my pain.

function fetch($str){
    $q = mysql_query($str);
    $a = mysql_fetch_assoc($q);
    if(!$a){
         echo 'e: Fetch() returned an error! '.mysql_error();
         return false;
    }
    else return $a;
}

Now I can just call fetch("SELECT * FROM `my_ass` WHERE `mysql` = 'shit'"); whenever I require an array from a mysql string. I don't have to type "mysql" once!

Seriously, try typing mysql ten times fast.

Tuesday, September 18, 2012

Things I wish I had been told about objects

You can read this in a nice wiki format here

When looking at tutorials and tips, you'll hear phrases like "the objects 'x' method" and "returns an 'x' object". If you're not sure what this means, it definitely helps to get a grasp of the concept of objects when you are programming.

A big problem I had when I first learned about Object Oriented Programming was that tutorials all needed to be so damn correct. Since I was only a noob this lead to confusion and frustration.

This post is not entirely correct, and in some ways just flat wrong. But it serves to bridge the gap between procedural programming and OOP for the newbie. If you continue down the golden path of OOP you'll find that a lot of the stuff I said here was fallacious, but it was a means to an end.

Monday, September 3, 2012

Prototype is so handy

I have been javascripting like a madman recently. I now have quite a bit of experience in the language. Here's a few fiddles I did to get my head around stuff like objects, dragging stuff and AJAX calls:

My JsFiddles directory

Try the cards program, you can upload a picture and give it a name/description. It's supposed to be a jumping off point for making online card games like magic the gathering or w/e.

Wednesday, July 4, 2012

Ravaged Beta!

2Dawn finally did it!

Ravaged beta is here! Have a look! Everyone loves a good beta! Getting stuck in walls, no tutorials, crazy shit happening, it's great!

GET ON IT!

Sunday, June 3, 2012

Look what I just bought

Holy shit this better be worth it, I literally can't buy food this week

G75VW-DS2

It's times like these I'm glad I know how to make bread, and have 20kg of flour in my cupboard. On a side note, does anyone want my old laptop?