Do Real Programmers Copy/ Paste Code From Stack Overflow?

Sdílet
Vložit
  • čas přidán 24. 07. 2024
  • Watch Eli's REAL Adventures at: www.FailedNormal.com
    To Ask Questions Email: Question@EliTheComputerGuy.com
    ********
    I was working as a IT Network administrator for 2 years, then i started learning .Net from books. So my Project Manager picked me up onto c# project to become a manual tester.
    I was developing a site with other programmers(where i was just a helper) for our company and it takes 8 months. I understand most of code, but 80% of it was copy/pasted/modified from stackoverflow.
    that's the question: IF I HAVE 8 MONTHS OF EXPERIENCE WHERE I WAS COPYING AND MODYFING CODE FROM STACKOVERFLOW, CAN I SAY I'M A PROGRAMMER AND FIND JOB IN ANOTHER COMPANY?
    -Lucas S.
  • Věda a technologie

Komentáře • 453

  • @glurp1er
    @glurp1er Před 8 lety +674

    "Do English teachers open dictionnary ?"
    I'm a programmer and I often search for answer online.
    You can't just remember everything.
    Fun fact : I sometimes find answers posted by... me... years ago...
    Thanks, me !
    I'm welcome !

    • @MrC0MPUT3R
      @MrC0MPUT3R Před 7 lety +18

      You know you grew up with little sisters when you hear "Yay me!" in London Tipton's voice (from the Disney Channel) after reading that comment

    • @Nonresponder01
      @Nonresponder01 Před 7 lety +8

      MrC0MPUT3R or you just watches a great freaking show as a child

    • @gigicaly
      @gigicaly Před 7 lety +4

      it happened to me to. I had some java problems solved for some time and when I went over the code just to see how I did it back then as I was reading, I couldn't remember my own coding solution I have found back then.
      I've read somewhere at one point ... can't remember where... that a coder can recognize his own code only for about two weeks. than he forgets it.

    • @nkm901
      @nkm901 Před 7 lety +11

      glurp1er ..lol I do the same thing..i find something I need and I'll be thinking "man this is a really good answer" then I look at who wrote it and realize it was me 2 years ago.

    • @markskyscraper8092
      @markskyscraper8092 Před 7 lety +1

      True. I also found an article I wrote retrofitted to some asteroid article. It was funny, but it was a strange complement yet insulting. And it is true, we all forget, I did some stuff I could not recreate today because it grew from accidental insights derived from a cut and paste as I made it work and took it further, but I cut and pasted ny own code is what I mean, but it had some Frankenstein pieces, like why would I go an learn the centroid formula when I can cut and paste it?
      Even if time aint money, I am not taking a day to do something that should take 30 minutes.

  • @mac_forever1438
    @mac_forever1438 Před 8 lety +814

    You don't have to reinvent the wheel BUT you have to make the wheel fit your car.

    • @jamu8060
      @jamu8060 Před 7 lety +31

      Fiting that wheel can take a LOOOONG time.

    • @LopogaX
      @LopogaX Před 7 lety +1

      exactly

    • @Sipnol
      @Sipnol Před 7 lety +10

      its still important to know how that wheel works atleast thats why im "hand-coding" a lot myself (then again im a student and make only small tools)

    • @thierryvt
      @thierryvt Před 7 lety +4

      this comment chain describes it perfectly.

    • @BarronKane
      @BarronKane Před 7 lety +1

      This needs waaay more likes. Only time I make my own wheel, is when current wheels lose traction on the wrong type of gravel.

  • @koushikshomchoudhury9108
    @koushikshomchoudhury9108 Před 7 lety +276

    copy/paste is not the problem, understanding what from and where to copy/paste is the key.

    • @infinigrove
      @infinigrove Před 7 lety +31

      I would agree. Programmers don't get paid to right lines and lines of code. Programmers get paid to make computers perform specific functions and provide solutions. Knowing what to copy/paste along with where and how to make edits is the key. I quite often copy/paste/edit code from previous projects. Experienced programmers just have a larger library of code they can copy/paste from.

    •  Před 7 lety +11

      Agreed. Before you copy and paste make sure you understand what's going on. I do copy and paste just because I am in a hurry and don't want to waste my energy/time coding.
      In fact it's rather stupid not to Copy and Paste when you already know what you are looking for in the first place.
      Also as a programmer I don't believe you have to memorize every commands and syntax. That's wasting your brain there. That's why we have books and tools so we can always refer. The most important thing really is you understand a code before you use it.

    • @school_pizza
      @school_pizza Před 6 lety

      this is why I didn't try to go to Digipen even though my teacher in my highschool programming class tried to convince me, it was a 3 hour class for game development, I had an A and was Java certified and whatnot, but I felt down about copy/pasting aspects of projects and getting help from the kid I sat by even though I helped him as well

    • @arturoordonez-hernandez1534
      @arturoordonez-hernandez1534 Před 5 lety

      Exactly: it's smart copy/pasting: I had a CS instructor once tell us he's okay with us copy/pasting code as long as we understand how it works. He had me remove some code once because I just copy/pasted and didn't really know what it was doing.

    • @christineotieno52
      @christineotieno52 Před 3 lety

      Any pasebin script will do

  • @Mitchicus94
    @Mitchicus94 Před 8 lety +60

    Perfectly fine to copy/paste/modify from stack overflow. If you are doing this often it's still fine, as long as you are starting to understand what you are taking. Less than fine, but still acceptable if you are lost but still getting the job done (although a good sign you should work harder to get to grips with what you are doing). The companies don't care how you get the job done as long as you are getting it done (up to a point)

    • @matuobasho9425
      @matuobasho9425 Před 8 lety +2

      @LukasZ S
      This precisely, a lot of people are already coding C style in ruby (I've seen it!) and other's just imitate. Ultimately you end up with code that doesn't actually exploit the language in use, and is rigid and messy, and then the next guy in line comes and finds spaghetti and has to maintain your italian cuisine. That's one thing, even more, when the spec changes and new features have to be added, you'll end up working around that strange code that isn't written for the application at hand, and so it doesn't make it extensible or flexible enough. So it increases complexity and introduces high potential for bugs. And then suddenly the deadline is here and you are fighting your code instead of using it to do it's job....

  • @aspie96
    @aspie96 Před 7 lety +34

    "You're a programmer when you feel it".
    Basically a trans-programmer.

  • @Destide
    @Destide Před 7 lety +133

    I can do goodbye world, world is poo and hello moon I'm literally the greatest coder

  • @alazar7685
    @alazar7685 Před 8 lety +7

    I watched your videos while in collage 2 years ago I'm proud to say i have learned so much from you. Thanks.

  • @themcc1879
    @themcc1879 Před 7 lety +22

    Programming is the worst job on earth. I work with dozens of code bases with copy pasted code that no one knows how it works then it boils down to me actually making sense of it then making it do awesome stuff. I am fine with copy paste but make sure it is documented or well commented.

    • @dylanisaac1017
      @dylanisaac1017 Před 4 lety

      I hate when they don’t document functions and variables

  • @BoKKeR111
    @BoKKeR111 Před 8 lety +22

    oh god I was waiting for this question so long. thanks eli, cleared my doubts

  • @VaughnKottler
    @VaughnKottler Před 7 lety +15

    Stack Overflow is appropriate to solve programming problems you haven't faced before in a certain language but if Stack Overflow was needed to put together an entire application, I wouldn't put much faith in that app or in that entire company

  • @petropzqi
    @petropzqi Před 4 lety

    Great talk. Especially the last part when you talk about the year and how you need to relearn and build trust

  • @thought2007
    @thought2007 Před 8 lety +17

    Why do people mention Stack Overflow in particular? I copied "hello world" from a book for most of the languages I learned. Copy/paste (by typing in the code) is a method of learning.

    • @Kisai_Yuki
      @Kisai_Yuki Před 8 lety +3

      Because Stack Overflow tends to be the top result, rightly or wrongly when you search for many programming or system administration questions.
      The reason it's not wrong to copy from Stack Overflow, is because not every question is easy. Sometimes someone has much better insight than you do, and does something that is a better language-centric solution.
      Case examples are when someone goes "how do I do X in Javascript", and you get 90% jQuery instead of Javascript. Sometimes that IS what the question asker wants (a jQuery solution) but many of the times it is not, but you could reverse-engineer the jQuery solution into a Javascript solution and get something that is far more efficient.
      In the case of evolving languages (eg PHP 7, Python 3, Perl 6, Ruby 3, etc) many times stuff gets depreciated, and breaks backwards compatibility (often for no reason,) and thus the question often asked is "why am I getting X error" instead, and someone will chime in and go "that is a depreciated syntax or function, use Y instead" Try getting a PHP3 program to run on PHP 7. It's a whole lot of no-fun.
      The people who are "the best" programmers, can actually "compile stuff in their head" and see errors that a compiler will not pick up, because it's not a syntax error. eg "= is assignment, == comparison" and the vast majority of questions about "why isn't this working" is because the question asker has made incorrect assigments instead of comparisons.

    • @thought2007
      @thought2007 Před 8 lety

      Stackoverflow is overrated, probably because of search engine bias. Go to the manual pages and proper reference books and you will see the same solutions there, sometimes better than SO.

    • @Kisai_Yuki
      @Kisai_Yuki Před 8 lety

      True, but many time the documentation doesn't explain a context for why you'd want to do something over another. Like I'd say the editorial quality of Stack Overflow is rather low, but it will point you in the right direction if you actually know what the solution is trying to do, and not simply copy-paste the solution.

    • @HussainAbdulMajeed
      @HussainAbdulMajeed Před 6 lety

      This is so true when there was no internet back then.

    • @RazorM97
      @RazorM97 Před 6 lety

      well it takes someone smart to fix these problems, a little help is good, but.. someone actually does the hard work and you... you don't even code

  • @effkid9694
    @effkid9694 Před 8 lety

    First video I've seen off you, and I'm lovin it! Just really pleasing to listen to and watch. Also, great advice!

  • @chieflittlehorse
    @chieflittlehorse Před 8 lety

    I'm not an IT guy, but I made my own masterkeying programs using Excel. So I can say I'm a basic Excel programmer I guess. But what I like about your videos is you talk about the industry as a business owner and yet talk to us employees with very good advice.
    I need to veg out one day and just have an Eli The Computer Guy marathon!
    Great videos!

  • @1yaz
    @1yaz Před 8 lety +61

    All I got from this video is that Eli's code is spaghetti ;)

    • @workhorseoeenanimal
      @workhorseoeenanimal Před 8 lety +8

      its cheap noodles with boiled water haha

    • @dante4d
      @dante4d Před 7 lety +3

      That was so beautiful :)

    • @markskyscraper8092
      @markskyscraper8092 Před 7 lety

      That's OK. I knew a CEO with a desk as clean as his face, and another with a rats nest, but he was the one with the millions. Some people can handle "code chaos", some can't. If you work at a place, blow that sewing machine and get a real job as the lead on your own stuff. Making it too pretty wastes more time than chaos.
      But when they fire and exasperate people to always leave before they turn 30, then they want it all well mapped for the next fool to pick up the mess, and that's why they are all religious on commenting and format and all that time wasting stuff. Comments can help, I admit that, but if it works that is all that matters on a real job where you know you'll be there in 10 years.
      Silicon valley mentality is like the sewing machine of 1920, they have no plans for them to be fashion designers, they have plans to devour them in the gears, you gotta go do it yourself if you want to be free. Who wants to do database until they are planted up at Evergreen?
      Once you realize money does NOT make a job heaven, you understand 90% of people at Google are walking around looking at each other saying to themselves, "does that guy think this place sucks as bad as me?", "does she feel like she is in hell too?", "geez, does he also realize this was all a bad delusion?". And they have to stay mum for being hung from the highest "union" tree on that campus. When they are 40 they can finally get on CZcams and tell the truth, lol.
      1. LOVE what you do
      2. Completely free self-scheduling
      3. Good money
      If you don't have at least 2 of those three, it will NOT be satisfying; period.

  • @leonphelps
    @leonphelps Před 8 lety

    Thanks for this. In the process of trying to make the jump from network analyst to programmer myself at the moment.

  • @vdj255
    @vdj255 Před 7 lety +2

    The way this guy talks... he is so damn down to earth, straight-up guy

  • @jwbonnett
    @jwbonnett Před 6 lety

    The way I found best to explain a multidimensional array is to say it's like a Excel spreadsheet, you have your rows and columns and to select a specific cell you have to ask for said row and column like so cell[row][column] where row could be A and column could be 1. If they understand the concept of a standard array they should then get exactly what this means.

  • @verstande2827
    @verstande2827 Před 7 lety +1

    I'm a pure (theoretical) math major and I only code as a hobby, but this guy is awesome. I've seen a couple of his videos (I never even searched for them, one was recommended) and he cuts out the bullshit and gets to the point.

  • @danielbudney7825
    @danielbudney7825 Před 7 lety +2

    35 years as a professional programmer, here. The number of times I have started a program with a blank text file (in a Professional setting) can be counted on one hand. In almost every case, you take something which already exists and does the same **kind** of thing you want to do, you read through it to understand how it works (usually find some bugs in it that no one noticed), and then change the code to fix the bugs and make it to whatever the new code is supposed to do. Even if you're writing something "from scratch," you usually begin by copy-pasting a "hello world" sample from the Compiler Vendor, just so you don't have waste your time with all the little configuration bits.
    I certainly wouldn't limit myself to Stack Overflow, however. Using Google and scanning the results can give you a much broader foundation for how to attack a project, and also clue you into a few "gotchas" to watch out for (particularly relating to security) that you won't get by reading a single Stack Overflow posting.

    • @Reivivus
      @Reivivus Před 7 lety

      That's how you make code that looks like gibberish and is inefficient. So basically my code works but I have no idea why. Which isn't particularly good for optimization when you have variables that you really don't need.

  • @WeedMIC
    @WeedMIC Před 8 lety +10

    I don't care if a programmer copies and pastes as long as it isn't stealing. I have never even thought of firing someone for being efficient. I HAVE fired programmers for not following our rules on adding rem(arks). You never know if "your" code will be modified/fixed by someone else - so plan it that way. Often it's a panic situation with unhappy clients waiting for a fix. I have also NOT hired programmers simply for saying "code is self documenting".

    • @Quethonable
      @Quethonable Před 7 lety

      It's worse when C++ is involved, because without documentation and comments all the code needs to be rewritten if you ever decide to get rid of the programmer involved

    • @SerBallister
      @SerBallister Před 5 lety

      "I have also NOT hired programmers simply for saying "code is self documenting". Seems a bit harsh. One of the most valuable programming skills, that comes with experience, is the ability to name things properly. That skill alone makes code infinitely easier to understand and does away with the need for documentation in most cases.

  • @utkarshgautam100
    @utkarshgautam100 Před 8 lety +1

    You have no idea how much you have motivated me through this video ...

    • @haha-vm6gi
      @haha-vm6gi Před 2 lety

      i think you must be a pro programmer by now, after 5 years LOL....if you will be able to see thos...(btw after that Covid also came ))

  • @WolfersHD
    @WolfersHD Před 8 lety +9

    I don't understand how someone couldn't understand an array. Show them a checkerboard, Battleships, Tic Tac Toe. That's what a 2 dimensional array looks like. Add a 3rd dimension? Rubik's cube. Further than that can't be visually represented but I would hope they would be able to understand that it's just an additional layer.

    • @MichaelPohoreski
      @MichaelPohoreski Před 6 lety +1

      Mr Wolfers Yes you can visually represent 4+ dimensions very easily. For my day job we work with ~20 dimensions. This is trivial if you _group_ **related** dimensions:
      * red, green, blue, alpha
      * x, y
      * width, height
      That's 8 dimensions right there.
      Even quaternions are easy to visualize if you break them down into 3+1 dimensions. It's all a matter of perspective.

  • @EllieKitsune
    @EllieKitsune Před 8 lety

    wow great advice. I always feel the way you say. That I am not good enough to work at this job though I have shown that I am worthwhile. thank you for this video.

  • @simplifiedsolutionseo1657

    I like the way you put the subject into check, straight forward and no BS. I want to get coding experience and use it for a new career. What do you suggest in getting into the "Hello World of Coding " :)
    Shane P.

  • @RodyDavis
    @RodyDavis Před 7 lety +53

    Just got my first job as an iOS Developer for an Enterprise company!

  • @Platipus23
    @Platipus23 Před 7 lety +1

    Thanks for this. Trying to learn and teach myself to code, definitely not there yet, but hopefully soon.

    • @haha-vm6gi
      @haha-vm6gi Před 2 lety

      Did you succeed so after 4 years?

  • @angledcoathanger
    @angledcoathanger Před 7 lety

    I'm starting to really appreciate how consistently Eli breaks down the mythos around computing.

  • @seephor
    @seephor Před 8 lety +30

    As a developer who earls 100K/yr, if 80% of the project is from stack overflow, there's bigger issues to be concerned about regarding your team. Here's the thing, the difficult part of programming is not syntax or understanding the basics of software design. It's making an abstract concept into a concrete object. How you can take your abstract concept which is unique to you and use stack overflow to build 80% of it is a mystery to me. I would say NO, you are not ready to be a developer based on what you know.

    • @loshan1212
      @loshan1212 Před 7 lety +7

      It also depends on the type of project that you're working on. If it's a shitty React website, then I think you would be able to get away by copy & pasting 80% of the codebase from StackOverflow.

    • @KpFriendly
      @KpFriendly Před 2 lety +1

      “It’s not where you take things from-it’s where you take them to.”
      - Jean-Luc Godard

  • @iandaniel1601
    @iandaniel1601 Před 8 lety +1

    That was a good confidence building video.
    I have 20 years IT and about 2 years real programming experience. I go to every hackathon I can to get that pressure experience.
    But I never feel like a real programmer. Someone once called it 'imposter' mindset or something. Programmers apparently get it alot.

  • @metusbatmanv118
    @metusbatmanv118 Před 7 lety

    This is inspiring if the idea of understanding multiple level arrays is the requirement for getting some entry/junior level positions.

  • @LJCRIA
    @LJCRIA Před 8 lety

    On the Nebraska vs. California statement: Omaha, Lincoln, and Des Moines, Cedar Rapids, Souix City, and Iowa City in neighboring Iowa have plenty of tech jobs available. In fact, I'm a computer science teacher that hears from local businesses (big and small) that there aren't enough programmers available to fill their positions.

  • @eduardowada358
    @eduardowada358 Před 7 lety +2

    Just make sure to refactor pasted code afterwards and u're fine

  • @techstacker5361
    @techstacker5361 Před 8 lety +1

    It's so true, you are a programmer when you have the confidence to say “I'm a programmer” - which of course will be highly individual. Essentially as long as you can accomplish to write even the simplest type of e.g., click event in JS you will be proficient at providing programming services for _some types of clients_. As long as you don't lie about your abilities, it's all good.
    I think we often forget that even if we feel like we have inferior knowledge compared to X programmer that we may look up to, we still know infinitely more about the topic than the companies that hire us (for the most part) - and that's why they hire us.

  • @robertanthonyfarrell
    @robertanthonyfarrell Před 7 lety

    Yes, all the time. Usually fixes for random breakage in libraries I'm using. Some programmes prefer to solve things themselves but I try to train them out of that habit. :)

  • @onionike4198
    @onionike4198 Před 6 lety

    Hearing how high demand for programmers is, it's a huge relief to know how doable getting a job in the field is.

  • @juandougnac8826
    @juandougnac8826 Před 8 lety +1

    I get the feeling there's a really amazing story behind that green belt in the background. Would I be correct?

  • @rbaleksandar
    @rbaleksandar Před 7 lety

    As long as you know what you are copy/pasting and be able to adapt it to fit your needs - of course. Part of being a software developer is to be able to take bits and pieces others have done and make something more out of those.

  • @russellthompson3201
    @russellthompson3201 Před 7 lety +1

    I've been programming 37 years. Having working examples of code from Stack Overflow is a Godsend. I am a good programmer (crap, I am a great programmer), but it's still takes time to debug a hunk of code. The secret of being a good developer is getting the job done right the first time.

  • @RiversBliss
    @RiversBliss Před 5 lety

    Yes and understanding what the code does and where to paste it and documenting it well because deadlines and no use spending hours for the solution and why reinvent the wheel.

  • @justinherrera6790
    @justinherrera6790 Před 6 lety

    hey sir, hope you answer my question. "Do you prefer to read books than reading on online tutorials and watching video tutorials in case of programming?" please I need your advice

  • @jo-si8ws
    @jo-si8ws Před 5 lety +1

    The wheel has been invented already(programming languages) manipulate and create. I agree. if you understand, arrays, functions, passing parameters.. Everyone is going to say somethings hard until you do it and figure it out for yourself.

  • @HE360
    @HE360 Před 8 lety

    This video is again encouraging. I never would have thought this. I only have limited programming skills. I do some game development (in fact, I made a few videos of some games I made - one could watch the videos I posted) and I also do some limited web development. I by no means consider myself an expert. It's just been something that I've been doing on the side for a few years. But, I honestly didn't think I would be good enough to really get a job in the field.

    • @jdogwar
      @jdogwar Před 8 lety +1

      If I can get job as a programmer at a Fortune 500 with knowing little to no programming you can too

    • @HE360
      @HE360 Před 8 lety

      jdogwar Ok, thanks!

  • @mustang19ms
    @mustang19ms Před 6 lety

    9:36, you just described me perfectly, you might have just opened my eyes! TBC

  • @Powerracer251
    @Powerracer251 Před 7 lety

    Wait, are multi-level arrays really that hard to understand? We are talking about arrays like "array[x, y, z]" right? That was in my intro coding class.

  • @XfStef
    @XfStef Před 8 lety

    You're actually pretty insightful on this subject. I only got to know you through your drama with Louis Rossman so now I'm actually conflicted about wishing that you guys would stop it. :D

  • @NathanaelCrapo
    @NathanaelCrapo Před 8 lety

    I'm a 20 year old programming enthusiast but have no schooling and or work experience in the field; where would you say I should start in regards to finding a career in the field?

  • @TheAwady
    @TheAwady Před 8 lety

    Good advices thank you... the Best words are few with full indication.

  • @arabiccompprograming5161

    I have a question Eli please.
    I have been dabbling in html5, css3, javascript php and msqyl. for over 5 years. I have no real job in computing. I just build hobby testing websites at home. I design web sites with back end database mysql. I can read very well what the code is supposed to do and what limitations it has. I developed critical reading from being exposed to reading alot of computer books for many years. I can get to a project quite quick, but this is all from attending to reference material.
    I get bored alot of times with doing this hobby work. I have always wanted to learn how to write independently computer code but have always failed to learn such a technique. I read and write and copy scripts from books, w3schools, and modify the code to some degree to get doing more extendable work on my hobby websites. Could I be in a position to be marketable for a job in Computing if I applied for such a entry level job role in web design/ development etcc....
    I try sometimes to write some code in a pseudo style type but becuase it can't flow in some form of sequence.when I get to a computer it has no impact because there is no flowing process in the scripts.. I would like to begin to learn how to write code independently. Any help much welcoming.

  • @leberkassemmel
    @leberkassemmel Před 7 lety

    Yes, every function we write in our job gets put into a huge database, and it can be reused from anyone.
    Why write a new function to display that text on a screen, when someone has already done it?

  • @moritswille6518
    @moritswille6518 Před 7 lety

    I would say that it depends on whether you understand the code that you copy.

  • @hussainmadar4
    @hussainmadar4 Před 8 lety

    what will be the configuration for laptop,if you are programmer.

  • @dableutyef
    @dableutyef Před 7 lety +1

    The way I judge quality of answers on stack overflow is whether I can instantly understand them. If I have to put more than like a second of effort into figuring out what they did I just move on because it's probably not the right way to do something. This method hasn't actually failed me yet.

    • @silverzero9524
      @silverzero9524 Před 6 lety

      lol
      i do the same.
      if i dont get it. forget it

  • @brianwilliams4562
    @brianwilliams4562 Před 5 lety

    Where do you look up how many open positions of software engineers are available? Also, how is it looking as of 2019?

  • @dstyro
    @dstyro Před 7 lety +3

    No 1 Rule of efficient programing is to not write code which has already been written. For example, to reverse a string don't write a reverse () function, use the std::reverse.

    • @Reivivus
      @Reivivus Před 7 lety

      I enjoy don't unneccessary things, so in R this is how you print the numbers 1 to 10:
      rev(rev(1:10))

  • @muramasa7537
    @muramasa7537 Před 3 lety

    What amount of programming knowledge should i have to start actually copy pasting n changing ? Basics or intermediate or more then that ?

  • @AtxTrev
    @AtxTrev Před 6 lety

    Ty for this vid! I am a new jr developer still in school. Need all the advice i can get.

  • @HistoMagouri
    @HistoMagouri Před 7 lety +1

    I don't copy and paste
    I type the entire code I see by hand...I'm too hard on myself sometimes. XD
    But it's a nice habit. It kind of trains me to make sure I'm not making any mistakes I'm typing, and sometimes I'm more likely to try and understand how that piece of code works so I can make my own derivative in the future should I ever need to do so.

  • @eveningrice
    @eveningrice Před 7 lety

    As long as you understand the solutions to the questions you have and you can modify the answers to match your requirements then yeah! Why not.

  • @MrPersistent16
    @MrPersistent16 Před 7 lety

    yes they do... but they adapt it to their case scenario. Why reinvent the wheel?

  • @ac11dc110
    @ac11dc110 Před 7 lety

    Im working on a project and someday I will really need someone to help me... the most important thing is trust, if you can do it then you can do it

  • @lawrencedoliveiro9104
    @lawrencedoliveiro9104 Před 7 lety

    4:31 Code reuse is done by including libraries into your project. If you are doing it via copy/paste, you’re doing it wrong.

  • @blipman17
    @blipman17 Před 7 lety

    Practical example. At my work I needed a list of currency codes. Now I hate manual typing and maintaining lists of things only to find out that the world changed and I have to update my program.
    So I googled and found a function that retuned all iso 4217 currency symbols that .net knows about. Why wouldn't I copy paste it? (after reviewing its correctness and quality of course. Maybe change it a bit.) I'm not gonna re-invent the wheel or come up with better code. If I do come up with better code I will use that of course.

  • @learnwithharry8971
    @learnwithharry8971 Před 7 lety +1

    lol. sometimes yeah copy paste, but most of the time i discover or make my own code.

  • @devins4686
    @devins4686 Před 4 lety

    If i write CCNA on a roll of toliet paper does that make me a real CCNA?

  • @christiandinkel8481
    @christiandinkel8481 Před 8 lety +1

    I am a professional programmer and part of my job is deciding who we hire for the software development department. In order to do this I sometimes give prospective colleagues (after the job interview) a one week project that we work on together, if they want to do that. I sometimes see young programmers who have never worked in the field copy and paste code from the internet. This is sometimes highly problematic, but not for the reason that the code was copied or where it came from: The problem is that these young programmers tend to copy code they themselves do not fully understand. They don't really know what it does. The resulting software is not suitable for use in a production environment as a direct result, especially if the programmer does not employ rigorous test driven development methods or the code is in principle not fully testable.
    Copying code from the internet is something we do all the time though. Every time I use an open source library in a project I am copying someone else's code into my project. Sure, it's often several people's code, which is nice, and it has a bug tracker, which is nice, but the real issue for me is always "Do I understand what this does?" and "Are enough other people using this?". Both questions can sometimes be answered positively, even with code from SO type sites.

    • @christiandinkel8481
      @christiandinkel8481 Před 8 lety

      PS: Just continued watching the video and the point about "hand coding" seems very salient: I am just now working on my first ever project where I truly need to hand code everything. So far I had always worked in high level languages like C that allow you to easily use other people's code, like the C standard library. Now that I have to write code that directly loads and runs on a processor without relying on so much as an operating system, it's incredibly annoying. Not just because of the limitations of the assembly language itself in terms of abstraction, but also because you have to write so much simple stuff yourself. I do not suggest hand coding to anyone if you can avoid it.

  • @Khaltazar
    @Khaltazar Před 7 lety

    I usually don't copy/paste entire blocks of code. I'll do one or two lines though to resolve an issue I am having. I use StackOverflow more as a reference, not as a place to get all my code from. I won't use code I can't easily and quickly explain what it does, the reason is if something breaks and you need to debug it, guess what you don't understand well enough to figure out why it isn't giving you the correct results anymore? Things I will use StackOverflow for is things such as what is the difference between this or that, what is best practice, which is more efficient, which is easier to maintain, etc.

  • @user-bs8hz9ft9b
    @user-bs8hz9ft9b Před 7 lety

    Its really about being able to put the chunks together if you can do that well in like 99% of situations your thrown in gg your a programmer capable of working on government infrastructure. (The code doesn't necessarily have to work first time either but so long as you can debug it and keep making progress. )

  • @its_dayman
    @its_dayman Před 7 lety

    This made me feel better about my copy/pasting. At least I now know that i'm not the only one that does it :)

  • @WiresNStuffs
    @WiresNStuffs Před 7 lety

    I get what you mean by its all been written but its also important to reinvent the wheel sometimes as there is not a good enough solution available. Thats why you end up with new software development kits as people chose to reinvent the wheel. Its neccessary for progress sometimes.

    • @EliComputerGuyLive
      @EliComputerGuyLive  Před 7 lety +3

      ... some reinvention is always good... I just see far too many n00bs reinventing the wheel just to "prove" they're professionals...

  • @AA-vn2nq
    @AA-vn2nq Před 7 lety

    If you know what you are copy and pasting then its cool. If you get done early do you get a bonus?

  • @mike7106
    @mike7106 Před 7 lety

    Maybe in the beginning but as what you learn becomes more intense like implementing algorithms that become more and more complex stack overflow seems to be less of help and articles or papers, thesis... become more helpful.

  • @Cristian-vl8pg
    @Cristian-vl8pg Před 7 lety

    so youre telling me that there are more than just 2 dimensional arrays?

  • @WiresNStuffs
    @WiresNStuffs Před 7 lety

    I have one quick question I want your opinion on it. So I am writing a multiplayer snake game with my friend, the entire protocol is binary and we are considering having an admin web interface. Now the problem is if you ban someone on this admin web interface how will the game client of the player logged in know? I have two possibilities. 1. Have a special admin section on the server and the web server will talk with it( This is preferred as it means no polling on the servers end ). 2. Every 10 seconds or so the server will recheck the database to ensure the client is not banned. 2. is easier to develop but less efficient as the user wont be banned instantly their client wont be kicked.
    Thats one question. The next is some of my friends have been saying this multiplayer snake game should of just worked via a web server and basically poll for JSON requests rather than its own server and a bianry protocol. I am highly against the idea of this. Even over a web socket sending JSON requests just feels evil for me as its supposed to be a real time game. Whats your take on it.

    • @xybersurfer
      @xybersurfer Před 7 lety

      i wouldn't leave the decision of whether a player is banned up to the client side. because they can do whatever they want with their client. i would leave this decision on the server side. you could have your clients connect to the same server as the admin web interface and fire an event at the server fire when the admin changes something. maybe the even just means the server has to poll the database or maybe the event is more specific and contains all the information (endless possibilities). this complicates things but i think its the right way. but only you can decide what is more practically and worth your time. i think it depends on the reason why you are creating your game (to learn something, proof of concept etc...)
      for communication i would say whatever is easier. i use a lot of JSON in my protocols. i find it fast enough. and if it isn't i will start to optimize it. just don't start optimizing things pre-maturely. that's the real evil. it complicates code and wastes development time. keep things as simple as possible. i wouldn't worry about others being able to read the messages because even binary is not safe. even real time is usually not actually real time. there are all kinds of tricks games use to make things look real time

    • @WiresNStuffs
      @WiresNStuffs Před 7 lety

      Thanks aybersurfer. There is some confusion to what I meant. Basically player clients connect to my server, everything is validated on the server but the web server uses http. The game server uses my own protocol. Since I want the admin interface to be on a web client the web server would need to talk with the game server to state when a player has been banned if the player is logged in. This is so the game server can kick the newly banned player. The other way is for the game server to poll the web server, or database every few seconds and check for a ban to then kick the game client. What would be the choice you would do?

    • @xybersurfer
      @xybersurfer Před 7 lety +1

      the annoying thing is that databases don't really notify about changes (i wouldn't do anything with database triggers because that's not what they are for).
      in the ideal case i would have the web server update the database to make the player banned. then i would have the web server notify the game server that it needs to kick the player or "poll" the database once. on the other hand this creates a dependency for 2 systems that were separate, you could lessen this a bit by making it possible to ban players if the game server is not online.
      i also don't think continuous polling is that wrong. if you retrieve all the banned players in one go it might not be too bad. on the other hand, it creates some overhead and it may require that you change your server to actively do things if it wasn't already instead of just responding to requests.
      i personally wouldn't go for polling unless it's a bit impractical to notify the game server from the web server

  • @razen944
    @razen944 Před 6 lety

    Hey Eli, I have a question. What do you think of Masters degrees in Computer Science? Just your personal opinion. I haven't started the Bachelor degree yet but I like to thinking ahead of time.

  • @MrcValentino
    @MrcValentino Před 7 lety

    I love these videos. Thanks Eli.

  • @DJMMAS14
    @DJMMAS14 Před 8 lety

    Hey eli How is the web design and programming doing today what do you think is it still a very wanted job i'm studying I.T. Want to focus web programming and Design more

  • @manchesterremix
    @manchesterremix Před 8 lety

    Love this one thanks Eli.

  • @SincerelyVince
    @SincerelyVince Před 7 lety

    It's all about requirements. If C&P will help meet the requirements (whether it be a deadline or a domain), then by all means, meet those requirements.
    But you should never feel comfortable with it. You should do it with caution.
    Not understanding the syntax/logic of your code is an easy way to introduce bugs, and excessive C&P may lead to this overtime. Should always go back and study once the fires have simmered down.
    C&PWC (copy and paste with caution)

  • @kentvandervelden
    @kentvandervelden Před 7 lety

    Oh wow, an Armatron! Brother! The last place I worked, the majority of people had a weak programming background, but were hired as senior programmer, and mostly programmed by Google Sleuthing. So, I guess the employer didn't have many options. Stunk for us with multiple tech degrees, years of experience, started by nerding out when a kid, etc.

  • @jcdock
    @jcdock Před 7 lety

    I say if you want to apply for a job even if you don't think you will get the job, apply anyway because even if you dont get it you didn't lose anything

  • @Robnoxious77
    @Robnoxious77 Před 6 lety +1

    at this point I use python a lot, I used to use php a lot, before that I used java a lot. I copy simple syntax crap from stack overflow when I cant force my brain to forget how to do array slices in python when i’m trying to do it in php.
    Or simple things like the exact syntax of safer file opening in python using the with statement. Getting anything more than that from the web would suck all the fun out of what I consider programming.
    Thinking up a unique algorithm for a highly specific problem is what makes development fun. Copy paste syntax, not entire programs, thats the fun bit of coding.

  • @ethanhamto2405
    @ethanhamto2405 Před 7 lety +1

    I learn java in 3 months, 3 months later o had made a level editor and in it I had a 4 dimensional multi level array

  • @Luckyyshot
    @Luckyyshot Před 7 lety

    I really don't understand. I use stack overflow a lot too, but I've never copied from it, since it's rare the exact code work for my own programs, so I rather just use some of the same methods they used, but always write the code myself...

  • @SomeDumbRandomUser
    @SomeDumbRandomUser Před 7 lety

    I really had to ask myself if it is really this difficult. Actually, Object Orientation is a piece of cake for my but it wasn't allways that easy. I still know i've had many problems understanding it.
    It just blew my mind and my classmates don't even undestand it today
    (i make a scholarship in Germany as an IT-Assistand [Networking, OS, Programming, Webdesign, Databases etc]).
    But now i can really understand my Teachers being unable to explain it somewhat good.
    i've also failed to do so, but it's really easy once you've got the abstract way of thinking.

  • @buddybob5502
    @buddybob5502 Před 4 lety

    JUST gonna put this out there, STACK FLOW IS MY LIFE

  • @moileung
    @moileung Před 8 lety

    i was doing a program trying to solve a basic math problem once in c and i got the error msg "stack overflow" since then i said to myself this coding profession is really is not for me. lots of people have this notion that we can be programmers but simply going to school and learning various languages but in all honesty the answer is no. we all can learn to program basic stuff but not big stuff. we all can sing and dance.but very few of us can be really real singers who can sing or artists who can dance.same is with coding. when i play a video game and reach the roll of credits and see the programmers section i say to myself wow these guys are surely talented and thats it.

  • @CristiNeagu
    @CristiNeagu Před 7 lety

    I use Stack Overflow all the time, and other resources at all. But i very rarely find myself copy-pasting code from there, because the examples given never fit my needs. I look for a concept, find the concept, then apply it to my program.

  • @persi8306
    @persi8306 Před 7 lety

    I had to go and look up a tutorial on multilevel arrays. Seems simple enough...

  • @ThangTran-jv7mm
    @ThangTran-jv7mm Před 7 lety

    Yes, but rarely and even if I did I would make sure I knew what every line did what I wanted to do.

  • @DDRsensation
    @DDRsensation Před 7 lety

    I'm from Nebraska, opportunities are pretty good here!

  • @StephenGriffinsmartguy2000

    I'm a newly minted programmer now I just have to find ways to get paid for doing so

    • @haha-vm6gi
      @haha-vm6gi Před 2 lety

      after 5 years! now you should be a very good skilled programmer right? :)))

  • @apexhacker346
    @apexhacker346 Před 3 měsíci

    Just be honest say you're willing to put in the work and keep asking questions and keep striving to improve. For me I hate to say it but not amount of school could motivate me enough like me losing my job can to learn programming. Mainframe is still a big thing didn't know anything but the work COBOL😂 now I develop on mainframes

  • @markemerson98
    @markemerson98 Před 7 lety

    tight deadlines leave no option but to copy/paste/edit - if you cant find it then you write it. thats how it goes. there is no other way that products would get shipped so rapidly without cut/copy/paste/edit plus a bunch of ready made libraries and frameworks to bootstrap your project. you could not write the whole solution from scratch in such short time windows that we as programmers have to endure

  • @joebazooks
    @joebazooks Před 8 lety

    is this a new channel or did you just add _Live_ to the name?

  • @blazingfuryoffire1
    @blazingfuryoffire1 Před 7 lety

    1:11 Rule of thumb (because people seem to over think themselves): If you can make a program that solves a problem (and I don't mean 2+2=4), works, is able to handle idiots throwing bad data at it, then you can be considered a programmer.
    I do not consider myself a programmer yet. i can do some basic things in VB, but not really that far in.

  • @vladutcornel
    @vladutcornel Před 7 lety

    What's so hard about multi-level arrays?

  • @snetsjs
    @snetsjs Před 8 lety

    I'll try to keep this as short as possible. I am asking this to get your perspective as an IT employer.
    I have been a web developer, server and front end, for 27 years, much of it as a sole proprietor. I
    have experience with Java, JavaScript, Python, Ruby and Perl. To a lesser extent I have experience
    in Swift and Objective C. Most important I think is I have a strong understanding of programming
    principles and am able to become proficient with any language in 2-3 weeks and good in about
    3 months.
    I'm 49 years and suffer severe, treatment resistant, clinical depression. I've been unable to be in the
    workforce for 8 years but have made enough progress to reenter the workplace given certain flexibilities:
    Being able to work from home when being around others is problematic, and during those times being
    able to work the hours needed on my own schedule provided I meet deadlines. Do you believe I could
    be hired as a programmer at 50-60K per year?

  • @paddym27
    @paddym27 Před 7 lety

    great advice in this vid!

  • @wyteco
    @wyteco Před 7 lety +1

    I like your style of videos! You somewhat remind me of Louis Rossmann ^^