Load Remote Data, Parse, and Render in UI.

Image for post
Image for post
Photo by Vojtech Bruzek on Unsplash

We will write an application that loads a list of todos and renders them in a table with line-through on todo title text if already completed.

Here is our remote data URL:

which return something like below

Below is the mockup design of our exciting application.


Here is one way you can clean up your function parameters

Image for post
Image for post
Photo by Curology on Unsplash

Function and passing values to function is something that we all do every day of out software engineering life.

This writing tries to help optimising function argument passed.

The Scenario

Consider this below function. This function takes four arguments.

This is how we will call this function

The output is:

The Problem

Violation of ‘clean code’ principle

This principle suggests that a function…


Make your pull requests more productive

Image for post
Image for post
Photo by Sigmund on Unsplash

Having your code analyzed can feel invasive and uncomfortable. Even worse, reviewing other people’s code can feel like a painful and ambiguous exercise where you’re searching for problems and not even knowing where to begin.

Code reviews are a necessary part of the software engineering process because you alone can’t catch every problem in a piece of code you write. That’s OK, though. Even the best basketball players in the world miss shots.

Having others review our work ensures that we deliver the best product to users with the least number of errors.

This article aims to provide some solid…


Simple, yet powerful protocols you can follow in 2021

Image for post
Image for post
Photo by CDC on Unsplash

“Code never lies, comments sometimes do.” — Ron Jeffries

Code Commenting! Some people say it’s ugly , Some says it’s standard and good practice to do.

Commenting is the “art” of describing what your program is going to do in “high level” English statements.

Here I have listed 4 simple protocol to follow while writing comments.

Although these suggestions can be applied to any programming language, we’ll use JavaScript to illustrate them in practice.

1. Only comment things that have business logic complexity

“Comments are an apology, not a requirement. Good code mostly documents itself.

Below one looks shitty.


“There are only two hard things in computer science: cache invalidation and naming things.” — Phil Karlson

A large collection of books at a library.
A large collection of books at a library.
Photo by Zaini Izzuddin on Unsplash

“In computer programming, a naming convention is a set of rules for choosing the character sequence to be used for identifiers which denote variables, types, functions, and other entities in source code and documentation.” — Wikipedia

Naming things is hard!

This article will try to focus on the A/HC/LC method for naming, hoping this will enhance code readability.

Although these suggestions can be applied to any programming language, we’ll use JavaScript to illustrate them in practice.

What’s (P)A/HC/LC?

This practice suggests using the following pattern for naming a function.

What’s a Prefix?

A…


Improve your code readability with these tips

Image for post
Image for post
Photo by Mihai Surdu on Unsplash

In computer programming, a naming convention is a set of rules for choosing the character sequence to be used for identifiers which denote variables, types, functions, and other entities in source code and documentation.

Naming things is hard!

This writing is tried to focus on some rules and protocol for naming a variable which will improve code readability.

Although these suggestions can be applied to any programming language, we will use JavaScript to illustrate them in practice.

1. Follow S-I-D

A name must be Short, Intuitive and Descriptive.


Who needs an MIT license when you can have a Beerware license?! 😂

Image for post
Image for post
Photo by Bill Oxford on Unsplash

Please Note: Software licensing is serious!

A software license is a legal instrument (usually by way of contract law, with or without printed material) governing the use or redistribution of software.

Here I have listed some funny licenses that may make you laugh.

TL;DR Noting serious here! Read this just for fun!

1. Beerware license: Buy the publisher a drink.


Good-to-know code Snippets for every dart Developer.

Image for post
Image for post
Photo by Barn Images on Unsplash

Dart is a client-optimized language for fast apps on any platform.

Well, what does this mean?

JavaScript is dominating client side technologies so far but dart is gaining a lot of attraction these days. Already flutter, which is a cross platform mobile framework, already passed the github stars over react-native in its very early age.

I am developing with react-native for over 3 years and recently I have tried flutter. The development experience I would say is simply awesome.

It’s fast, has out-of-the-box widgets, and hassle free debugging and troubleshooting.

Here I have listed some of the useful code snippets…


Funny ways to remember what your server wants to say

Image for post
Image for post
Photo by Taylor Vick on Unsplash

All HTTP response status codes are separated into five classes or categories. The first digit of the status code defines the class of response, while the last two digits do not have any classifying or categorization role.

This writing tried to help you to determine or narrow down the problem you are facing while talking to your server.

1xx: Hold on

With only 3 codes (100, 101, 102), the 100 series is the shortest one. Basically, what it does is return an information message such as “I am working on it”. No success or error, just a “Roger that!”

2xx: Here you go. I am Fine. Its a Success

A code 200 is…


Docker Commands that every software should know

Image for post
Image for post
Photo by Andy Li on Unsplash

Docker is a tool designed to make it easier to create, deploy, and run applications by using containers. Well that all developer is aware of.

Here I have listed some basic docker commands that every software developer should be familiar with.

Note: This list will enrich as days go on. Feel free to write comment is anything missed.

1. List Containers

docker ps -aq
# only shows IDs

[OPTIONS] few are .. More you can find from here

--filter # or -f Filter…

XOR

Software Writer. Now Learning Flutter.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store