Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Managing Code Written for learning [closed]

I want to ask about the different techniques they used to remember various programming techniques. We go through various books and various online tips and tutorials we also get so many ideas from the code written by somebody else.

Now all these inputs are memorized or stored in some format so that it can be found easily when referred. Absence of such storage may result in rewriting the code or reinventing the wheel.

I use to create one Working folder where I keep all my trial code but sometime after few days / months since the code is not tagged or named properly its difficult to find it out again.

like image 902
GJ. Avatar asked Jan 13 '10 07:01

GJ.


People also ask

What's the most important mistake to avoid when learning to code?

№1: Skipping brainstorming. When you are first presented with a programming problem, you start to think of a solution; once you do, you will probably stop and start implementing it. That's here the first mistake that people make when they are learning to — I did it, too, at the beginning.

What is coded learning?

When children learn to code, it helps them to develop essential skills such as problem solving, logic and critical thinking. Through coding, children can learn that there's often more than one way to solve a problem, and that simpler and more efficient solutions are often better.


1 Answers

For Perl, I have a module I call staging.pm, and use staging; is a pragma in my code which allows me to use experimental, not fully developed code in my development. This developmental code will be placed in a branch called "staging" off of the user library directory. The main thing that the module does is put my staging directory at the head of @INC. Once my code is mature--if it ever is--it will be moved into my user lib directory.

As for scripts, they can be run from wherever they are and I use a directory named test off of the bin directory.

So that's kind of my approach. I don't know how useful that is for you.

like image 141
Axeman Avatar answered Sep 22 '22 15:09

Axeman