Using C instead of Bash

  Рет қаралды 42,293

Tsoding Daily

Tsoding Daily

Күн бұрын

Пікірлер
@TsodingDaily
@TsodingDaily 3 жыл бұрын
Look at the video id gachiGASM
@pihnea
@pihnea 3 жыл бұрын
this must be a sign
@ivypierlot
@ivypierlot 3 жыл бұрын
me when i have a gachigasm
@Q_20
@Q_20 3 жыл бұрын
Betudidnexpectet
@qm3ster
@qm3ster 3 жыл бұрын
www.youtube.com/watch?v=gachiGASM
@konstantinrebrov675
@konstantinrebrov675 Жыл бұрын
According to KZbin this video is not available any more.
@Zwiebelgian
@Zwiebelgian 3 жыл бұрын
"If you let the child go, it will act like a parent" "If child equals 0 that means we are in a child" "First thing you try to do, you try to fork a child, and if you successfully fork the child, you try and execute the child." -Tsoding, 2021
@pitust
@pitust 3 жыл бұрын
lmao
@ractheworld
@ractheworld 3 жыл бұрын
Starts proper then goes south fast.
@Avianable
@Avianable 3 жыл бұрын
In vim, you can just press ctrl-x on a number and it will decrease its value automagically :)
@dmitry.shpakov
@dmitry.shpakov 3 жыл бұрын
And ctrl+a increase that number by one.
@mirandnyan
@mirandnyan 3 жыл бұрын
and emacs has a package for that too (not to start a fight, I use both)
@alessandroias
@alessandroias 3 жыл бұрын
I thought he switched to vim... didn't he?
@otesunki
@otesunki 3 жыл бұрын
@@alessandroias ngl it looks like evil emacs
@geoffl
@geoffl 3 жыл бұрын
ctrl+a for opposite direction
@10e999
@10e999 3 жыл бұрын
I really like your C programming stream. Your good at explaining the thinking behind the code. Thanks for your work.
@TheLordoftheDarkness
@TheLordoftheDarkness 3 жыл бұрын
28:07 That's me with the const keyword. When I try to do things half good with const, I end up with lots of compilation error until I say "fuck it" and unconst everything.
@janeriklofflat8039
@janeriklofflat8039 3 жыл бұрын
"Not all of my recreational activity is actually watchable." Not if you don't switch your platform.
@PizzaGamingTheReal
@PizzaGamingTheReal 2 жыл бұрын
For checking if execvp was OK or not you can even avoid writing if statement and check for -1, because if everything was OK it will not move to the next line, cause the process will be changed and if something went wrong then it will continue. So you could write something like this: execvp(argv[0], argv); error(...); function which also exits with a non-zero status code.
@h3xad3cimaldev61
@h3xad3cimaldev61 3 жыл бұрын
24:53 don't know how he said it with a straight face
@TsodingDaily
@TsodingDaily 3 жыл бұрын
Years of practice
@h3xad3cimaldev61
@h3xad3cimaldev61 3 жыл бұрын
@@TsodingDaily ah yes
@technologicalwaste7612
@technologicalwaste7612 3 жыл бұрын
The documentation plugin looks very convenient. Each time I watch one of your videos, I am given the impression that my setup is relatively deprived. You appear to have every potentially useful resource hot-keyed.
@bratpeki
@bratpeki 3 жыл бұрын
hey tsoding, you're missing a colon on the third line of the description. Lol!
@TsodingDaily
@TsodingDaily 3 жыл бұрын
Check again
@iwikal
@iwikal 3 жыл бұрын
@@TsodingDaily hey tsoding, you're missing a colon on the second line of the description. Lol!
@sewerside01142
@sewerside01142 3 жыл бұрын
pull requests be like
@Skulltroxx
@Skulltroxx 2 жыл бұрын
man I don't understand shit, but still keep watching
@qm3ster
@qm3ster 3 жыл бұрын
Wouldn't calling `tmp_clean()` (or rewind) inside the loop after printf be better? That way each of your arguments can be 8MB instead of the escaped total.
@TsodingDaily
@TsodingDaily 3 жыл бұрын
Sure, you have a lot of flexibility with this approach.
@qm3ster
@qm3ster 3 жыл бұрын
🐴
@Control747
@Control747 3 жыл бұрын
Noice video. But where was the intro? I didn't expect no intro. :(
@Daniel-hz6pt
@Daniel-hz6pt 3 жыл бұрын
I would love to see you write some kind of client/server application, your insights on memory management especially remote are super interesting, and are the main reasons I avoid C/C++ for remote services
@irenicsuspense
@irenicsuspense 3 жыл бұрын
I was thinking the same thing!
@CaptainWumbo
@CaptainWumbo 3 жыл бұрын
I like the idea that a zero urgency todo is just a Tod. I have 1000s of Tods I will never get around to.
@mathalphabet5645
@mathalphabet5645 3 жыл бұрын
This was awesome lecture.
@venkateshhariharan4341
@venkateshhariharan4341 3 жыл бұрын
nice video, it helped me to learn a lot thanks
@33v4.
@33v4. 3 жыл бұрын
This was probably recommended to me because the channel has TS in the name, but no TS in the channel, which is sad. But good content. Big fan
@karmavil4034
@karmavil4034 3 жыл бұрын
Quite impressive and very pleasant. I was wondering what else do you have (in case this is not enough) and bang! I need a couple of lifetime vacations of my current unemployment situation to stay up to date (did someone said C). Absolutely wonderful management of time. I don't usually see that much but technically this is unusal
@alexzander__6334
@alexzander__6334 3 жыл бұрын
back to emacs
@TheRedbeardster
@TheRedbeardster 3 жыл бұрын
Подскажите, пжл, имя темы для емакса :) Could you tell me , please, the emacs's theme name? Thanks!
@eduardoantunes2958
@eduardoantunes2958 3 жыл бұрын
It's gruber darker I think
@oscardeits4709
@oscardeits4709 3 жыл бұрын
Seems wasteful to create / write the dot file to disk. "dot" can read from stdin, which means that if you fork the dot command first (and do the proper pipe duping and closing) you can print your dotfile straight to the generator.
@BRLN1
@BRLN1 3 жыл бұрын
"I'am literally copying code from python" ... just alike modern history of c++
@fennecbesixdouze1794
@fennecbesixdouze1794 3 жыл бұрын
The name "trie" comes from the word "reTRIEval".
@unforkableonion5081
@unforkableonion5081 2 жыл бұрын
you probably know it, but just in case graphviz is usable as c library too. hope you are fine and smh have still access to the internet. stay safe
@meneereenhoorn
@meneereenhoorn 3 жыл бұрын
I am trailing behind oOoooo. Still on vim, what am I waiting for! Close the windows.
@pushqrdx
@pushqrdx 3 жыл бұрын
you can actually add something like this at the beginning of a c file make it executable and it works like a shebang :D #if 0 cc -Wall -Wextra -std=c17 "$0"; exit #endif
@on8t
@on8t 3 жыл бұрын
и ни одного комментария на русском(
@Denis-ez8gd
@Denis-ez8gd 3 жыл бұрын
Hey, thanks for the video. Btw, I really don't like this `tmp_clean()` impl. I am sure, you need to clean the buffer with something like memset, or bzero, even if we are talking about demo purpose... Otherwise someone could copy this code, forgot about the important part and got security problem.
@TsodingDaily
@TsodingDaily 3 жыл бұрын
I think the real problem here is people copying random code from the Internet into security critical applications without thinking, not me just chilling and coding some stuff for fun. I disclaim any responsibility for the actions of such people. Not my problem, sorry.
@Denis-ez8gd
@Denis-ez8gd 3 жыл бұрын
@@TsodingDaily ok, thanks for the response.
@AndiSteilwandi
@AndiSteilwandi 3 жыл бұрын
Reusing tools and glueing them together via shell script preferred. This is too much effort practically speaking... Aesthetics: What's the point of text mode when using the mouse all the time? Also, consider using vim for efficiency. 👍
@artusartus4540
@artusartus4540 3 жыл бұрын
Yay first
@greob
@greob 3 жыл бұрын
Pretty cool!
This Data Structure could be used for Autocomplete
1:54:31
Tsoding Daily
Рет қаралды 43 М.
Stealing ideas from other Open Source projects
55:52
Tsoding Daily
Рет қаралды 25 М.
БОЙКАЛАР| bayGUYS | 27 шығарылым
28:49
bayGUYS
Рет қаралды 1,1 МЛН
She wanted to set me up #shorts by Tsuriki Show
0:56
Tsuriki Show
Рет қаралды 8 МЛН
You Should NOT Program on Linux Like This
2:14:57
Tsoding Daily
Рет қаралды 38 М.
Coding a Bouncing Ball in Terminal
1:26:29
Tsoding Daily
Рет қаралды 82 М.
Powerful Meta-Programming in C
2:38:40
Tsoding Daily
Рет қаралды 24 М.
Keynote: Advent of Code, Behind the Scenes - Eric Wastl
46:01
Let's Create a Compiler (Pt.1)
1:11:03
Pixeled
Рет қаралды 581 М.
The Only Unbreakable Law
53:25
Molly Rocket
Рет қаралды 345 М.
Stop using std::vector wrong
23:14
The Cherno
Рет қаралды 159 М.
Searching Duplicate Files with C
2:39:23
Tsoding Daily
Рет қаралды 37 М.
БОЙКАЛАР| bayGUYS | 27 шығарылым
28:49
bayGUYS
Рет қаралды 1,1 МЛН