Code Persist
Code Persist
  • Видео 8
  • Просмотров 749 369
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:...
Просмотров: 76 650

Видео

Don't be Lazy use Containers
Просмотров 23 тыс.4 месяца назад
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
Просмотров 212 тыс.Год назад
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
Просмотров 334 тыс.Год назад
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...

Комментарии

  • @CerealMalt
    @CerealMalt 2 дня назад

    Dont be Fanboys , listen to what he says instead of gleefully saying it's a python dev complaining. He makes a point

  • @VíctorManuelDíazNeto
    @VíctorManuelDíazNeto 2 дня назад

    2:11 i dont think its bad tbh, i dont even code in C++, i just read the keywords and saw a foreach that returns 2 to every element, so it must be a list with the size of the list passed, then it has accumulate, that i suppose sums the elements up, and then we sort it

  • @tomrkba4685
    @tomrkba4685 2 дня назад

    “I am a pyhon developer…..”. Shut up.

  • @Wkaelx
    @Wkaelx 4 дня назад

    Sounds like a really bad skill issue.

  • @valentinrafael9201
    @valentinrafael9201 7 дней назад

    OOP is good for experiments and prototyping or smaller projects, because they do not get so complex. ANything else, it's unneeded unless it's needed. THe big mistake I hear people make is that they reach for OOP IMMEDIATELY before they even know if it will help them or not. That's like already starting optimizing before you even understand what needs to be otpimized. I think the issue is that people really believe they DO need it, which makes it tricky to not start with 10 layers of inheritance. Same applies to FP, however, I gotta say, I do find myself using FP A LOT MORE than OOP. Command pattern and strategy pattern are my most used OOP design patterns.

  • @germandiago2193
    @germandiago2193 15 дней назад

    I csn see you have used C++ in your life as much as the duration of your video.

    • @Wkaelx
      @Wkaelx 4 дня назад

      "There is no indication of what this random function returns" It's cause you didn't document the code for example, I can do the same example in python, I = random_function(n) "Oh this is so bad I can't understand what it does".

  • @linuxguy1199
    @linuxguy1199 21 день назад

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

  • @esmailkhorchani915
    @esmailkhorchani915 21 день назад

    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 23 дня назад

    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 26 дней назад

    for segfaults just use a debugger and backtrace

  • @josersleal
    @josersleal 29 дней назад

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

  • @darklord8793
    @darklord8793 Месяц назад

    Stopped watching at exactly 0:02

  • @Oi-mj6dv
    @Oi-mj6dv Месяц назад

    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 Месяц назад

    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 Месяц назад

      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 Месяц назад

    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 Месяц назад

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

  • @CarlosWashingtonMercado
    @CarlosWashingtonMercado Месяц назад

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

  • @romania-n6q
    @romania-n6q Месяц назад

    keep cpp as cpp and keep interpreted stuff for interpreted languages

  • @johanmilterjakobsen1627
    @johanmilterjakobsen1627 Месяц назад

    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.

  • @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 2 месяца назад

    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 2 месяца назад

    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 2 месяца назад

    Video is too short

  • @shugyosha7924
    @shugyosha7924 2 месяца назад

    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 2 месяца назад

    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 2 месяца назад

    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 2 месяца назад

    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 2 месяца назад

    What a dumb video

  • @valerianmp
    @valerianmp 2 месяца назад

    0:21 wtf man I immediately grab my phone

  • @kaffeetasse2461
    @kaffeetasse2461 2 месяца назад

    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 2 месяца назад

    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 2 месяца назад

      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

    • @Wkaelx
      @Wkaelx 4 дня назад

      @@euuIgor I've read a bit about it, I seems like some devs find it more flexible than "Prinf()" also you're not forced to use cout.

  • @kayakMike1000
    @kayakMike1000 2 месяца назад

    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 2 месяца назад

    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 2 месяца назад

    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 2 месяца назад

    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 2 месяца назад

    Love the visuals you used on the video !

  • @xyzabc123-o1l
    @xyzabc123-o1l 2 месяца назад

    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 месяца назад

    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 2 месяца назад

    skill issue

  • @animuspexus
    @animuspexus 2 месяца назад

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

  • @filippobuonco95
    @filippobuonco95 2 месяца назад

    What theme are you using for the terminal?

  • @zachp2241
    @zachp2241 2 месяца назад

    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 2 месяца назад

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

    • @Wkaelx
      @Wkaelx 4 дня назад

      Cuz it is.

  • @MiLK-sp5xi
    @MiLK-sp5xi 2 месяца назад

    3:14 Python user scared by ld.😅