- Видео 8
- Просмотров 732 970
Code Persist
США
Добавлен 11 мар 2023
Everything from hot takes to the nitty gritty of programming languages. If a topic relates to coding it's fit for a Code Persist video!
How to finally Git Good
Git is a version control software that you’ll definitely use in your career and coding journey. Git helps you track your code and safely add new features to your code. I’ll talk about the basics of git and even show how to make pull requests on Github in this git tutorial! If you enjoyed the video a like and sub would be amazing!
💻 Github💻
github.com/code-persist/gitGood
The links below are Amazon affiliate links, meaning I may earn a small commission if you make a purchase through them.
🎥 My Gear 🎥
Laptop - amzn.to/3TOfJns
Mic - amzn.to/3N5wsyS
Keyboard - amzn.to/3Y30j1n
Timestamps:
0:00 dreaming
0:41 git intro
1:01 git staging
1:55 git reset
2:54 branches
3:44 merge explanations
4:40 merge conflict
5:...
💻 Github💻
github.com/code-persist/gitGood
The links below are Amazon affiliate links, meaning I may earn a small commission if you make a purchase through them.
🎥 My Gear 🎥
Laptop - amzn.to/3TOfJns
Mic - amzn.to/3N5wsyS
Keyboard - amzn.to/3Y30j1n
Timestamps:
0:00 dreaming
0:41 git intro
1:01 git staging
1:55 git reset
2:54 branches
3:44 merge explanations
4:40 merge conflict
5:...
Просмотров: 74 187
Видео
Don't be Lazy use Containers
Просмотров 23 тыс.3 месяца назад
Docker Containers are essential to running code in production environments. Do you ever write some code and have it fail to run somewhere else, a container will solve that problem in no time! They take no time to spin up and are lightning fast. In this video we'll go over why to use docker containers and create a simple Docker container to run a Node.js web application. Not only will understand...
Is This the Next Python?
Просмотров 25 тыс.Год назад
Nim is a modern language with the syntax of Python, the speed of C, and the extensibility of Lisp. You can do almost anything with Nim from systems programming to high-level development of webpages and apps. If you enjoyed the video a like and sub would be amazing! 🔥 Nim Links 🔥 - Nim Homepage: nim-lang.org/ - Nim Docs: nim-lang.org/documentation.html - Nim Compiler Options: nim-lang.org/docs/n...
Data Collection through Web Scraping and Proxies
Просмотров 3 тыс.Год назад
🔥 Bright Data: brdta.com/codepersist Web Scraping is increasingly useful as more services cut their APIs. For some products, it's the only way to get data from the website. In this video, we'll be web scraping the internet with the Bright Data Scraping Browser to prevent many blocks from websites. We'll also look through Reddit and perform sentiment analysis on people's opinions regarding stock...
Does Python Really Need the GIL
Просмотров 21 тыс.Год назад
Python is a great language that can do almost anything. Its ease of use has been one of its greatest features. The Global Interpreter Lock is the opposite and can make it confusing to understand why multithreading doesn't work as you would expect. If you like the video consider subscribing for more like these! 0:00 GIL? 0:56 GIL Uses 1:10 Reference Counting 2:04 Multithreading 3:03 Numpy/IO thr...
Rust, Modern Solutions to Modern Problems
Просмотров 55 тыс.Год назад
Rust is a statically typed compiled language designed around performance and memory safety. Many of its features are considerably modern and solve a large sum of unsafe memory issues targeting computers today. Rust's borrow checker enables developers to write safe code with the power of low-level languages and the syntax of higher-level languages. If you enjoyed the video feel free to hit the s...
Ditch your Favorite Programming Paradigm
Просмотров 208 тыс.Год назад
Programming paradigms define the way our code is written and styled. With modern-day programming, a multi-paradigm approach is getting far more popularized. It's more important now than ever to not have a favorite paradigm as utilizing a multi-paradigm approach can significantly increase your coding quality and efficiency. If you enjoyed the video feel free to hit the subscribe button for more ...
How C++ took a turn for the worse
Просмотров 325 тыс.Год назад
C is a great language to know; however, as time goes on more features are added to the language. These extra features make it far weirder than it used to be. If you liked the video subscribe and hit that like button! 0:35 auto 1:32 STL 2:33 Package Manager 3:22 Error Messages 4:18 Backward Compatibility The links below are Amazon affiliate links, meaning I may earn a small commission if you mak...
keep cpp as cpp and keep interpreted stuff for interpreted languages
As a C++ developer for about 8 years, i dont think this is a fair review... You should not blame the language for bad code. The modern features are there to make it easier, but is not something you have to use. So again dont blame the language, when its really just a skill issue for most people disliking c++
skill issue
how do you animate these videos?
the idea for refactoring "Perfectly readable" code to this amalgamation is usually perfomance thats just a bad case here because there wont be a big impact here, but once just by changing a function i've managed to get it 5x faster
C++11 and I call it a day
So FPOOP is better than FP? I don't think so... Also, abstraction doesn't have anything to do with encapsulation. If anything, it has more to do with polymorphism. It's not about a hidden implementation. It's about defining an interface without the need to provide an implementation. E.g. a library may not even provide an implementation to an abstract interface, class, or method and still compiles fine, whereas the implementations can be provided by the users of that library (and of course they happen to also know the implementation then). Basically, any client of a method/function/procedure should not need to know its implementation details if it's well written and has a proper interface/signature. That concern is orthogonal to abstraction.
uhh just because you got a gun does not mean you have to shoot yourself???
Functional program feels slow as is due to data copy , it adds so much time to process that other get it done quickly, the most expensive taks from cpu side is moving data and not computing data. It seems aceptable tradeoff but you know deep down as project grows large the experience of ui feels laggy more and more which could be just avoidable if it wasn't copied data and shared instead .
Just turn ur car params init to slots and u are functional, or you can do some funky, you could functions which take car as a module and throw it in there, if u have many you could partialize. For the car example, if i were doing functional, i would combine it with modular ``` import car mycar = Car(100, "honda") car.maintenance_check(mycar) ``` For car module ``` from __future__ import annotations from typing imort NamedTuple from enum import Enum, auto clads Make(Enum): Honda:Manufacturer=auto() Toyota:Manufactuter=auto() class Manufacturer(NamedTuple): miles_for_service:int=100 ... class Honda(Manufacturer): ... class Car(NamedTuple): make:Manufacturer def maintenance_check(car:Car) -> bool: if car.Miles < Manufactucturer[car.Make].miles: return False else: return True ```
You seem like someone who doesn't really have much experience with C++. Not sure why you would make a video about it like you do.
im just trying to figure out how to remove a file i committed in a commit thats 7 commits back without changing any of the last 6 commits. i cant push bc that file is too large to push to github, i never meant to add it but i cant remove it no matter what i try.
Video is too short
C++ was one of my first languages so I kind of just accepted this is what coding software is like. Now I look at it and think it's pretty crazy. I still like it though. You do feel more pro coding C++ than other languages.
on linux package management for C/C++ programs is easy since you can install libraries through the systems package manager itll put all the shared objects in /usr/lib and all the headers in /usr/include automatically
as a software developer (C primary) dealing with C++ gives me pure pain. I have no idea such ugly language could be made. Using C++ in embedded software development should be considered a crime.
I agree that C++ has become weirder and weirder, I never use auto. I prefer to use classic syntax every time, I mostly develop for small micro-controllers and IOT and prefer to explicitly tell what I need it to do, usually the code is more efficient and faster than using mambo jumbo optimized and modern syntax and I need to understand what I have done after some time as well 😅
What a dumb video
0:21 wtf man I immediately grab my phone
same with python. i like python2 because of the less keyboard typing needed. for example the python2: print 'hallo' this in python3 needs this aditionaly round brackets: print('hallo'), this is much more typing work. two times press shift and search the round brackets key. why did they make this so complicated in python3? i go back to python2 because of this.
i want to add, I hate cout with a passion. printf already allows you to read the sentence in its entirety but with cout there's just << wrapped by <<. it's so messy and long.
So true, to this day I cannot comprehend how someone thought 'cout' was remotely good, it is so ugly and by far the biggest downgrade from C
Uh.... C/C++ has an entire system underneath it to manage packages; there's RPM, pacman, zypper, apt or whatever debian/ubuntu does...
Honestly, I hate tons of those bloody "std::"'s all over your code in modern C++. It's an actual torture when you're reading the code and complete waste of time when writing one
The condensed version is just functional programming. As a python developer you should love this. Also when running into a segfault you can use the core file to debug with gdb. Really useful
At 0:08, you have a syntax error. bool greater_than = [](int a, int b) { return a > b; }; You are assigning a lambda to a bool. You probably meant to write auto greater_than = [](int a, int b) { return a > b; };, potentially with a trailing returntype auto greater_than = [](int a, int b)-> bool { return a > b; }; One could even write static constexpr auto greater_than = [](int a, int b) { return a > b; }; because the Lambda doesn't capture anything. Or, bool greater_than = [](int a, int b) { return a > b; }(5, 10);
Love the visuals you used on the video !
I write and compile all of my code myself. It is the easiest and only way to do real development. If you are using someone else's code, 99% of the time they themselves couldn't compile and link their code without depending on a bullshit build system.
2:38 he burned c++ there. My ONLY gripe with c++ is the difficulty with installing libraries.
skill issue
modern language is what made me go from go to d and then to c++.
What theme are you using for the terminal?
The biggest problem with c++ is that devs think they need to use its special functions and features that it provides when simple c-style code 95% percent of the time is the best option.
Idk... kinda just sounds like a Python dev ranting about something they don't really understand fully.
3:14 Python user scared by ld.😅
that video made absolutely no sense
modern c++ is awesome. most of the problems mentioned are not problems especially if you use modern IDE or an editor with LSP
2 minutes in rn, in most if not all the issues so far can be solved by comments. I realize those tend to be rare tho, but if lack of comments are the problem, then the problem sits between the chair and the keyboard.
Its python or straight c for me! Maybe assembly for fun.
Man, I honestly tell you this is the best Git/Github video I've seen. Im pretty impressed how you manage to tell in an easy way and clearly so many topics in less than 10 mins. Kudos for you, bro 👍🏼👍🏼👍🏼
1:22 nitpick - `git add .` adds all files in `.` (the current directory). Adding "all the files" (in the repo) is done with `git add -A`, which is a meaningful distinction if you are in a subdirectory
This is one of the videos that i had to check if it is a april fool.
skill issue
Skill issue
0:21 I panicked, and put on my headset 😂😂
I am watching nearly midnight and this woke me up
I legit jumped upon hearing that bruh
I just mod old Nintendo games. You can't use modern syntax there.
Cpp is a full package, meaning it has everything you like, but also everything you hate about a programming language. If Python is about 'There should be only one obvious way to do it,' Cpp is about 'There's a dozen million ways to go about it. Suite yourself.' For instance, ```auto foo = someRandomFunction();``` is a warcrime of a code to ever write. You should never write such code, auto is simply not created to be used in that fashion, but Cpp lets you do it anyways, because Cpp enables not disables. Likewise with overusing STL. The fact that you are capable of jumbling up 12 lines of code into a messy one-liner doesn't mean you should do so. Backward compatability with C is not there just for the sake of existence; it is actually there for you to make use of it. Write C-ish codes where it makes sense. Modern programming philosophies say a programming language shouldn't give a chimp a machine gun, Cpp says back to you, 'then don't be a chimp.' Cpp trusts you not to be a moron; the rest is up to you.
The only rant reasonable in this video, I think, are parts about external package building and error messages. The rest about the language itself, I'm not so sure.
Just add -force flag on every git command, problem solved
Why aren't they working on a package manager?
I love pip
the code formatting is killing me