I have been factoring my code and have decided that I need to build a few higher order components.
Why?
I have four components that are very similar and all require some data manipulations to be carried out on the props so I figure I can remove all this duplication with a higher order component that takes in the props , runs some functions and then presents the updated props to the components.
What I have done
To help me get my head around higher Order Functions I created a simple example and have put it into codesandbox.
AppSwitcher.js
I have also created a component called AppSwitcher.js that toggles between the app and specific components I am developing. I have found that this can be quite helpful for sandboxing new things in my app and thought I’d include it here in case anyone else find it useful. The flow of the app is like this
index.js -> AppSwitcher -> App.js or {Components to be tested}
After about 7 months I am getting close to understanding enough to be completing the first version of Infoshot.
I was expecting to be here sooner and have been surprised how complicated building one app is nowadays. So different from 1996 when I built “Detroit Underground” in php and html.
There are many parts that must be learnt to build a modern application. I have just process mapped my app and thought sharing may be interesting to others.
So I have 10 hours in Kuala Lumpa airport so I thought I’d put some photos online. Above are various shots of Ko Lanta. Including the petrol for sale in rum bottles.
Shot in Hamock was in the Blanco Hostel in Koh Lanta and the shot of me on a laptop was at the Kohub – probably the nicest coworking space I have been too
I left Koh lanta and really enjoyed the relaxed vibe, the great sunsets and good coworking space. I’m now off to Krabi and then Melbourne.
I’ve always thought of myself as quite good at arm wrestling I have had 4 notable arm wrestling competitions in my life.
In My Office VS Coworker
Its obviously very Importance to establish dominance and respect of your coworkers in a formal work setting. This I achieved in my first professional job through an arm wrestle. I won and everyone was very impressed.
At a Party vs a Physical Trainer
This represents my high point when it came to arm wrestling. I socked it to the meathead. Everyone was very impressed.
Mad Dog
By now I was feeling pretty cocky about my powers of arm wrestling by this point and this combined with a few pints of bitter meant I must have mentioned how great I was at arm wrestling. Which involved being set up with “Maddog”.
I was only too keen to take my arm wrestling up a level and humiliate this cocky guy and rename him to “fluffy”
Unfortunately he was actually really good. I guess you don’t get a nickname like “Mad dog for nothing”. I lost , badly.
Yesterday in a Thia cocktail bar Vs web dev
After 3 cocktail buckets. This was a long match I thought I was a dead cert. I thought this was the thing I needed to bring back some self respect after losing to Maddog.
Unfortunately after about 15 mins I lost. Extra humiliating because this guy was not a personal trainer, power lifter or called mad dog. Just some web developer.
NO MORE LOOSING
This guy dodn’t even seem that big so I determined it must be technique. So I started looking into it and found this video
WATCH THIS SPACE
Tommorow I will be trying the techniques in the video. I then plan to find this guy and be victorious and avenge the loss. I’ll provide an update. When I beat this guy.
The internet has so much information however instead of liberating people to make better decisions many people just feel overwhelmed.
I have written on this blog in the past about how important I believe it is that people have the ability to make important decisions . This is what has been the motivating force behind Hypermap.
I first started working on this back in 2015.
After a few aborted attempts, jobs, Antstand I am finnally getting back to work on this.
A Hypermap allows creators to add a curated list of websites to their content as you would add an embed-able youtube video. Once the Hypermap is created it can be viewed and shared by anyone and anyone can also add their own information and remove unwanted information by creating their own layer over the Hypermap.
See the new working Hypermap below. Embed by pushing the share button and using embed code.
and this one -featuring content filters and a fullscreen icon
PROGRESS SO FAR………….
Completed
Modern redesign
Works on web and iphone 6
Interactive drilldown
Embed-able and shareable
Still Outstanding
User created content
Creation of user layers
Data visulaisation
Central portal for all Hypermaps
Make contents in iframe responsive
If you like the look of this Hypermap and see where this could lead and would like to be a part of this then please contact me through the contact page
Whilst I was in the UK having a beer with Duncan he mentioned he enjoyed my posts so after sprucing up this site I thought I should write one – so here it is.
On the way back from my trip to the UK I decided to stay in Thailand for a bit. I had 1 week in Bangkok (which I found rather hard to get around) and spent the last week in Koh Lanta. Koh lanta is a lovely place that is not that busy (not like Phuket) but very beautiful. Although I have seen a lot because I have spent most of my time working in this coworking space called Kohub.
Kohub is my favourite coworking space they have a lovely outdoor area, a waterfall, pol table , fast internet and I can order meals online and the kitchen check my photo on my profile, find me and arrive at my desk with my meal.
They have yoga mats too but haven’t yet used them yet.
Snorkeling
For my first touristy activity I went snorkelling on Sunday out in nearby Islands of Koh Haa, Koh Bida and Ko Rok – $50 well spent. below are some of things I saw. I saw a sea snake slithering along the bottom (below) – watched it for a while but decided not to play with it.
FUN FACT:snorkerled/snorkeling is American English; snorkelled/snorkelling is the spelling in British English.
Next Movements
I’ve been very productive since Koh Lantra – found being somewhere inspiring is good for my productivity. I have knocked over a lot of tasks that I did not enjoy this week. One of those jobs is overhauling this website which I like now.
Still figuring things out but what will help me get more time is keeping costs low whilst improving fitness and having fun at the same time. In this aim I have been looking into making my own breakfast. As I am trying to get in a routine that works and enables a low cost, nutritious low carb start to the day.
Cooking in a hotel
One problem I have is a lack of a kitchen. Saw this video which made me chuckle – very ingenious – not sure if I’ll be doing it though!
Is your hip aching? Try these simple, helpful ways to ease hip pain and get back to living.
Don’t Miss This
A Weighty Problem
Rest, ice, compression, and elevation can help relieve your hip pain.
You may have been born with two left feet, but when your hip pain acts up, you can relieve the ache the same way dancers do. When members of the Washington Ballet have hip pain, they use a home remedy called the RICE method — this stands for rest, ice, compression, and elevation — to relieve the pain and get back to their art form.
Amy Humphrey, DPT, a physical therapist and spokesperson for the American Physical Therapy Association, works with the Washington Ballet and advises dancers to use home remedies such as RICE when hip pain sidelines them.
Using RICE for Hip Pain Relief
Anyone can use the RICE method, whether your goal is to slip on a pair of pointe shoes or a pair of sneakers for a daily walk. Here’s what to do.
Rest. The first thing Humphrey tells her patients is to rest, which means avoiding the activities that cause the pain. “It might mean runners stop running for a week and then start back up at a reduced pace and see how it goes,” Humphrey says. She recommends resting for at least 24 to 48 hours.
In Summary
Applying an ice pack to the area where you’re feeling the pain can reduce inflammation and make your hip feel better. If hip pain is very intense, Humphrey recommends using ice four or five times a day for 10 to 15 minutes at a time. An ice pack can be anything from a plastic baggie filled with ice to a bag of frozen vegetables (peas are great). Wrap a towel around the ice pack to avoid irritating your skin.
Compression. Humphrey uses compression by wrapping a thick Ace bandage around the pelvis and hip.