A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

Did you guys ever take notes?

909 views · started by HTML ·
#1
Did you guys ever take notes?
I remember back when I was learning how anonymous functions worked in Javascript I actually opened notepad and threw notes in their that i would review. Share any notes here, who knows, maybe the tricks you used to teach your newbie self will help others. I'll be adding to this as I have tons of PHP and JS notes on my older system. I will have to organize them for you though, I use to throw shit around like monkeys




HTML'S RANDOM NOTES (JS)

Javascript has a function dataType.

IE: assisgn a variable a function

var doSomething = function (param, param2){
alert("anonymous function!");
};

______________________________________________________

IE: Pass a function a function
var doSomething = function (param, param2, fn){
return fn(param, param3);
};

//The function we're going to pass to our anonymous function doSomething
function sum(param, param2){
return param + param2;
}

//Pass the function we want to use.
doSomething(4, 5, sum);


______________________________________________________


IE: Defining a function as a parameter.
*Note - Imagine that doSomething has THREE params upon instantiation.

var bar = doSomething(param, param2, function(param, param2){
return param * param2;
});
_______
_______________________________________________

Immediately invoked function. Immediately invoke a function when you write code and
you no longer have to worry about global variables, protecting your code from being
overwritten or misused.



var foo = "Sup broski!"; //bad

(function (){
var foo = "hello, window!"; //good
alert(foo);
}());

alert(foo);
#2
I was just in a database class and didn't find a need to take notes.

I've got a handful of them when I was learning data-structures though.

I really like to practice programming and find that the best approach for myself.
#3
lovely, sorry for my ocd but your indentation is a slight off.
not needed, but i love it being perfect.

var foo = "Sup broski!"; //bad
(function () {
var foo = "hello, window!"; //good
alert(foo);
}());
alert(foo);
#4
I never took notes. If anything, I'd write a program with a method, and if I ever needed a refresher on how that programming method worked, I'd just checked the source on the program I wrote in the past. I learned everything as needed, instead of through tutorials, so I never really learned anything before I had a use for it.
#5
GAMEchief wrote:
I never took notes. If anything, I'd write a program with a method, and if I ever needed a refresher on how that programming method worked, I'd just checked the source on the program I wrote in the past. I learned everything as needed, instead of through tutorials, so I never really learned anything before I had a use for it.


This is pretty much what I do. Most of the things I know I learned because I had a need for it, rather then learning everything about the language at once.
#6
I'm currently taking a few programming classes. I wish I had taken more notes in my first Java class. The professor was shitty and I didn't learn nearly as much as I thought I would. I really feel like I didn't take anything away from the class. Now I'm going into the next semester with pretty much no knowledge.