Computer Science in TypeScript (NO DEGREE REQUIRED) (Autocell Ep.01)

  Рет қаралды 45,442

Tsoding Daily

Tsoding Daily

Күн бұрын

Chapters:
- 00:00:00 - Intro
- 00:01:04 - Conway's Game of Life
- 00:03:04 - Pseudo-Code
- 00:09:37 - State Machine
- 00:15:02 - Stealing Art from the Internet
- 00:16:56 - Cellular Automata from Pixels
- 00:19:32 - Convolutions
- 00:20:52 - Plan for today
- 00:22:16 - Creating New Project
- 00:30:23 - Initializing the Canvas
- 00:36:34 - CSS
- 00:38:12 - Grid
- 00:42:49 - Clicking the Grid Cells
- 00:52:10 - JavaScript Arrays
- 01:01:19 - Rendering the State of the Board
- 01:05:17 - Colors of the States
- 01:13:45 - Second board
- 01:15:59 - Computing the Next Board
- 01:19:10 - Counting Neighbors
- 01:29:22 - Le Bouton
- 01:37:34 - Les Boutons Radio
- 01:51:45 - Transition Table
- 02:02:52 - Creating the Repo
- 02:06:22 - Outro
- 02:06:35 - Smooch
References:
- en.wikipedia.org/wiki/Conway%...
- What is a convultion by 3Blue1Brown: • But what is a convolut...
- Vanilla.js Framework: vanilla-js.com/
- Source Code: github.com/tsoding/autocell

Пікірлер: 78
@amidfallen
@amidfallen Жыл бұрын
"I hate all the languages equally"
@bruh-qu2uh
@bruh-qu2uh Жыл бұрын
Well said 😂
@joshuastories
@joshuastories Жыл бұрын
You are officially my favorite programmer 🎉
@toifel
@toifel Жыл бұрын
Being a webdev, I'll most likely never implement 99% of the shit in your videos on the job. That being said, it's fascinating and I learned so much stuff that I thought was useless until I programmed my 1st ESP32 in C. I watch for the entertainment and the learning is the subconscious cherry on top. Keep em coming
@jordixboy
@jordixboy Жыл бұрын
and why you just dont do it at your free time? I mean if you're interested ofc...
@brangtoggez6363
@brangtoggez6363 Жыл бұрын
@@jordixboy I mean you really don't have much free time, Myself I have to hangout, play games, etc. I really don't want to program 99% of my time lol, even though I love coding.
@jordixboy
@jordixboy Жыл бұрын
@@brangtoggez6363 "I have to hangout" Big words, you dont have to, its a choice you do
@brangtoggez6363
@brangtoggez6363 Жыл бұрын
@@jordixboy Well that's the choice I have to make lol. Programming ain't everything buddy, even if it's a job, hangout with the bosses, with people that have better knowledge in coding than you. I mean Relationship is key in the adult world ya know. I have been helped by a lot of people just because I hang out, I interact with the world lol, it's not just for fun, it can still help me to be honest. The world is more complicated than just programming though. I hope It can be that easy just to program and you have it all. Well unless if you are very very talented, or else knowing a lot of people will be more important though. Hope you understand that hangout is not just for fun ( it can be, but if you hangout and meet important people that can help you in the future, it's kinda helpful as well )
@eazypeazy8559
@eazypeazy8559 Жыл бұрын
gamedevs usually implement cellular automata on let's say C++?
@noctavel
@noctavel Жыл бұрын
I feel blessed by knowing this channel
@rian0xFFF
@rian0xFFF Жыл бұрын
Skylab programador
@DnBComplex
@DnBComplex 3 ай бұрын
@@rian0xFFFkkkkkkkkkkkkkkkkkkkkkkkk
@Skellingtor
@Skellingtor Жыл бұрын
Haha this guy is a character and makes me laugh a lot, especially the excitement when something works
@nicolashumbert8344
@nicolashumbert8344 Жыл бұрын
Really entertaining series Zozin you're making my evenings so much more fun lately. Great video in description about convulsions btw 😂
@kdiffin903
@kdiffin903 Жыл бұрын
holy shit this came to my recommended im excited to watch this
@Chad_Elliott
@Chad_Elliott Жыл бұрын
your chill with the code bro like a programming Jedi
@rzwnhmd
@rzwnhmd Жыл бұрын
massiv respect to this guy!!!
@hannokruger8145
@hannokruger8145 Жыл бұрын
Fun fact: It is actually faster to use if else conditions to determine the state of a cell compared to using a lookup table. Even if you store the table as a single int
@goawqebt6931
@goawqebt6931 Жыл бұрын
10:41 you can have any type as a key if you enclose the expression in brackets (otherwise whatever you type is assumed to be string). example: {[1]: "one", [2]: "two"}
@SlinkyD
@SlinkyD Жыл бұрын
Me: "Look Ma, I'm a web developer. Can you switch do that." Mom: *Grabs belt*
@__aj2000__
@__aj2000__ Жыл бұрын
Ready. Set. Go!
@mushroomcrepes4780
@mushroomcrepes4780 Жыл бұрын
tsoders eating good tonight
@XYReason
@XYReason Жыл бұрын
I wish you good health, regards from Serbia!
@c4ashley
@c4ashley Жыл бұрын
IIRC, back in the day of IE6, was a weird ActiveX COM control that had all sorts of security issues. It was also ugly. Big and boxy.
@annusingh4694
@annusingh4694 Жыл бұрын
Here we go!
@greob
@greob Жыл бұрын
Thanks for sharing!
@RedStone576
@RedStone576 Жыл бұрын
no degree required, only sanity
@fresonn
@fresonn Жыл бұрын
What is next? HTML for computer scientists?
@TsodingDaily
@TsodingDaily Жыл бұрын
Thank you for the title idea!
@PixelHamster
@PixelHamster Жыл бұрын
​ @Tsoding Daily prolog instead 🚎
@walterfairfax6043
@walterfairfax6043 Жыл бұрын
55:47 new Array(BOARD_ROWS).fill().map(() => new Array(BOARD_COLS).fill('dead')); you have to use map otherwise the rows will just hold the reference to the same cols array edit: oh he did find out in the end lol.
@vonderklaas
@vonderklaas Жыл бұрын
Thanks buddy!
@vikidprinciples
@vikidprinciples Жыл бұрын
Amazing
@sitter2207
@sitter2207 Жыл бұрын
i like how your brain works
@avi7278
@avi7278 Жыл бұрын
vwhoa j'adore tes boutonssssss.... radios.
@iduran
@iduran Жыл бұрын
Very nice content. Any chance you can share your Emacs config or which color scheme (theme) you are using? Thanks in advance!
@jesse8606
@jesse8606 Жыл бұрын
There is a Tsoding theme available in VScode, ive been using it for quite a while and enjoyed it ever since
@iduran
@iduran Жыл бұрын
@@jesse8606 Great, thanks!
@rafagd
@rafagd Жыл бұрын
18:24 - I think it's because Automaton/Automata are greek words and English has this thing where you have to pluralize the word in the same way you would in it's native language. [which is dumb, but I don't write the rules...]
@Anubis10110
@Anubis10110 Жыл бұрын
Statically Typed my ass 😂😂😂😂😂😂 I love your content..
@ziyadsalem1068
@ziyadsalem1068 4 ай бұрын
1:00:40 I tried something like this: const board = new Array(BOARD_COLS).fill(new Array(BOARD_ROWS).fill('dead')) Edit: my solution introduces a problem where if you set one element to 'alive', all the other elements in the column will be set to alive. After some searching online, I found this solution: const board = new Array(BOARD_ROWS).fill().map(_ => new Array(BOARD_COLS).fill('dead')) After running some benchmarks, I found that a double for loop is faster :/
@TozzaYT
@TozzaYT Жыл бұрын
what ide are you using to code?? it looks so coooool
@ChaoticNeutral6
@ChaoticNeutral6 Жыл бұрын
He's using emacs
@kinars8160
@kinars8160 Жыл бұрын
0..8 range included is that right?
@TheRichieyrich
@TheRichieyrich Жыл бұрын
Wish u could have watched this live.
@valovanonym
@valovanonym Жыл бұрын
18:07 because it comes from latin! The plural of a word ending in on is the same word but ending in a
@hanswoast7
@hanswoast7 Жыл бұрын
Yep. Most weird irregular plurals in languages I know (English, French, German) are because these words are adopted from other languages, mostly from Latin or Greek. Latin is known to fuck around with word endings A LOT :)
@hansdampf2284
@hansdampf2284 Жыл бұрын
Why do I bust out laughing when reading the title?
@yagaot
@yagaot Жыл бұрын
😮💯🔥☝️
@ruslansmirnov9006
@ruslansmirnov9006 8 ай бұрын
52:27 instantiates a 5-letter string literal inside a listener callback in an already one of the slowest languages on earth, with weak typing and sparse arrays... and this is we talking about a cellular automata here guys... lol
@anon_y_mousse
@anon_y_mousse Жыл бұрын
Some notes I have on this one: 20:00 - 3blue1brown video recommended for understanding convolutions, he's so long-winded, I can't watch something longer than 5 minutes 47:26 - that issue with padding around a canvas annoys me, too 52:52 - vim correctly handles DOS and UNIX line endings, why doesn't emacs? 1:32:30 - that's not the proper JS/TS way, you have to create a new framework for each project 1:39:04 - HTML is bloated
@TsodingDaily
@TsodingDaily Жыл бұрын
> I can't watch something longer than 5 minutes Excuse me my stupid question, but how did you manage to watch this entire stream?
@anon_y_mousse
@anon_y_mousse Жыл бұрын
@@TsodingDaily Advanced programming. I wrote an AI that watched it for me and summarized it exactly the way I would. Then I just copied and pasted its text.
@TsodingDaily
@TsodingDaily Жыл бұрын
Why don't you just do the same with 3blue1brown videos?
@anon_y_mousse
@anon_y_mousse Жыл бұрын
@@TsodingDaily You're just pulling my leg now. :))
@joaovinicius4439
@joaovinicius4439 3 ай бұрын
What OS does he use?
@reinoob
@reinoob Жыл бұрын
Automata is the plural of automaton isn't it? English is not my main language.
@joshuathomasbird
@joshuathomasbird Жыл бұрын
Do some Prolog!
@jimyaguasviva4461
@jimyaguasviva4461 Жыл бұрын
I would love to see you create an animation engine like manim from 3b1b😢
@hansschenker
@hansschenker Жыл бұрын
Third state could be: 'corona' !!!
@evasivezim
@evasivezim Жыл бұрын
I hate my favorite language too :)
@soniablanche5672
@soniablanche5672 Жыл бұрын
"Can objects in javascript have numbers as index" yes, that's basically what arrays in javascript are lol
@SajeevanJSPY
@SajeevanJSPY Жыл бұрын
Hello
@basilcooper995
@basilcooper995 Жыл бұрын
18:15 Automaton is greek, and for once the brits decided to preserve the correct plural. Still mispronounced in other ways though, the u makes an "f" sound in this case, eh.
@enra8557
@enra8557 Жыл бұрын
Yes, I already hate my favorite language. And guess what? It's typescript
@phyrokhar
@phyrokhar 2 ай бұрын
yo tsoding are you from saint p? you speak like my gf from there XD
@sitter2207
@sitter2207 Жыл бұрын
25:11 forsen
@keremardcl6759
@keremardcl6759 Жыл бұрын
Being a web developer hurts I guess :)
@fischi9129
@fischi9129 Жыл бұрын
wtf man, how can you hate Intercal? It's my favourite language for a reason ffs
@SimGunther
@SimGunther Жыл бұрын
Even Sanskrit? It's supposed to be the most scientific human language of all times!
@walterfairfax6043
@walterfairfax6043 Жыл бұрын
SanSkript
@MaksGamerPro
@MaksGamerPro Жыл бұрын
@@walterfairfax6043
@digioi
@digioi Жыл бұрын
@@walterfairfax6043 Someone should make that a thing
@Chad_Elliott
@Chad_Elliott Жыл бұрын
hey bro can i have some azura points
@boazblake232
@boazblake232 8 ай бұрын
That’s a lot of porn
@ashutoshaswal
@ashutoshaswal Жыл бұрын
3:54 Destroyed In Seconds (Programmer Edition). Before listening to these wise words: 😎 After: 🥲🕶🤏
@energy-tunes
@energy-tunes Жыл бұрын
theres no way you havent built a discord bot for notifs
Living Machines in TypeScript (Autocell Ep.02)
1:03:57
Tsoding Daily
Рет қаралды 14 М.
Hacking Raylib
2:13:39
Tsoding Daily
Рет қаралды 16 М.
Balloon Stepping Challenge: Barry Policeman Vs  Herobrine and His Friends
00:28
She ruined my dominos! 😭 Cool train tool helps me #gadget
00:40
Go Gizmo!
Рет қаралды 22 МЛН
🍕Пиццерия FNAF в реальной жизни #shorts
00:41
Each found a feeling.#Short #Officer Rabbit #angel
00:17
兔子警官
Рет қаралды 7 МЛН
Is TypeScript (NodeJS) Faster than Go?? |  A server comparison
9:54
ThePrimeagen
Рет қаралды 212 М.
How principled coders outperform the competition
11:11
Coderized
Рет қаралды 1,5 МЛН
CONCURRENCY IS NOT WHAT YOU THINK
16:59
Core Dumped
Рет қаралды 85 М.
TypeScript Wizardry: Recursive Template Literals
14:47
Tech Talks with Simon
Рет қаралды 36 М.
TypeScript Tutotial For Beginners
31:42
Tech With Tim
Рет қаралды 24 М.
SQLx is my favorite PostgreSQL driver to use with Rust.
9:47
Dreams of Code
Рет қаралды 46 М.
Back End Developer Roadmap 2024
10:30
freeCodeCamp.org
Рет қаралды 411 М.
AIs learn to WALK
20:21
Pezzza's Work
Рет қаралды 52 М.
Карточка Зарядка 📱 ( @ArshSoni )
0:23
EpicShortsRussia
Рет қаралды 783 М.
iPhone 15 Unboxing Paper diy
0:57
Cute Fay
Рет қаралды 3,7 МЛН
Apple watch hidden camera
0:34
_vector_
Рет қаралды 60 МЛН
ПОКУПКА ТЕЛЕФОНА С АВИТО?🤭
1:00
Корнеич
Рет қаралды 1,2 МЛН
WWDC 2024 - June 10 | Apple
1:43:37
Apple
Рет қаралды 10 МЛН