Tuesday, January 26, 2010

LISP, why bother with parentheses?


Mostly because it's fun, and it will make recursion your best friend!

I just started learning R5RS Scheme and it's kind of awesome, I started noticing all the little things in my program, started using recursion and made a little pow function -.-


(define  loopow
  (lambda (count x n xpow)
    (if (< count (- n 1) )
     (loopow (+ count 1) x n (* x xpow))
     (abs xpow))
     )
   )
(define (pow x n) (loopow 0 x n x))


Having to call the function from another function was a shock for me, I'm not used for it in C, but the complete product is pretty awesome and I'm proud of myself being able to write it.

Recursion FTW!

Saturday, January 23, 2010

List?!



I've got some people coming to me and asking about lists, they have a certain difficulty to
 understand lists when all they got was the theory and some weird-looking illustrations.

before you continue reading, if you are totally clueless about what a List is you can check out these sources-

A.) in case you know Hebrew as your mother-language you should check out this blog post->
Snir David's Blog, Data Structure Explained (Hebrew)

B.)or go to good ol' wikipedia and check out what a list is directly->
Wikipedia, List(computing) (English)



not really helping is it? ?! O_O
well I'm here to make things a bit clearer.
for all of you not-computer-scientists/software-engineers out there, the list illustrated above is a doubly-linked list, the same as the one I will be showing you if you keep on reading...

So what do we have thar?
harr, harr, harr
No, really...
The first node to the left(box with an x on it-  [X])  is the left endpoint of the list, you can see it is an endpoint by it having only one connector, connecting from the node to it's right.
the endpoint does not contain any value, and is just there because every node in the list can be described as

Monday, January 11, 2010

Winsock Wrapper


A little winsock wrapper library I made, you can get all the files (static lib, VS project and .cpp/.h )
right->here<- including a "how to implement" file called "a.cpp".
Two different versions (get both the SauceCoed.cpp file that weighs the most and headher.h file that weigh the least in KBs)
 

Sunday, January 3, 2010

C++ killed the file I\O star.

I am currently working on a big C/++ PDF tutorial for some stuff including writing a kernel in C, File I/O, and basic binary encryption.

So prepare to be amazed!

(about the header, ifstream>>shit vs FILE *;  get it? huh? well you will if you don't by now, by reading my upcoming paper about C/++ and why I just prefer the C way of getting shit done).

Friday, December 25, 2009

POSTING SPREE

POSTING SPREEEE~~~

Aye, how's it going lads?
so I participated in a pretty interesting project just a few days back, during the 13th-14th of this month(this year too.. yea, I'm too lazy to write numbers, but writing long sentences in parenthases makes much more sense),
It involved 4 teams of 4 teenagers,  all in the age range of 12-18 years-old.
Every team had some programmers(WEB programmers) and graphic designers, and some who did both.
Our goal was to make up an internet-related idea, and build it from the ground-up to a 24-hours deadline, to the eyes of internet viewers all over the world Israel(well the whole world could've watched it, but they had to know about it somehow), by live-cameras capturing our every move(watching programmers at work is as boring as watching paint pale, especially when web-devving, an activity of which I am not fond of).

My team's idea was a GUI that lets you edit and mix youtube videos, by Audio and Video, and let it be saved in our website for future views.
We managed to make it in time and got it up and running here http://www.duoplay.net/codes/ (chrome users might not see the nav-bar icons, sorry for that :\).

This event took place at Microsoft Israel's R&C center, and was made possible by StartupSeeds.

Productivity just hit me in the head with huge chainsaw nunchucks(figuratively speaking)

Do you recall a time when you were hit by an amazing idea, and it's relevancy has passed just a few days before you thought about it?!(it is a rhetorical question if you were wondering)

Well, I thought of that awesome game idea for Hannukah which has just passed a week ago, feeling bad with myself.
But hey, it's Christmas... so I thought getting that theme into the game too.

I've got everything about that game figured, my little C++ game engine is pretty well-finished and the game is going to be awesome,  in my mind that is...

I will just reveal that it will be a 2D arcade-style shooter, no scrolling or any high-tech shit like that.
well, I thought about combining some awesome 3D models just to add some fun and test my skills in graphics algorithms, but we'll see about that being in the game.

Sunday, October 18, 2009

Welcome, Earthlings, to my fortress of doom!


One reason I made this blog was to share my knowledge with the world, but the main reason was , that the more I write and talk about it, the more I understand!
Meaning this blog was made out of sheer egoism.

I want to educate myself! and hope you will learn something in the process.

Let's start from the boring stuff!

My name is Adar and I'm from Israel.
I think the confrontation between Israel and the Arab world is just plain silly!
I mean, land is a thing that gets conquered, the Indians didn't cry and suicide-bombed  U.S. buildings because they took over their land a few years ago.
Now Israel owns some land that belonged to the Arabs earlier, BIG DEAL!
It's land, land gets conquered.
Get up, get on it, and get out!

I do not imply in any way that I hate Arabs, they are people like me and you and they are plain awesome.
I just don't like the extremist's approach to this middle-eastern dispute,
but hey, they're extremist's, these people are all black and white, either you support them or you hate them, no middle grounds.

Now enough with this political shit, I don't want to taint you with my perspective.
so from now on, no more political shit, only Tech!