What does /g/ think of The Coding Train?
I've gone through some of his tutorials. They're pretty enjoyable. Like recreational programming where you can maintain or learn programming skills.
He does his tutorials in JavaScript and Java. Getting into the JavaScript ones are pretty easy, you just need to download the p5 library file and can follow along with him. Most tutorials I've found haven't gone into very interesting subjects but coding train gets into really useful algorithms and subjects.
Here are some decent tutorials he has done (IMO):
https://www.youtube.com/watch?v=0jjeOYMjmDU
https://www.youtube.com/watch?v=QHEQuoIKgNE
https://www.youtube.com/watch?v=AaGK-fj-BAM
https://www.youtube.com/watch?v=f0lkz2gSsIk
>>61950332
>white male
Dropped.
>>61950332
Annoying person
>>61950332
Here are a few more tutorials I like:
https://www.youtube.com/watch?v=aKYlikFAV4k
https://www.youtube.com/watch?v=CKeyIbT3vXI
>>61950332
Fuck off, shill.
What a weak ass presenter.
I bet I could kick his ass.
>>61950332
He's alright, kinda.. ya know. Really really really gay. If you can get past that, he's ok.
>>61950332
Javascript
Stopped reading right there
>>61950375
>male
are you sure?
>>61950332
Why not just use Processing?
>>61951367
quite honestly that does not really matter
you can follow the videos perfectly fine and write the things yourself in a sane language
he doesn't use language specific things that have no alternatives
>>61951333
Same. Doesn't mean that his tutorials aren't useful and entertaining.
>>61950332
>the snake game
>same tuts like 20 years ago
wow we truly progressed
>>61951374
The right is relatively recent considering the statue you take as a reference point on the left.
>>61950332
>21 minute video on how to graph the Lorenz attractor
>can be done in 1-2 minutes in Python/Matlab
>>61951490
Link to tutorial?
>>61950431
A* is trash, try to program this:
https://www.youtube.com/watch?v=KFwxqN_nASM
great exercise if you have algo fetish
>>61951742
I didn't learn it from a tutorial.
Made this based off of one of his tutorials.
Can zoom in fairly reasonably (though it's JS so frame rendering takes a long time).
C++ Asteroids tutorial
https://youtu.be/rWaSo2usU4A
>>61951746
I think I wrote something similar to this for a class 2 years ago
>>61952437
>Game programming tutorial
>2 minute video doesn't even go over the logic
How would I program this curve?
>>61953250x = sin(i) * i;
y = cos(i) * i;
>>61953267
Doesn't seem to work.
>>61953374
Actually it does.
Okay, how would I do the triangular, square, and hexagonal lines?
>>61953250
Not a function. Plot x and y vs time instead. At any one time.
>>61953420
It seems more circular than the golden ratio curve.
>>61953250
>>61953420
>Okay, how would I do the triangular, square, and hexagonal lines?
bumping for this.
>>61953420
>>61953810
I don't know what you're using. But from the looks of it, you evaluate the function at intersections between the curve and a line with whatever argument you're looking for.
So each point would be a solution to the equation of the line and the curve.
Then draw straight lines between points.
>>61953810
>>61953420
>>61953374
>>61953250
this is why math is a required subject in computer science
you can't do anything interesting with graphics without at least a solid understanding of trig
>>61953250
Solved the golden curve. Just need to figure out how to do the triangular spiral.var spiralO;
var spiralT;
var spiralVertexCount = 400;
var iterator = 0;
var iteratorRate = (spiralVertexCount/60) / 2; // 2 seconds @ 60fps
var doFrames = true;
function setup() {
createCanvas(700, 500);
spiralO = [];
spiralT = [];
// Golden spiral has the form
// radius = phi ^ (Theta * 2 / pi)
// phi = Golden raio ~= 1.6
// Spiral O has polar coordinates that iterate from
// theta = 0 .. 6pi
// Spiral T has the same equation but rotated clockwise by pi
phi = 1.61803398875;
for (var i = 0; i <= 6*PI; i+= (6*PI)/spiralVertexCount) {
var powerValue = i * 2 / PI;
var r = Math.pow(phi, powerValue);
var x = r * cos(i);
var y = r * sin(i);
spiralO.push({x:x, y:y});
}
for (var i = 0; i <= 6*PI; i+= (6*PI)/spiralVertexCount) {
var powerValue = i * 2 / PI;
var r = Math.pow(phi, powerValue);
var x = -r * cos(i);
var y = -r * sin(i);
spiralT.push({x:x, y:y});
}
}
function draw() { if (doFrames) {
update();
background(51);
translate(width / 2, height / 2);
stroke(203);
noFill();
beginShape();
for (var i = 0; i < spiralO.length && i < iterator; i++) {
vertex(spiralO[i].x, spiralO[i].y);
}
endShape();
beginShape();
for (var i = 0; i < spiralT.length && i < iterator; i++) {
vertex(spiralT[i].x, spiralT[i].y);
}
endShape();
}}
function update() {
if (iterator >= spiralO.length && iterator >= spiralT.length) { doFrames = false; }
iterator += iteratorRate;
}
>>61954064
even then to get anything remotely interesting done you have to learn shit yourself anyways
you don't learn the trig you need unless you look into it yourself
>>61954648
Solved.
Use spiral vertex increments of PI * 2 / 3for (var i = 0; i <= 6*PI; i+= PI * 2 / 3) {
Squares can be done with PI / 2 increments (etc...)
Test
>>61955987
Anyone able to report if it (the video I made) worked?
>>61950332
oh wow
a screensaver
>>61950332
Learn Logo.
>>61956019
>not coding your own screensavers.
>>61950332
It's fun and the guy is really into it.
At first I thought he's obnoxious and doing tuts on ecstasy, but then I started liking his way of presenting. Dan is actually a pretty cool guy.
>>61951367
>I can't translate JS code to whatever low-level hipster language I'm using
KYS
Fuxk this shit its interesante. Ill give ir a try at home
>>61956853
I had to increase the step-rate towards the end because there appears to be significant computational speed limits in js on my machine.
This is a pretty decent tutorial to create a tetris game.
https://www.youtube.com/watch?v=H2aW5V46khA
>>61950332
Faggot
>>61958190
Of course it had to be a numale.
i like to keep his videos running in the background as I do real work. it helps me stay more motivated.
>>61950332
>>61951382
He did videotutorials for Processing covering his book, "The Nature of Code", some years ago, on vimeo. Quite good altough quite weird at first, but I guess that's just his way of explaining things.