• Home
  • Apps
  • Gadgets
    • Gadgets for Kids
    • Store gadgets
    • Tablet Computers
    • Cheaper Gadgets
    • Apple
      • iPhone
      • iPhone 5
      • iPad2
  • Games
    • Game Consoles
    • Online Games
    • Angry Birds
    • Instagram
    • Pinterest
    • Twitter

Techie Kids

(and a not so techie mom)

  • About
  • Disclosure
  • Privacy Policy

The Importance Of Understanding Each Line Of Codes

July 12, 2012 by Marie Gizelle 2 Comments

The Importance Of Understanding Each Line Of Codes

The internet became and still considered the largest library of any field of studies today including programming. Thus, developing any kind of application became quite easy today because of this. There are lots of source codes being shared by other developers through forums, communities, and blogs. And because of this, there are lots of developers/ programmers who became skilled on the copy-and-paste programming technique (if you can call it a technique).

 

Actually, there’s nothing wrong on copying codes specially if it is a very good solution to a problem. But, most of the published codes weren’t properly or completely explained. And I knew the reason for this. So, why? Because those codes aren’t meant to be copied completely. They want you to revise it to something that’s gonna be more useful and efficient for your program.

For example, a programmer shares his codes in a forum. Let say, it’s a function that reads a text file and returns a boolean value (TRUE if text file is not empty and FALSE if text file is empty). Some readers will just copy this function completely and use it without modifying anything inside it. Now, does it became useful? Hmm, maybe.

This is where we can see the importance of understanding each lines of codes. Yes, we already knew what the function does. It will read a text file and check if something was written on it or it’s empty. As simple as that, right? But in most of the times, if you just copy-and-paste, your code will became prone on errors, or, if there’s no compile error, your application became slower because your code was not optimized.

Impact Of Not Understanding Each Line Of Codes

As I mentioned, if you just copy-and-paste codes and don’t understand what each lines of codes does, your code became prone of errors or your application became slower. Why and how?

– Conflicts on variable names.
There might be instances that you declared a public or global variable on your program and that name were also being used as a private variable inside the function you’ve copied.

– Conflicts on data types.
This is very common. For example, you declared an integer variable, and you copied a function that returns a float value. Then, you will assign that function to the integer variable that you declared. EPIC FAIL!

– Redundant codes.
Because you just knew what the function you copied does, yet you don’t understand what’s inside it, there might be instances that there is/ are duplicate process inside it that you already have outside it.

– Might lead to Pokemon Exception Handling
If you do not understand the process inside the function you copied, it’s very difficult to debug. Thus, it will lead you to use a generic exception to handle all errors for your code. Yeah! Try or just Gotta Catch ‘Em All!

Just my two cents, it’s not bad to copy codes. Just make sure that you understand what it really does. Then modify and optimize it so it will fit for your application.

Tweet
Share
Share
Pin
0 Shares

You might also enjoy...

Desktop Application Developer Versus Web DeveloperDesktop Application Developer Versus Web Developer
Annoying SPAM, Scary too!Annoying SPAM, Scary too!
Tips To Become A Successful ProgrammerTips To Become A Successful Programmer

Filed Under: The Web

Previous Post Ways To Prevent Spam
Next Post Desktop Application Developer Versus Web Developer

Comments

  1. mavic cantes says

    July 13, 2012 at 2:33 pm

    Right…It did happened to me and it all ended up in error..hahaha have to wait for someone to do it for me na lang…:D

    Reply
  2. Aj Banda says

    July 20, 2012 at 10:28 am

    well.. I always make sure that I understand the things I copy on the net prior to using it.. it’s hard to deal with some things that is hard to understand and yes, it always lead to conflicts :p

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

WELCOME

WELCOME

We are techie kids.

FOLLOW ME

  • Instagram
  • Pinterest
  • Twitter

CATEGORIES

  • Activities
  • Angry Birds
  • Apple
  • Apps
  • Art
  • Bicycles
  • Blog
  • Blogging
  • Boating
  • Branding
  • Business Ventures
  • Camera accesories
  • Cameras
  • Canon
  • Careers
  • Cars
  • Certifications
  • Cheaper Gadgets
  • ChildCare
  • Computers
  • Crafting
  • DIYs
  • Domain Names
  • F1
  • Facebook
  • Family Fun
  • Family Time
  • Featured
  • Final Fantasy
  • Fishing
  • Football
  • Gadgets
  • Gadgets for Kids
  • Game Consoles
  • Game Rooms
  • Games
  • Geeky Weddings
  • Gift List
  • Giveaways
  • Gizmo
  • Google
  • Google Doodle
  • Green Conscious
  • Indoor Playground
  • Innovations
  • Innovators
  • Internet Giants
  • Introduction
  • iPad2
  • iPhone
  • iPhone
  • iPhone 5
  • Kids and Video Games
  • Kids in Doodles
  • Little Big Planet 2
  • Macbook
  • Macbook accessories
  • Mind games
  • Movie Trinkets
  • Movies
  • Museum Visits
  • Online Games
  • Online Presence
  • Online Shopping
  • Outdoor
  • Park Play
  • Phones
  • Photoshoots
  • Pixar
  • Playmobil
  • Playstation Games
  • Programming
  • RC Helicopters
  • Role playing games
  • Science
  • SEO Related
  • Silicon Valley
  • Slider Puzzles
  • Smartphones
  • Software
  • Sports
  • Steve Jobs
  • Stickers
  • Stock Photography
  • Store gadgets
  • Tablet Computers
  • Tennis
  • The Web
  • Toy shops
  • Toy Stories
  • Toy story
  • Tuesday Couch Potato
  • Uncategorized
  • Video Games
  • Virtual pets
  • Weddings
  • Wii
  • Winter Fun

GET UPDATES

Leave me your email to receive new entries, tips, and specially offers only for you! . Don´t miss any update!

LATEST POSTS

Raising Business-Minded Kids, 4 Best Points

Raising Business-Minded Kids, 4 Best Tips

7 Best Remote Control Toys For Techie Kids

Fun Park Visits With The Kids All 4 Seasons

Fun Park Visits With The Kids All 4 Seasons

Top 5 Techie Gifts for your Loved Ones

Top 5 Awesome Techie Gifts for your Loved Ones and More

techiekidsinfo

Summer may be over, but Saturdays and Sundays and Summer may be over, but Saturdays and Sundays and free times on weekdays are not. Are you running out of ideas of things to do with the kids? 

Head over to https://techiekids.info/diy-projects-to-do-with-the-kids for some tips on things kids might enjoy doing with you. 💕

#TechieKids #Thingstodo #KidsProjects #Activitiesforkids #FunStuff #Kidstuff
Ice cream break. #NotSoSummer #TechieKids #IceCre Ice cream break. #NotSoSummer

#TechieKids #IceCream #Kids
Vienna is our playground. #Playground #Play #Tech Vienna is our playground.

#Playground #Play #Techiekids
Taking a break from so much walking. #TechieKids Taking a break from so much walking. 

#TechieKids #GadgetKids #ExploringVienna #ViennaNationalLibrary
Hi 👋🏻 #TechieKids #Kids Hi 👋🏻

#TechieKids #Kids
Walking on ropes is fairly easy! 😉 #RopeWalk#T Walking on ropes is fairly easy! 😉

#RopeWalk#TechieKids #summer #WalkingOnRope #Adventure #Kids
Umbrella mine!!! #Ellaellaella #TechieKids #Umbre Umbrella mine!!! #Ellaellaella

#TechieKids #Umbrella #Sundays #SemiFormal
Swing away! #TechieKids #Swing #Balance #Playgrou Swing away!

#TechieKids #Swing #Balance #Playground
Follow on Instagram

GET UPDATES

Leave me your email to receive new entries, tips, and specially offers only for you! . Don´t miss any update!

  • Instagram
  • Pinterest
  • Twitter

COPYRIGHT © 2019. Emma Theme by Lovely Confetti · DMCA.com Protection Status