Writing maintainable Go code
Jogendra Kumar
by
2y ago
Writing maintainable code is essential. Clarity, readability, and simplicity are all aspects of maintainability. It should make the process easy for someone to join your project or maintain it after someone leaves. Maintainability is measured by how effortless it is to introduce changes and the amount of risk associated with those changes. To write Go effectively, it is crucial to understand its properties and idioms and apply the established conventions related to naming, program construction, formatting, etc. Here are some good practices that will help write maintainable Go code. Note: This ..read more
Visit website
Import Cycles in Golang: How To Deal With Them
Jogendra Kumar
by
3y ago
As a Golang developer, you probably have encountered import cycles. Golang do not allow import cycles. Go throws a compile-time error if it detects the import cycle in code. In this post, let’s understand how the import cycle occurs and how you can deal with them. Import Cycles Let’s say we have two packages, p1 and p2. When package p1 depends on package p2 and package p2 depends on package p1, it creates a cycle of dependency. Or it can be more complicated than this eg. package p2 does not directly depend on package p1 but p2 depends on package p3 which depends on p1, again it is cycle. Let ..read more
Visit website
Implementing Launch at Login Feature in MacOS Apps
Jogendra Kumar
by
3y ago
In this post, I will explain, how you can add the Launch at Login (launch application on system startup) feature to your MacOS Applications. Adding this feature is way more complex than you would expect. I use MeetingBar for managing my work/personal meetings over Google Meet and Zoom. MeetingBar is an open-source MacOS App. Recently, I added the Launch at Login feature to MeetingBar. Initially, I thought that there will be a simple solution to it and it will take minutes only. But when I started implementing it, I found out that it is not really that straight forward. You can find the impleme ..read more
Visit website
Using Vim for Go development
Jogendra Kumar
by
3y ago
As a programmer, you spend a lot of time using text editors, IDEs, etc to code. So it is important what and how you use it. I recently moved to Vim for Go development and I am totally loving it. Initially, I was using VSCode with Go extension and after that, I used GoLand for a while. Visual Studio Code and GoLand both are totally awesome, I loved using them too. It definitely takes some time to learn using vim but it is worth the learning. It is totally up to you what works better for you. Do not use vim just because others are using it. I am very much a beginner to vim and things I am going ..read more
Visit website
Building Command Line Tools in Go
Jogendra Kumar
by
3y ago
Command line interface (CLI) tools are an essential part of any developer. CLI tools are lightweight, less noisy, fun to use and of course they make you more productive. Everyday I try to be more dependent on Terminal (I use iTerm) and get rid of GUI applications, simply because I am more focused using a tool that provide me everything with just some commands/scripts than some fancy GUI application that come with fancy popups, ads, pictures which add noise to my focus. In this example, we will create a simple (but scalable to any level) bookmark CLI tool in Go using Cobra that can do basic ope ..read more
Visit website
I do Dotfiles!
Jogendra Kumar
by
3y ago
One of the main advantages/beauty of Unix-like systems is that configurations of everything are very customizable. Dotfiles are simply amazing. They are tiny-little configurations files but they customize/decide a lot of your system. Well-organized and understandable dotfiles basically allow you to automatize complex tasks that you repeat everyday. With dotfiles, your machine is more organized, advanced, and customized in the way you like your system to be. Also with dotfiles, you can mess around with new packages and settings quite easily, without ever having to worry about really breaking so ..read more
Visit website
How to use multiple GitHub accounts on single machine
Jogendra Kumar
by
3y ago
Most of us have multiple (mostly two) GitHub accounts, personal and work account. You need to have the ability to push and pull to multiple accounts. This post is about how to setup and use them on a single machine using HTTPS or SSH. Note: The instructions below have all been executed on macOS and should work fine on all Unix based operating systems. Using HTTPS Step 1: Change remote URL git remote set-url <remote-name> https://<username>@github.com/<username>/<repo-name>.git If you are setting-up new remote: git remote add <remote-name> https://<usernam ..read more
Visit website
How to write proposal for Google Summer of Code
Jogendra Kumar
by
3y ago
It worth mentioning that the proposal plays a very big role in selecting in Google Summer of Code. A proposal is basically you describing to your organisation how you would go about the project. Based on this and your credibility, your organisation would contemplate on whether to select you or not. I was Google Summer of Code student in 2018. During the proposal submitting time, I have seen a lot of proposal on the organization chat channels, some are good and some bad. Many people try but some of them get in as there are limited slots in every organization. What stands out the selected studen ..read more
Visit website
My Google Summer of Code Project Blogs
Jogendra Kumar
by
3y ago
I was Google Summer of Code (2018) Student Developer for FOSSASIA. I spend summer working on SUSI.AI iOS project. During GSoC period, I have written weekly blogs about the features implemented by me. You can find all the blogs in links below. These blogs are originally published on FOSSASIA Blogs website. Connecting SUSI iOS App to SUSI Smart Speaker - August 25, 2018 Adding Support for Playing Youtube Videos in SUSI iOS App - August 21, 2018 Adding Option to Choose Room for SUSI Smart Speaker in iOS App - August 21, 2018 Adding Support for Playing Audio in SUSI iOS App - August 21, 2018 Inte ..read more
Visit website
Changing My GitHub Username
Jogendra Kumar
by
3y ago
Now I have my first name as my GitHub username! My old username was imjog so I wanted to change it to my first name jogendra but this username was not available (Already taken by someone). I looked into jogendra profile and found that it was inactive since this profile created (Zero activity). Then I came across Github’s username squatting policy: GitHub account names are provided on a first-come, first-served basis, and are intended for immediate and active use. Account names may not be inactively held for future use. GitHub account name squatting is prohibited. Inactive accounts may be rena ..read more
Visit website

Follow Jogendra Kumar on FeedSpot

Continue with Google
Continue with Apple
OR