КОМЕНТАРІ •

  • @thomaslee3565
    @thomaslee3565 5 років тому +568

    As a level 100XX developer, I stopped using external dependencies because I realized I was copying and pasting other people's code into my projects. Now I write everything from scratch and I am unemployed.

    • @theemacsen1518
      @theemacsen1518 4 роки тому

      XD

    • @muhamadimron9785
      @muhamadimron9785 4 роки тому

      High Boss Level XD

    • @shreyasjejurkar1233
      @shreyasjejurkar1233 4 роки тому +2

      This is 😂😂😂😂

    • @rahulreddy524
      @rahulreddy524 4 роки тому +11

      So reinvent the wheel over and over again. which consumes not just your time but probably your employers too.

    • @armincal9834
      @armincal9834 4 роки тому +29

      I write my own compiler before using my code, i also write my OS for every project and create my own pc with breadboards and shit to run the OS on. Not only am i not employed, im not even a real programmer, im a hobby-ist/idiot

  • @MarkDeibert
    @MarkDeibert 5 років тому +126

    Copy-Paste IS very often the starting point. Then you have to follow up by studying how and why it works. Then you've learned it.

    • @dirk-jantoot1029
      @dirk-jantoot1029 2 роки тому +3

      That's not really my approach. I think it's much more helpfull to actually consider a logical problem and then try to solve it, preferably without libraries if that's possible. Not because you want to reinvent the wheel or because you want to show off, but because you want to improve your skills.
      Just like how children learn how to add and multiply numbers mentally and then using paper. Sure you can use a calculator, but to start internalising a concept it's best not to use it. But when simple arithmetic becomes trivial, then use a calculator, otherwise you're wasting your time.

  • @ConquerJS
    @ConquerJS 5 років тому +176

    If your code isn't copy-pastable it's not good code. Code reuse is great.

    • @MrCmon113
      @MrCmon113 4 роки тому +18

      Optimally it should be re-used without being copy-pasted, though.

  • @TheoJay615
    @TheoJay615 5 років тому +61

    Here's my two cents: there's no point in re-inventing the wheel. Good design patterns that extract and abstract common functionality is the ultimate goal though.
    HOWEVER, if you copy paste engineer and you don't know how the code works, it's not going to be fun later down the line when you have no clue how to fix it!

  • @n8guy
    @n8guy 3 роки тому +22

    Unpopular opinion: Stack Overflow usually has the best, most optimized solution. The key is to finding it and applying it correctly.

  • @rodney9171
    @rodney9171 5 років тому +47

    l dont really see an issue, as long as you understand what the code is doing

  • @gauravsharma1455
    @gauravsharma1455 5 років тому +56

    What, why cannot copy paste my own code? I have created templates for my self to literally copy paste.

    • @bawad
      @bawad 5 років тому +19

      sometimes those templates could be functions

  • @slavsquatch7
    @slavsquatch7 Рік тому +3

    This is what functional programming solves. Each function stays focused on one task, and you can compose them in various ways to get the desired result. Most functions are too large and tightly coupled to be shared between two different use-cases.

  • @jesusaromeroz
    @jesusaromeroz 5 років тому +9

    Thanks for this kind of videos. You are letting us know you in a different way and that's cool. God bless you!

  • @codebro1785
    @codebro1785 5 років тому +2

    Straight up info. Thank you sir!

  • @techstacker5361
    @techstacker5361 5 років тому +13

    Yeah *“reusing code, to save time”* is a thing! I can't imagine writing from scratch every time, that's a good way of decreasing productivity while lowering your average income 😂

  • @MrDevianceh
    @MrDevianceh 5 років тому +17

    I'm hitting the DRY wall all the time with React. I try starting with a 'reusable' component that supposed to do something. Then I reuse it somewhere else. Then I need to solve an edge case only on one place with the reused component but not bring any breaking changes to it. And I end up with like this magical component that holds so many logic and it's big and bulky...and I hate it. I actually start to prefer to copy-paste code if it's in like 2-3 places since it's not that big of an issue to change it in 2-3 places.

    • @bawad
      @bawad 5 років тому +10

      In that case I also sometimes split the magical component into smaller magical components

  • @GallowsofGhent
    @GallowsofGhent 3 роки тому +1

    I copy paste similar enough components, like the Footer from the Header with just some different labels and values. I write CSS "from scratch". It makes total sense to copy paste components, and to me, to build style more or less from the ground up, especially in a framework where your global and Layout styles already style the child components to some degree.
    Emmets are just informal copy pastes anyway, so not a big deal at all to do it.

  • @theefamiliar3497
    @theefamiliar3497 4 роки тому +1

    Man, I soooo feel you! Also custom hooks can be a pain if you try to make them reusable.

  • @mjs28s
    @mjs28s 4 роки тому +3

    As Stehan Mischoook says, quite often, about the three rules of coding:
    1) reuse
    2) reuse
    3) reuse
    No reason to reinvent the wheel every time.

  • @AdemoyeOpeoluwa
    @AdemoyeOpeoluwa 5 років тому +60

    Almost all developers copy paste, if not all developers! 😎 👌

    • @WestCoastAce27
      @WestCoastAce27 4 роки тому +4

      Agree. The guy off camera is off camera for a reason (and doesn't give his name). There's no way I'm hiring a snob who's going to take way too long to do a project.

    • @tangly2264
      @tangly2264 3 роки тому

      Ademoye Opeoluwa i guess im one of devs that don't copy paste, i mean i learn from the code first in the internet, then put it in

    • @nshanpetrosyan8668
      @nshanpetrosyan8668 2 роки тому

      but wait I was reading that source codes may be licensed and copyright protected. But everyone does it and change it a little

  • @algeriennesaffaires7017
    @algeriennesaffaires7017 5 років тому +1

    Copy paste saves gou time, and tge most important is that when you copy paste you bring the function and keep concentration on the step you was working on, if you dont copy paste, you need to pause the idea you was working on it and start writing that function you needed then when you're done you go back where paused, and thats not good fo production

  • @Gamex996
    @Gamex996 4 роки тому +1

    Best thing after u learn something and get proficient is to make template. Like auth, validation, database boiler plate

  • @poutineausyropderable7108
    @poutineausyropderable7108 4 роки тому +2

    I copy paste my own code from different projects all the time. Like I made project in 9 different programming language, but as of now, i can only write codes in my latest language. I never really memorised commands syntax. So my paper plan for functions is a mix mash of these 9 prog language.

  • @somerandomfatguy.3384
    @somerandomfatguy.3384 4 роки тому +5

    Program suppose to make our work easy not hard... You damn right I'm gonna copy paste my code but at the same time develop the skill to know when to do it and what to change according to situation.

    • @tangly2264
      @tangly2264 3 роки тому

      Vaku Zaku yea don't be a complete skid

  • @WestCoastAce27
    @WestCoastAce27 4 роки тому +1

    Ben, agree 100% w you. Between Day job in IT mgmt, CEO/architect of startup, and coding in Obj-C, PHP, and MySQL there's no way I'd remember how to do everything. Also, stuff needs to get done.
    I was expecting this video to be about frauds who are trying to get developer jobs who flat out cannot create the most basic functioning app (in my iPhone app world that would be a calculator) without significant 'help' from the Internet.

  • @newworld3844
    @newworld3844 5 років тому +1

    Great vid!

  • @Moneyman077
    @Moneyman077 Місяць тому

    I am here 5 years later third day into my coding journey. I quickly learn that you can learn the basics then from there you can get so much information online. Furtmore, when you know the basics you don't need to reinvent the wheel: Copy and paste! lol

  • @incarnateTheGreat
    @incarnateTheGreat 4 роки тому +3

    Copy-Pasta is common for Devs these days, but if you do it more than you either innovate or write your own code, you simply aren't learning anything.

  • @StephenRayner
    @StephenRayner 4 роки тому +6

    A video for examples of React patterns on the back-end would be nice.

    • @bawad
      @bawad 4 роки тому +5

      how about some postgresql on the frontend?

    • @StephenRayner
      @StephenRayner 4 роки тому

      Ben Awad does sound interesting.

  • @alexnezhynsky9707
    @alexnezhynsky9707 5 років тому +21

    I only copy paste regex

  • @borasumer
    @borasumer 4 роки тому +2

    It is like asking a car manufacturer, if they use the same pieces over and over again, or design new pieces for each car they assemble. Hilarious.

  • @4chewbaca942
    @4chewbaca942 3 роки тому

    i copy paste inside jupyter notebooks all the time, for example if i want to change preds=model.predict(test) to preds=model.predict(validation), i just copy paste both versions and comment out one i dont need in this particular case. Maybe i should put them in function taking parameter, but why should i refactor if even my model does not work correctly yet? In my experience jupyter notebooks very quickly dissolves into spaghetti code

  • @PaulSebastianM
    @PaulSebastianM 4 роки тому +6

    Felt more like an interrogation than an interview. Perhaps because of the close shot.

  • @MrCmon113
    @MrCmon113 4 роки тому

    If any line occurs twice in my code, my OCD sets in.

  • @lucasquinnlife
    @lucasquinnlife 5 років тому

    So, decorators seem perfect for optional parameters.

  • @buflen
    @buflen 4 роки тому

    im a copy paste coder from stack overflow when I have to do bash script....

  • @RoboChickenAnimation
    @RoboChickenAnimation 4 роки тому +11

    “Inheritance is gross” OOP must be a lie 🤷‍♂️

    • @boot-strapper
      @boot-strapper 4 роки тому

      OOP is bad practice, people just like it because they learned it in school and its easy to think about

    • @RoboChickenAnimation
      @RoboChickenAnimation 4 роки тому +2

      @@boot-strapper Well I think you're entitled to that view to be honest man. I just think it makes it easier to abstract stuff for developers; it works really well along side any kind of complex DB, and honestly, whatever you think it's going to be present in a lot of legacy code that's too much of a company overhead to replace...

    • @boot-strapper
      @boot-strapper 4 роки тому

      RoboChicken | 100% Organic yeah, true. That’s why I only work at companies that are building new things. Legacy code is gross. But let’s be honest, functional is easier to think about. Why do you need to abstract anything? Keep it real. Make it less about magic behind the scenes.

    • @RoboChickenAnimation
      @RoboChickenAnimation 4 роки тому +1

      @@boot-strapper Legacy code is gross but someone has to do it. I think you're misunderstanding what I meant by abstraction. I don't have a personal issue with any particular methodology. I just know OOP better and i'm used to it that's all... Each to their own brother...

  • @ivanrenedo9349
    @ivanrenedo9349 5 років тому +2

    Hi! Ben, How i can get the user's location without asking permission from the window 🙏🏾? Such as UA-cam.
    You can help me please?

    • @bawad
      @bawad 5 років тому +1

      I'm not sure, I haven't tried to do that before

  • @RamkrishanYT
    @RamkrishanYT 4 роки тому +1

    * read title *
    yes

  • @vinisr12
    @vinisr12 5 років тому +1

    YES

  • @KelvinWKiger
    @KelvinWKiger 5 років тому +3

    I don't always copy paste but when I do, instant karma struck back.

  • @kodee2
    @kodee2 4 роки тому

    Now that I have learned hooks I copy paste hooks but now I at least use much less code and its more succinct

  • @Luxcium
    @Luxcium 4 роки тому

    0:30 I copy paste my code ( I just remember the episode of FUTURAMA where the visit the Slurm factory 🏭) :
    Leela: How can you trick someone into eating something that comes from your behind? It's disgusting!
    Slurm Queen: Is it? Honey comes from a bee's behind. Milk comes from a cow's behind. And have you ever tried copy pasting your own code?

  • @PaulSebastianM
    @PaulSebastianM 4 роки тому +1

    2:00 Composition my man. :)

  • @chito510_
    @chito510_ 3 роки тому

    This guy is a legend lmao

  • @bonzo6989
    @bonzo6989 4 роки тому +1

    Before I watch my answer : yes

  • @Luxcium
    @Luxcium 4 роки тому

    People who copy paste their own code just don’t know how to create snippets in VSCODE or their IDE of choice

  • @zerc0ni
    @zerc0ni 5 років тому +5

    IMO as long as you don't stop learning it's fine to copy paste code.

  • @hopelessdecoy
    @hopelessdecoy 2 роки тому

    I'll copy paste for loops just so I don't have to type them out again

  • @rorysandstrom6555
    @rorysandstrom6555 5 років тому +5

    Why is the interviewer leaning so hard on this idea that copy/pasting code is 'bad'?

    • @tangly2264
      @tangly2264 3 роки тому

      Rory Sandstrom ig that's spoon feeding the beginners

  • @motivationeveryday8292
    @motivationeveryday8292 2 роки тому

    i am a copy-paste coder because i dont have time to type it one by one but i know what i am copying

  • @djpunisha29
    @djpunisha29 5 років тому

    I also copy/paste code :)

  • @andersondossantoscruz3685
    @andersondossantoscruz3685 4 роки тому

    who's not?

  • @smakosh
    @smakosh 5 років тому

    I copy paste my code!

  • @26waga
    @26waga 5 років тому

    Aren't we all?

  • @Luxcium
    @Luxcium 4 роки тому +2

    (I am over my comments limit for the week but) 3:08 (no) INHERITANCE IS GROSS

  • @Luxcium
    @Luxcium 4 роки тому

    D R Y Technic is not only for function (DONT REPEAT YOURSELF) copy pasting is a way not to repeat yourself (your replicating yourself)

  • @djpunisha29
    @djpunisha29 5 років тому +1

    can you use recompose instead of inheritance with React?

    • @bawad
      @bawad 5 років тому +2

      Yes and hooks

  • @narayadewe7979
    @narayadewe7979 2 роки тому

    I copy and paste the things I know, so that I have time to learn the things I don't know :)..nice smile!!

  • @heyjordn
    @heyjordn 5 років тому

    I wish I could see the guy's off screen reaction

    • @bawad
      @bawad 5 років тому +2

      🔜

  • @MD-vm7tv
    @MD-vm7tv 4 роки тому

    Brother I am

  • @StephenRayner
    @StephenRayner 4 роки тому

    Yea, copy paste is fine if you know the requirements are going to diverge.

  • @dwezzy28
    @dwezzy28 3 роки тому

    Honestly i don’t know anything about this subject but I can’t stop watching this video because he’s cute as a button

  • @wepranaga
    @wepranaga 4 роки тому

    1:12 that's trash
    well, you have no idea

  • @andywong3095
    @andywong3095 4 роки тому

    Hahaha, you and Me, may be from the same school. But, I am 30 years ahead of you,

  • @nabiisakhanov3522
    @nabiisakhanov3522 3 роки тому

    Honestly I'd rather see my mates copy paste the whole thing rather than make crazy ass abstractions which are unreadable and can't really be re-used

  • @Phoenix-jh7gu
    @Phoenix-jh7gu 3 роки тому +1

    when billion dollars companies can be made on copy paste ideas why not code

  • @The-Dev-Ninja
    @The-Dev-Ninja 2 роки тому

    lol

  • @djpunisha29
    @djpunisha29 5 років тому +1

    Hello world :)

  • @dannyblack9705
    @dannyblack9705 4 роки тому

    cmn ctrl c ctrl v best way :DD

  • @cethyhnc9305
    @cethyhnc9305 2 роки тому

    "inheritance is gross"
    WHAT'S WRONG WITH YOU ?!

  • @greeneyesvinny
    @greeneyesvinny Рік тому

    lol everyone copy and paste code

  • @lenglain
    @lenglain 5 років тому +3

    Am I the only one that thinks the close up on his face the entire time is weird af? Like they are two guys having a conversation, why not pan out and show the two having their discussion?

  • @tech3425
    @tech3425 Рік тому

    Honestly at this point, I'm afraid to follow anything that ben says. When I watched the short for this video, I thought this was a parody. Now that I see the whole video, it's the opposite, but very well could be a meta-level satire. Which is it Ben?? Maybe you should consider putting (Satire) or (Not Satire) on the video title, for all us soydevs out here.