Question about libraries and developing

GodThor

Regular Member
Joined
May 22, 2018
Messages
297
Reaction score
15
Do developers write a lot of code or use libraries only? I mean if I want to get into web developing, do I have to write my own code when I practice with creating new projects? or do I only need to have a general idea about what everything means, how it is connected etc and use libraries instead?

E.g I want to learn php, I'm taking a seminar about it and then what, do I create my custom code with php or find a php framework and work with that instead?
 
If you wanna to write your own code you might use just libraries except you gonna to improve your developing skills to create more expand code and more exciting proggrams
 
If you wanna to write your own code you might use just libraries except you gonna to improve your developing skills to create more expand code and more exciting proggrams

!Yeah to this!

I'll typically only make my own libraries when I've tried 2-3 other libraries, and I can figure out how to make them do the task I set out.
- I might be the dummy.. and I just don't get their programming style.. still.. good reason.
- the library, its features and documentation might be incomplete (this happens more than we care to admit)
- the routine seems very slow, and after some profiling, I understand why.

So, yeah, do write your own libraries. Then, more importantly, make sure you archive them on github or bitbucket, so you can find them later! (waste not want not!)

However, don't be ashamed of reusing library code to do the fast parts, faster.

(I have a current friend, CS undergrad, who decided to rewrite stdlib string functions, with the excuse of: oh.. "strtok is garbage")

I chuckled.. not because he's wrong, but I asked him:
"whats the benefit of doing that".

The only benefit we both arrived to, was that, so he understood how it worked.

Which is not a bad use of time, but it might be a bad use of project time.
 
extensions that used o php are called frameworks or CMS if you developing unique script then write it yourself , but if you devloping general script that already many people code it before you (a website/blog even online shop ) then use modify available scripts
 
I personally use libraries wherever I can. Open source ftw.!
 
Do developers write a lot of code or use libraries only? I mean if I want to get into web developing, do I have to write my own code when I practice with creating new projects? or do I only need to have a general idea about what everything means, how it is connected etc and use libraries instead?

E.g I want to learn php, I'm taking a seminar about it and then what, do I create my custom code with php or find a php framework and work with that instead?

I would recommend to just start writing whatever project you have in mind, and as soon as you run into something that you think many people have probly done before then google it and try to find a library, if that fails then write from scratch. Really you want to use libraries as much as possible to maximize your time.
 
Do developers write a lot of code or use libraries only? I mean if I want to get into web developing, do I have to write my own code when I practice with creating new projects? or do I only need to have a general idea about what everything means, how it is connected etc and use libraries instead?

E.g I want to learn php, I'm taking a seminar about it and then what, do I create my custom code with php or find a php framework and work with that instead?
If you need to deliver as fast as possible, use libraries. It's better in the long term for your to write everything from scratch, however, as I said, if you need to deliver quickly, use built in, tested solutions from the community.
 
I think it depends very much on your own skills and your needs.
In general I would say its bad to invent always the wheel again. But if you have a better way to solve a problem, then go on and reinvent the wheel. In any case, if you are a newbie its maybe also a good exercise. For my case, its just boring to code stuff that already exists 1000 times. Why do i need to code my own logger if there are professional libs on github for logging.
The reason why IT grow so fast is that devs cooperate, learn and profit from each other.
 
I am going to be straightforward on my response.
All coding languages have libraries to make efficient coding without reinventing the wheel.
PHP has composer, you can install anything with it.
NodeJS has npm, npm install express
Python has pip, pip install PyQT5 (or also anaconda)

Also frontend languages like JS has many libraries to code fast, like JQuery, VueJS, Underscore and more.
 
It depends on the level you want your application to be releazed on. It is not necessary to write a lot of code when a library suffices and it is probably more efficient. A lot of programmers don't code huge parts as they need to complete a project in the fastest and easiest way possible. Unless you are doing things at a low level you may use libraries as you prefer.
 
Do developers write a lot of code or use libraries only? I mean if I want to get into web developing, do I have to write my own code when I practice with creating new projects? or do I only need to have a general idea about what everything means, how it is connected etc and use libraries instead?

E.g I want to learn php, I'm taking a seminar about it and then what, do I create my custom code with php or find a php framework and work with that instead?

Libraries are very helpful and help us speed up the development process. And also much dirty work is made for us which is reliable and tested.

I.e, it will be much easier to develop front-end of application with Reactjs than by doing it by vanilla js. You will also get performance benefits. And your code will be much easier to read, manage and scale.

But you must understand React's concepts and why it is fast and how virtual dom works. It is not necessary to understand everything though, but you must dive deep into layers of abstraction step-by-step.

But it is very important to know how things work because when you get stuck, you will have less guesswork.

For working with dates, I am using date-fns library, but before using it, I worked with with vanilla js too.

Recently I wanted to learn web components and I started my project with vanilla web components. Now that I have a good idea of how it works and got my hands dirty, I will use the library for help. i.e skatejs.
 
Do developers write a lot of code or use libraries only? I mean if I want to get into web developing, do I have to write my own code when I practice with creating new projects? or do I only need to have a general idea about what everything means, how it is connected etc and use libraries instead?

E.g I want to learn php, I'm taking a seminar about it and then what, do I create my custom code with php or find a php framework and work with that instead?
They use libraries only. It takes quit a bit of time and knowledge to write industry strength code and that's why people rely on proven libraries to do the heavy lifting.
 
Much depends on the business you work for.
Some places will not buy any expensive libraries (like telerik for example).
Some places want nothing to do with external libraries, and if you use one, you need to document and make sure is secure for the company to use. (safety fear)
Some companies don't want anything to do with libraries based on their fear to missing royalties/payments and not understanding the various licensing contracts.
Some libraries are just too popular and proven safe, not to mention required to save a lot of time (PrimeNG comes to mind), most likely some developers fought the battle on a prior project and the library is safe to use.
If you are a developer working for a decent company you will learn that most decisions do not belong to you.
 
Personally I use libraries if possible. Why to rethink bicycle ?
 
Back
Top