How to code creatively?
These are just some thoughts, based on many years experience coding. Also a landscape, artist I have always been fascinated with understanding creativity. Here is my art work.
As usual, I would really like to hear your ideas. Please add your comments at the bottom of the newsletter.
Your Creative Brain
How to Be More Creative?
Can You Solve This Coding Problem?
Your creative brain
You’ll be glad to know you already have the raw materials to be creative; your fantastic brain. This may be a bit underused but the potential is there.
Different functions of the human brain are located in different areas. The outer left and right hemispheres, in particular, perform complimentary cognitive functions. Put simply we have a creative right brain and a logical left brain. Which side of your brain do you tend to use?
Try this test:
Right Left functions: forms & patterns imagination, pictures day dreams music tune of a song
To find out more about the brain, learning and creativity take a look at the TalkIT Accelerated Learning course.
Digital technology provides opportunities to use both your left & right brain. But in the early days computers were much more left brain. MSDOS, was the most common operating system for Personal Computers. This allowed only text based commands that were typed on a monochrome screen.
In the last 20 years digital technologies have integrated an explosion of diverse media, combining sound, image, video and more. Just look at how these media are creatively assembled on web pages.
Integrated Development Environments (IDEs), like Visual Studio, also embrace both the left and right brain approaches. The logical left brain in used to write the lines of code. And the creative right brain is engaged with diagrams, coloured text and symbols.
Contemporary coders work with complex overlapping technologies that evolve fast. So knowledge in any scenario is often only partial. There remain lots of unknowns.
In these scenarios, logic is not sufficient. Intuition and imagination are also required. These of course, may be based on past experiences. Even if these experiences are not consciously recalled, they can fuel insights
This is a similar process to a scientific breakthrough. Benzene was first identified by Michael Faraday in 1825. But its molecular formula remained a mystery. This was only discovered by Kekulé in 1865. He worked hard on the problem but could get no further. But then in a dream, Kekulé saw a snake coil up, and grab its own tail. It struck him that benzene might be a ‘ring’ of 6 carbon atoms. This proved to be the case. His logic and intuition worked together.
How to Be More Creative?
It is always a good idea take a break. Coding problems can be compulsive. There is often a drive to persist, keep trying and over-think problems. If you can, resist this urge. You could be making your project worse!
Insights come when you step away from the problem. Use what works for you; sleep, walking, music or talking … or alcohol. Or distract yourself with the internet or fiction. If you are under pressure with deadlines, this may require some skilful time management.
Taking your brain offline from a problem, giving it idle time, will allow solutions to appear.
Our minds seek to complete processes, once they are initiated. Let your unconscious resolve the problem then present a solution. Like that snake that appeared in Kekulé’s dream
Meditation is a great way of doing this. Of course, this takes a bit of self disciple to learn and practice. See if you focus your attention on your breathing, sitting with your eyes closed, say for 20 minutes. Avoid getting lost in long trains of thought, but allow new thoughts to drift up. You will be surprised at the insights and solutions that appear.
Here are instructions for a breathing meditation to calm the mind.
Can you solve this coding problem?
Here is a coding puzzle. The aim is to write a short and elegant program in a language of your choice. This time we are working with a roulette wheel.
The wheel has 37 slots numbered 0 to 36. Half the numbers a red and the other half black, with the exception of zero. Player’s place bet, then the wheel is spun. If the ball lands on zero, the house takes everything.
Write code to:
- Input the amount of a bet
- Simulate the spin of the wheel using a random number
- Calculate and output the return the bet
- Accumulate the player’s balance over repeated spins
Have a go! This could help you improve your income!
TalkIT has created its own e-learning platform to train software developers. This is aimed at anyone who wants to learn a new technology or language from novice to advanced level. You will learn step-by-step how to build business applications and databases.
Many of the shorter tutorials are free. We have a launch offer till end December only. A subscription to a full length courses cost £4.99. Or you can buy a Gold subscription to all courses for £9.99.
To find a tutorial just click:
To find out more look at the FAQ page:
An online course courses in Java has just been added to the TalkIT site.
And online courses in C++, Python courses will be added to the TalkIT site in the next few months. Take a look at what is in the courses:
Java published December 2014
C++ published Spring 2015
Python published Spring 2015
In addition, We would be happy to hear your opinion about creative coding. Do you use creative coding in your career?
David Ringsell 2014 ©