First you need to think what you want to program. Do you want to make games? Or maybe you want to make your website? I have done many websites and tried to make game (With C-language), but it didn't do so good.
Try this link to learn basic HTML (Hyper Text Markup Language)
It's used for simple websites and cores for website. So you aren't going to do any fancy with that.
1)
Program on paper, use some few variables in your code (can be pseudocode)
2)
Traverse your program mentally, write a table in a sheet, each column will represent a variable.
3) Each time a variable changes it's value, write it in the table. In another sheet, write the output of your program.
This seems like prehistoric or even awkward, but this forces you to concentrate on what you are doing, slows you down, thus allowing you to catch little details.
Name:
Anonymous2012-09-14 8:37
>>1
1. invent your own domain specific programming language.
2. write your program in it.
3. write a bunch of Lisp macros to parse your DSL
4. execute your program.
Name:
Anonymous2012-09-14 8:40
>>6
Alternatively, instead of writing Lisp macros, one can manually translate his program into C/C++. Like that:
Code in my DSL:
open FileName | <[T:@4,utf8 L:@4,ul D:@L,y? @Xs]=[[T D] @Xs,r]>
same code translated to C/C++:
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
>>3
This
SICP is the best programming book ever. It is hard at times, but let this not discourage you: you can skip the hardest exercises and do them later when your skill improves.
>>7
Your DSL is shit.
First, it generates terribly inefficient code. malloc in the inner loop, seriously?
Second, the procedures are named using buttUglyCase.
Name:
Anonymous2012-09-14 14:06
>>15 Second, the procedures are named using buttUglyCase.
Haskell uses it.
lisp / sicp is only for people looking to achieve satori. OP is
interested merely in a superficial understanding of what the fuck
it is that we do.
OP: start with the wikipedia entry on SICP and just browse for a
couple hours, you'll get the jist of it. if you want to try and
make small programs right click, select "inspect element" and start going at it. Chrome comes with a console that lets you
experiment with javascript easily.
try typing document.title = 'go!' and take it from there.