Now I want to learn C++ on Linux… But it’s OK because this is my own space. I am just going over some basics on C++ coding.

#include <iostream>

using namespace std;

double square(double x)
    return x*x;

void print_square(double x)
    cout << "the square of " << x << " is " << square(x) << "\n";

int main()

I saved as helloworld.cpp. Now to compile it, I run…

g++ helloworld.cpp -o helloworld

It generates a binary file helloworld. When I execute it, it shows something like this…

the square of 5 is 25

Very simple, but I love something like this. When I start to learn a new language, I don’t use IDE. It makes me learn the language and how it works better.

Going Back to the Office

I am going back to the office from next Monday. It has been 2 long years since the company let all employees work from home. It was amazing to see my company quickly adopted WFH right after the pandemic started. I had an option to keep working from home even after the office reopening but I choose to go back to the office a few times a week.

I miss the face to face communication with people. My team is scattered all over the US and some in different country but I am going to enjoy some impromptu conversations with other engineers.

My commute is going to be mainly by train. It also has been 2 years since I took the train the last time. Wow, it’s been 2 years…