Use of python libraries #2781
Replies: 11 comments 7 replies
-
I can't see how it can be seen as cheating. Libraries are part of the language, therefore a valid part of a solution. Or am I wrong? |
Beta Was this translation helpful? Give feedback.
This comment was marked as spam.
This comment was marked as spam.
-
probably yes. |
Beta Was this translation helpful? Give feedback.
-
It depends on your goal, if you want to solve it faster then use a library. But if you want to learn more and practice your logic tackling the task than you can go sticks and stones with it. |
Beta Was this translation helpful? Give feedback.
-
Python libraries are vital tools that enhance development efficiency by providing pre-written code for common tasks. They facilitate data analysis (Pandas, NumPy), visualization (Matplotlib, Seaborn), and machine learning (Scikit-learn, TensorFlow). For web development, Flask and Django simplify application creation, while Requests and Beautiful Soup assist with automation and web scraping. Libraries like Pillow and OpenCV handle image processing, and SciPy supports scientific computing. Additionally, NLTK and spaCy are used for natural language processing, and testing frameworks like PyTest ensure code quality. Overall, these libraries boost productivity and functionality in various projects. |
Beta Was this translation helpful? Give feedback.
-
Spirt vs letter I guess; in programming generally if you can solve a problem with a library then it makes sense. There are times when you need to roll your own (for example our production code has a very restricted list of approved libraries for security reasons), that and it’s a good learning exercise; too many learning resources take the lazy route and just have you calling a library function for everything and you never really look into how it works under the hood. |
Beta Was this translation helpful? Give feedback.
-
Sometimes it is mainly used to improve efficiency, but the attitude is subjective. |
Beta Was this translation helpful? Give feedback.
-
Ever since I heard of some libraries having malicious code, I think it's better to build the function yourself and only use libraries if you know what is in them. |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Follow the concept of DRY aka Don't Repeat Yourself in coding and you'll do fine. At least this is what i've learnt from a couple of beginner tutorials on YouTube. |
Beta Was this translation helpful? Give feedback.
-
I don't understand how you can work without libraries, libraries greatly simplify work and, moreover, they were created to solve various complex problems |
Beta Was this translation helpful? Give feedback.
-
I have worked a kata that asked me to find all unique combinations of n elements of an array. There is a python library that takes care of this onerous task for you. (itertools.combinations). Is it "cheating" to use such a helper. Because in the real world we would have this at our disposal. But is it more to the point to do things "the hard way"?
107 votes ·
Beta Was this translation helpful? Give feedback.
All reactions