Posts

Showing posts from 2018

A Go Journey - Part 1

Hello fellow coders, Merry Christmas and a Happy New Year!! I am about to start a fresh project with Golang. I will update the blog through out the project. Here I am going to create a simple blogging platform using Golang's micro-architecture just like I created using Laravel and Django . I just started Golang.  As I understood it sofar, we can call it as a combination of C and Python programming languages. It has the power of C with easy coding style like Python. For me, the most weirdest thing is variable/function declaration in Go. as an example, to define a string variable var myname string = "sachith" // function syntax func myfunction() string { return "Hello World" } a bit strange, isnt it? for variable definitions, there is a short method. myname := "sachith" Golang's capabilities and performances are the main attraction fo r this relatively new language. Golang is not considered as an O

How to ask a question on StackOverflow

When we do coding we often face many problem. Theoretically ok code may not run in practical environment. So what we should do. First we can ask from our fellow coders near you. If they cant help you, what do you do? You must have checked StackOverflow. Most of the time, we go there just as a reader and read threads about similar problems. But what would happen if non of them help you. You have to ask a question. Here are some tips for asking a good question on StackOverflow. Its not for helping you to complete your homeworks. So never ask, I have to do this, how I can do it. First try something by yourself, even its a simple hello world program. Then ask your question with you used code, expected result and the actual result you got. When you ask a question, be simple and short, include only the necessary details to your question. Always give some details about your environment, such as your OS, software version. Be polite with the fellow coders who tries to help you there.

My experience with VS Code

Hello readers, How had you been? Its been long time since my last blog post. I promised to keep update this blog, yet again I broke my promises. So lets go to the topic. I will cover only the user experience I had with VS-Code, not the technical details about it. Few years ago, I was a Sublime user, I loved it a lot. One of my friend suggested about VS-Code. As I remember it was just the beta or first release. I installed it and tried to use it. But my first experience was similar to Sublime, so didn't give any interest about it. But after a year, when I start programming as my job, I understood the importance of VS-Code. Here are some facts changed my mind. Tons of useful extensions from Docker to syntax highlighting. Excellent git extension. Light-weight ( I can run it on my 5+ years old laptop) Constant updates. ( adding more new features frequently ) LiveShare option ( we can share our coding live with anyone ) Super fast booting time and syntax highlighting. He