Start with this to have a work-life balance

A slightly off topic from technology this time, but somewhat related to. I wanted to share this as most of us face this question or being asked, hence writing this post.

In today’s world of extreme competition and

I went through these questions myself

  • Do you have a perfect Work-Life balance?
  • What is a work-life balance?
  • How do you measure the balancing part?

Finally ended up at – Whatever makes me and my family happy proportionately. Since we all have only 24 hours a day we need to divide according to the needs.

Work definitely takes up major part of our day followed by a good sleep. How to stay healthy and fit along with being competitive at work updating with latest technology and keep family happy. Spending time with family is also like a break which is more needed everyday.

So I divided my awake time into these basic things

  • Work
  • Family
  • Studies
    • Improving in areas related to Work
    • Learning new things which helps your career – unrelated to work
  • Personal interests

Dividing your time among these.

Work – Typically 8-9 hours per day + commute time 1 hour to&fro (I will tell you how to utilise if this is more)

Family – You need to spend a minimum of 1.5 – 2 hours per day on week days. And 1 out of 2 days on weekend, either divide it half day each per day or 1 full day at stretch.

Studies – With today’s rapid change in technologies and young fresh workforce available to work harder grabbing every opportunity, we need to strive harder not just keeping up the pace but to be better at the competition. So we need to be updating and upgrading ourselves every single day. This becomes more critical:

  • Improving in areas related to Work – if done consistently an hour every day suffices. Also learning on the go at work, discussing with colleagues is best possible way to improve yourself –  1 hour/day
  • Learning new things which helps your career, unrelated to work, is basically for expanding your horizon as you grow. One hour a day or at-least 5 hours a week consistently must get you going.

Personal interests – This here is anything you want to pursue in your life or life the way you want. (For example I want to: go on bike rides, see different places, try different  cuisines, understand different cultures, learn more about life.) Allocate some time for this cause this is what makes you happy, brings you to life, brings on a change to your routine and fills energy to your life – 30-60 minutes per day.

there should be something which is why you are living for yourself and you must do that or work towards that

This can be daily short routine or weekly routine or twice a year routine. But finally there should be something which is why you are living for yourself and you must do that or work towards that.

Sleep & workout: To stay healthy and fit a human must have at least 6-8 hours of good sleep and a minimum of 30 mins of workout in the form of Yoga or hitting the gym.

Commute Time: As said above if its more than an hour per day use your commute time to accommodate your reading or listening to podcasts. Avoid driving yourself use office transport or any others in which you can focus on progressing on your personal interests or any trivial tasks. In the evenings way back home habituate taking a nap, this refreshes you when you reach home and be energetic when you spend time with family.

Hope this post has helped you in one or other form at least get you started on thinking how you can divide time and accordingly plan your daily life.

Have a great life!

Android-Kotlin Digest #1

Planning to journal updates on my learning in Android and Kotlin development. This would be mostly from an ​iOS developer’s perspective. I will be writing gist of what I learnt today and anything specific interesting.

To start off below are some things I learnt in Kotlin and differences with Swift.

Some basics of Kotlin:

var of mutable variables

val of immutable variables / constants

Adding variable value in a string "The value of variable is $variable_name"

Suffix ? for variables holding null values

Also has a javascript big arrow => function like syntax:
fun sum(a: Int, b: Int) : Int = a + b

Conditionals: `if (obj is String) { … }` and not checks `if (obj !is String) { … }`

I found switch statements most unique till now:

when (obj) {
1          -> "One" // (case)
"Hello"    -> "Greeting" // (case)
is Long    -> "Long" // (case)
!is String -> "Not a string" // (case)
else       -> "Unknown" // (default case)

Ranges are specified as 0..end or 0..end+1 or 0..list.lastIndex

Then we have progressions:

for (x in 1..10 step 2) {
Jumps alternate steps with keyword `step` and value 2. Here result would be: `13579`

for (x in 9 downTo 0 step 3) {

Jumps three steps but in reverse order with keyword `downTo`. Here result would be: `9630`