[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

What does /g/ think of The Coding Train? I've gone thr

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 50
Thread images: 18

File: 0.jpg (36KB, 480x360px) Image search: [Google]
0.jpg
36KB, 480x360px
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
>>
File: lorenz3.png (325KB, 800x603px) Image search: [Google]
lorenz3.png
325KB, 800x603px
>>
>>
>>61950332

Fuck off, shill.
>>
File: programmer talks.jpg (89KB, 1280x720px) Image search: [Google]
programmer talks.jpg
89KB, 1280x720px
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
>>
File: 15540708.jpg (146KB, 2381x1129px) Image search: [Google]
15540708.jpg
146KB, 2381x1129px
>>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.
>>
File: 1502671012165.gif (352KB, 256x256px) Image search: [Google]
1502671012165.gif
352KB, 256x256px
>>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).
>>
File: 1498790177558.jpg (27KB, 460x525px) Image search: [Google]
1498790177558.jpg
27KB, 460x525px
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
>>
File: 1502603965720.jpg (107KB, 653x630px) Image search: [Google]
1502603965720.jpg
107KB, 653x630px
How would I program this curve?
>>
>>61953250
x = 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 / 3

for (var i = 0; i <= 6*PI; i+= PI * 2 / 3) {


Squares can be done with PI / 2 increments (etc...)
>>
File: twin_golden_triangular_spiral.webm (36KB, 710x508px) Image search: [Google]
twin_golden_triangular_spiral.webm
36KB, 710x508px
Test
>>
>>61955987
Anyone able to report if it (the video I made) worked?
>>
>>61950332
oh wow
a screensaver
>>
>>61950332
Learn Logo.
>>
File: twin_golden_spiral.webm (49KB, 706x506px) Image search: [Google]
twin_golden_spiral.webm
49KB, 706x506px
>>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
>>
File: fractal_rectangles.webm (2MB, 802x506px) Image search: [Google]
fractal_rectangles.webm
2MB, 802x506px
>>
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.
Thread posts: 50
Thread images: 18


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.