+ 11
I have a question for everyone ?
As we know in programming language have different kind of methods for solving problems. Method like: sorting, replace,find, count etc. But even we write program to make sorting, replace, find,count, indexof etc. Why we write program it's already made in programming language. What are the benefits to make it again. What are the changes come after making this type of programs. Please tell me I want to know.
11 odpowiedzi
+ 24
Keep in mind that programming languages are simply tools. The logic is the science of being a programmer. If you don't understand the logic of programming, you'll be unable to solve problems when they come up. As soon as you try to write a complex program, you'll be unable to do it. Some programs are thousands or even millions of lines of code. Here, at SoloLearn, you only learn very basic contructs and syntax. The science of programming is a lifelong pursuit of how and why. That's the whole point. Learn to think like a computer to solve real world problems. Use libraries where you can but code your solution where you can't.
+ 8
One reason for re-writing methods is probably just training. Sometimes we can better understand the methods when we programmed them by ourselves
+ 7
Pawan Kumar It's actually a great question. It really comes down to a few simple things. Let's start with this:
Every programming language has a few basic features built in to help making programming easier. But those are not always the best solution. For example, sorting. You can sort using a sort() function. But there are different sorting algorythms that fit different needs. What do you need? Does the built in sort do that or not? What if you need a custom sort for your specialized objects? There won't be a sort function for that. So you need to understand sorting algorythms to solve these problems. That's why they teach it. Not because you'll always need to write one. But you need to understand how they work just in case you eventually do need to have a truly efficient sort.
A great example is Google.com's search engine. It has trillions of data elements and finds precisely what you're looking for in a fraction of a second. Imagine how complicated this must be.
+ 6
Pawan Kumar Well I don't know whether my answer is right or wrong still I will try
1) Advantage : Method is same but programmer's are different their thinking is different through this we can learn different ways to approach these methods.
2) Modification : Definitely if you start creating code you will get lot of different ideas obviously that change will be helpful for learner's.
For example, If you check in Sololearn all codes are different that will be helpful for us to learn in better way.
+ 4
Jerry Hobby is correct
+ 2
Maybe but i want more but for other reply
+ 2
Hmm maybe but Wait for other reply
+ 2
Jerry Hobby I agree with your answer. Now I am satisfy with their answer.
+ 1
Hmm
+ 1
Well, if someone didn't make those programs that solve stuff, you wouldn't have them.
Sometimes you can make your own solutions so that you can practice problem solving but overall don't have to, you just have to know how to make those programs and how they work otherwise don't waste your time.