+ 23

How to be more creative while writing a code?

Please leave your opinion. How to improve imaginative skills

1st Dec 2017, 7:35 PM
***
28 Réponses
+ 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
1st Dec 2017, 7:44 PM
GAWEN STEASY
GAWEN STEASY - avatar
+ 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☺
2nd Dec 2017, 7:36 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 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.
1st Dec 2017, 7:49 PM
Kai
Kai - avatar
+ 12
@Gawen Thanks a lot !!
1st Dec 2017, 7:45 PM
***
+ 11
Thanks Harish
1st Dec 2017, 7:49 PM
***
+ 10
Well said @Kai
1st Dec 2017, 7:54 PM
***
+ 10
Thanks Gaurav
2nd Dec 2017, 7:37 AM
***
+ 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?
1st Dec 2017, 9:40 PM
Jakub Miziński
Jakub Miziński - avatar
+ 7
Thanks @Jorvis
2nd Dec 2017, 9:13 AM
***
+ 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
1st Dec 2017, 7:46 PM
Harish V
Harish V - avatar
+ 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!
2nd Dec 2017, 9:05 AM
Jorvis
+ 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.
2nd Dec 2017, 10:56 AM
Alessandro Di Cicco
Alessandro Di Cicco - avatar
+ 4
it's all imagination and way u think
8th Dec 2017, 10:31 AM
Aditya
+ 4
Get inspired by other solutions.
23rd Apr 2019, 12:24 AM
Sonic
Sonic - avatar
+ 3
I will go with @harish
2nd Dec 2017, 9:27 AM
shubham kumar borker
shubham kumar borker - avatar
+ 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
2nd Dec 2017, 7:55 PM
Maris Florin
Maris Florin - avatar
+ 3
Just see the creative temlpates code
2nd Dec 2017, 8:55 PM
Rateb
Rateb - avatar
+ 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)
2nd Dec 2017, 10:25 PM
McNitro
McNitro - avatar
+ 3
Think about the logic first start organising your programme codes in segments using functions and classes
3rd Dec 2017, 6:07 AM
Deepak Singhal
Deepak Singhal - avatar
+ 3
according to me just create an image of the code and then write it first on a paper and think about it deeply
8th Dec 2017, 10:51 AM
Rishabh Shukla
Rishabh Shukla - avatar