[blog] Maan Libraries
|
Author |
Message |
Tetris999
..............................
Posts: 2,390.4622 Threads: 298
Joined: 15th Apr 2007
Reputation: -6.7936
E-Pigs: 82.5657
|
[blog] Maan Libraries
Oh man, this is the first time I've been able to ward off a rant, woohoo!
Anyway, just going to post how much I feel like a noob using any library of the sorts to help me with programming. I know, it sounds really dumb to hate using libraries and API's but I always feel like I should be learning how to implement most things.
Just curious if anyone shares my rather stupid feelings, I usually go with "if I feel I can do it then I shouldn't use a library". Of course, this leads to a lot of wasted time and what not, but isn't the learning experience the good part about it?
Oh well, maybe I'll get off my high horse and accept the fact that I need to use things made by others to put something together, like a graphics library.
That'd be pretty difficult to implement.
E.g. Using regular expressions to find a specific tag in a webpage for scraping, when you can use one of the many libraries that people made for PHP that allow you to do this much faster (and without some crazy regular expressions). I'm still spoon at working with regular expressions in PHP, partly because testing is always a bitch when it comes to all this web/scripting stuff. :/
MY SIG IS FUCKING DEAD
(This post was last modified: 19/08/2012 10:33 AM by Tetris999.)
|
|
19/08/2012 08:29 AM |
|
ZiNgA BuRgA
Smart Alternative
Posts: 17,024.1882 Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.1807
|
RE: [blog] Maan Libraries
Why to use libraries:
- it's probably been tested/used more than your code
- someone else maintains it for you
- probably designed better than you would do it
- this includes stuff like speed, security etc
- saves time & effort (obviously)
- in a scripting environment, native code runs faster than your own version
- sometimes you don't exactly have a choice (eg integration with another application)
For learning, yeah implement it yourself if you want to, or to boost the nerd cred, but in real world situations, it's generally better to use stuff that's already there (if you can). Main reason you wouldn't would possibly be:
- licensing issues
- you want something that the library can't offer (and you can't simply modify it)
|
|
19/08/2012 04:03 PM |
|
Slushba132
BustyLoli-Chan
Posts: 3,125.3993 Threads: 508
Joined: 20th Feb 2008
Reputation: -8.27558
E-Pigs: 73.1299
|
RE: [blog] Maan Libraries
I program on windows so everything I use comes from an API or a Library on some level...
I don't have the patience to reinvent the wheel that is the windows forms library...
as far as externally maintained libraries, I don't necessarily like to use them, but they can be pretty powerful and offer far easier/better solutions
also, simply put, there are certain sides of programming I never wish to see
|
|
24/08/2012 07:53 PM |
|
User(s) browsing this thread: 1 Guest(s)