+ 23
How to be more creative while writing a code?
Please leave your opinion. How to improve imaginative skills
28 Antworten
+ 31
in my opinion while writing the code you have to think about the most basic logic to most complex logic to solve the problem
1) I have first write the logic of problem on pen paper
2) all logic or taught which came in mind just note it down
3) then look at your taughts and make an efficient algorithm by which you can solve the problem using your logic and taughts
4) then implement it on system
5) if any errors occur then debugging process should be done
+ 34
initially , i first think then write on paper(generally for pattern codes or for codes in which we have to think little bit)... then write it here ... generally error comes ... i correct those ... then look for some improvement and display of output & see the output & then post if everything seems to be fine
//especially when its for some pattern ... u should draw it on paper (by making grids on paper) & then see what can be done (ultimate trick to make any pattern)
edit ::: after some days , u will realise that u don't need a paper pen for many things , u just think of idea (or logic or whatever) ... just type the code & game over☺
+ 19
If you know any programmers, they’re constantly building something. Even when they’re done for the day on work-related projects, they’ll spend hours of time working on fun projects for themselves. Their work is also their hobby.
Continually mulling over new ideas and solutions is something that shouldn’t be a chore. It should be something that you find yourself doing constantly, like a reflex. And it should excite you.
+ 12
@Gawen Thanks a lot !!
+ 11
Thanks Harish
+ 10
Well said @Kai
+ 10
Thanks Gaurav
+ 8
The best ideas appears in to the shower :)
However, the most important part in my opinion, is to be skilled and experienced.
It is very challenging, or even possibile to a junior to have great ideas for coding. You have to feel your language and tools you got.
Without enough skills, you can have great concepts, and goals. But how to realize/implement them?
+ 7
Thanks @Jorvis
+ 6
To improve creativity my best suggestion is to watch cartoons. Just imagine everything you hear, picturise it.
To code, one need to improve logical thinking too
+ 5
First write the logic on the paper.
Then,
write the code on the computer and execute it.
Now, comes the part you are looking answer for.
After your code is successfully running, now give thought on how you could improve the functionality of the code. You should also think on improving the interactivity of the code.
While practicing this, within days you will realise that your creativity regarding the code is improving.
Happy Coding!
+ 4
To improve your creativity you should look at your problem in different points of view.
E.G.:
You need to keep track of the articles in a store.
You could use a simple container and, when an article is needed, you just iterate through the whole container until you find what you need.
Another, more creative, way to solve this would be through a binary tree that assigns the shortest paths to the most required items.
This way, whenever you need something, you can know that there is an high chance that the product requested will be one of the firsts.
+ 4
it's all imagination and way u think
+ 4
Get inspired by other solutions.
+ 3
I will go with @harish
+ 3
Well , it depends on what you are writing code for, but as general rule I write the simplest implementation first, even if I have many ideas running through my mind, then I start building on that, like on a foundation, just adding features. In my opinion as soon as you finish coding your first simple ideas more features will just pop into your mind, because you will be more relaxed
+ 3
Just see the creative temlpates code
+ 3
Some people might say programmers are arrogant, because those people say "it can't be done", and we say "oh yeah, watch me/this!"
Imagination, to me, stems from:
1) Humility. I don't know everything...in fact I know very little.
2) Curiosity. Constantly asking question to add to my massive list of "don't knows".
2) Resolve. I will find a solution.
3) Resourceful. I will use any tool I can to learn what I need. Book? Video? SoloLearn? Another programmer? Practice? ... Yep(5+X)
+ 3
Think about the logic first
start organising your programme codes in segments using functions and classes
+ 3
according to me just create an image of the code and then write it first on a paper and think about it deeply