Code Persist
Code Persist
  • 8
  • 743 755
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:43 rebase
6:30 github basics
8:12 pull requests
#programming #software #git
มุมมอง: 75 797

วีดีโอ

Don't be Lazy use Containers
มุมมอง 23K3 หลายเดือนก่อน
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?
มุมมอง 25Kปีที่แล้ว
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
มุมมอง 3Kปีที่แล้ว
🔥 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
มุมมอง 21Kปีที่แล้ว
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
มุมมอง 55Kปีที่แล้ว
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
มุมมอง 211Kปีที่แล้ว
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
มุมมอง 331Kปีที่แล้ว
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...

ความคิดเห็น

  • @linuxguy1199
    @linuxguy1199 6 วันที่ผ่านมา

    segfault says exactly where the error occurs, you just can't read...

  • @esmailkhorchani915
    @esmailkhorchani915 6 วันที่ผ่านมา

    functional is good for modeling a more abstract problem (closer to actual math) while oop is better at modeling already clearer and closer to reality systems (talking objects)

  • @decky1990
    @decky1990 8 วันที่ผ่านมา

    1. auto has its place, like with reducing pleonasm or trailing type deductions, not obfuscating intent 2. the STL is fine - what you're describing is C++20 mixed with fold expression; it's interesting to see the potential of these functions, but just because you can doesn't mean you should 3. dependencies, learn cmake fetchcontent 4. segfaults, learn to debug with gdb and read core files 5. smart pointers is not the same as raw heap allocation - it is a definite improvement

  • @thartanian
    @thartanian 11 วันที่ผ่านมา

    for segfaults just use a debugger and backtrace

  • @josersleal
    @josersleal 14 วันที่ผ่านมา

    Not preference. FP does not work on its own merits. OOP ois battle proofed. .

  • @darklord8793
    @darklord8793 15 วันที่ผ่านมา

    Stopped watching at exactly 0:02

  • @Oi-mj6dv
    @Oi-mj6dv 16 วันที่ผ่านมา

    Nah, its enormous but its not weird or bad. Its just a gigantic language. Also the solution they arrived at for metaprogramming is clunky. But thats true for almost all non lisp programming languages. Metaprogramming is just fundamentally weird and stupid (yes im looking at you rust) when you are not dealing with s expressions. Outside of that, its a perfectly usable and valid language. You dont have to use all the features all the time, lol. And yes, it does take a lifetime to master. But so does any worthwile semipowerful language out there.

  • @paulwayper7526
    @paulwayper7526 16 วันที่ผ่านมา

    The problem with C and C++ and Java is: they never deprecate anything. Nothing is ever removed, because there's too many people using ossified code bases who want to keep their old bad behaviour rather than having to convert a million lines of code to better practices. And so we end up with three different `malloc`s, fifteen new templates, and keywords like `auto` being misused to just hope the compiler will figure it out. Until these languages actually start deprecating old bad practices, they're always going to end up with a mess of old and new, bad and good, side by side and indistinguishable.

    • @FalcoGer
      @FalcoGer 16 วันที่ผ่านมา

      that is wrong. std::random_shuffle was removed in c++17, garbage collector was removed, auto_ptr was removed, register keyword was removed, std::strstream and related were replaced with std::stringstream, along with plenty of other things.

  • @zoedsoupe
    @zoedsoupe 18 วันที่ผ่านมา

    interesting, but why people insist in the idea of oop being about "modeling the real world"? i mean, you can use "real world" as models on any paradigm. a better definition would be that oop have behaviour and state coupled while state is implicit here in gereral, on the other hand fp have behaviour and state decoupled, immutable and explicit

  • @lukeyyc
    @lukeyyc 21 วันที่ผ่านมา

    sounds like this guy isn't great at c++

  • @CarlosWashingtonMercado
    @CarlosWashingtonMercado 22 วันที่ผ่านมา

    Best video I've seen in the topic. Thanks.

  • @romania-n6q
    @romania-n6q 27 วันที่ผ่านมา

    keep cpp as cpp and keep interpreted stuff for interpreted languages

  • @johanmilterjakobsen1627
    @johanmilterjakobsen1627 28 วันที่ผ่านมา

    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++

  • @poopingnuts
    @poopingnuts หลายเดือนก่อน

    skill issue

  • @ぜん-l6p
    @ぜん-l6p หลายเดือนก่อน

    how do you animate these videos?

  • @StormLord07
    @StormLord07 หลายเดือนก่อน

    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

  • @sorrefly
    @sorrefly หลายเดือนก่อน

    C++11 and I call it a day

  • @bitti1975
    @bitti1975 หลายเดือนก่อน

    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.

  • @vladyslavkryvoruchko
    @vladyslavkryvoruchko หลายเดือนก่อน

    uhh just because you got a gun does not mean you have to shoot yourself???

  • @mbk0mbk
    @mbk0mbk หลายเดือนก่อน

    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 .

  • @ravenecho2410
    @ravenecho2410 หลายเดือนก่อน

    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 ```

  • @mattihnen2764
    @mattihnen2764 หลายเดือนก่อน

    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.

  • @ZenityStudios
    @ZenityStudios หลายเดือนก่อน

    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.

  • @sirmewo5510
    @sirmewo5510 หลายเดือนก่อน

    Video is too short

  • @shugyosha7924
    @shugyosha7924 หลายเดือนก่อน

    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.

  • @LowPolyChicken
    @LowPolyChicken หลายเดือนก่อน

    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

  • @unix2097
    @unix2097 หลายเดือนก่อน

    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.

  • @MorgothCreator
    @MorgothCreator หลายเดือนก่อน

    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 😅

  • @whatshendrix
    @whatshendrix หลายเดือนก่อน

    What a dumb video

  • @valerianmp
    @valerianmp หลายเดือนก่อน

    0:21 wtf man I immediately grab my phone

  • @kaffeetasse2461
    @kaffeetasse2461 หลายเดือนก่อน

    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.

  • @superdahoho
    @superdahoho หลายเดือนก่อน

    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.

    • @euuIgor
      @euuIgor หลายเดือนก่อน

      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

  • @kayakMike1000
    @kayakMike1000 หลายเดือนก่อน

    Uh.... C/C++ has an entire system underneath it to manage packages; there's RPM, pacman, zypper, apt or whatever debian/ubuntu does...

  • @akaikangaroo
    @akaikangaroo หลายเดือนก่อน

    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

  • @ddg-norysq1464
    @ddg-norysq1464 หลายเดือนก่อน

    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

  • @scharfschtze
    @scharfschtze หลายเดือนก่อน

    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);

  • @davidekWasTaken
    @davidekWasTaken หลายเดือนก่อน

    Love the visuals you used on the video !

  • @xyzabc123-o1l
    @xyzabc123-o1l หลายเดือนก่อน

    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.

  • @mjpthetrucker9485
    @mjpthetrucker9485 หลายเดือนก่อน

    2:38 he burned c++ there. My ONLY gripe with c++ is the difficulty with installing libraries.

  • @sad_man_no_talent
    @sad_man_no_talent หลายเดือนก่อน

    skill issue

  • @animuspexus
    @animuspexus หลายเดือนก่อน

    modern language is what made me go from go to d and then to c++.

  • @filippobuonco95
    @filippobuonco95 หลายเดือนก่อน

    What theme are you using for the terminal?

  • @zachp2241
    @zachp2241 หลายเดือนก่อน

    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.

  • @oglothenerd
    @oglothenerd หลายเดือนก่อน

    Idk... kinda just sounds like a Python dev ranting about something they don't really understand fully.

  • @MiLK-sp5xi
    @MiLK-sp5xi 2 หลายเดือนก่อน

    3:14 Python user scared by ld.😅

  • @mostrealtutu
    @mostrealtutu 2 หลายเดือนก่อน

    that video made absolutely no sense

  • @OhhCats
    @OhhCats 2 หลายเดือนก่อน

    modern c++ is awesome. most of the problems mentioned are not problems especially if you use modern IDE or an editor with LSP

  • @ChatloupidUwU
    @ChatloupidUwU 2 หลายเดือนก่อน

    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.

  • @KaletheQuick
    @KaletheQuick 2 หลายเดือนก่อน

    Its python or straight c for me! Maybe assembly for fun.

  • @TheDismalRabbit
    @TheDismalRabbit 2 หลายเดือนก่อน

    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 👍🏼👍🏼👍🏼