SD Tidbits
Published in

SD Tidbits

Intuitive Code

What’s in a name?

An open Apple laptop, notebook, tea cup and saucer on a wooden table
Photo by Pixabay from Pexels

The advent of TypeScript meant a couple of things. Mostly, it meant that a scripting language, like JavaScript, could drink more Type Kool-Aid like many OOP languages. Be it Type inference or Type annotation.

It also meant…

  • Better IDE IntelliSense during active development — like function arguments and responses sneak peeks.
  • More readable code — compared to vanilla types like any and object 😩
  • Conditions and checks got a little more brief. Try using typeof in your predicates instead of looking for some properties.

if (typeof someArg === "string") { /* do something */}

  • More syntax and logic bug hunting done during development — not after deployment.
  • Conversations and code gained more clarity. Especially, for growing codebases and teams. Properly defining Interfaces, Classes, Types, and nicknames 👀 …got a little more essential.

Oh, so JB not JC created the Feature Interface. Cool cool.

A lot can be said about a developer and her tools.

Often, a good match-up can drive better development practices, augment skills, reduce frustrations, and contribute to some beautiful software deliverables.

--

--

--

Brief writings on some nifty Software Development practices, how-tos, and tools. (Background: Photo by Nothing Ahead from Pexels)

Recommended from Medium

Did you know that the first hackathon was never planned?

Creating Modular Waypoint System in Unity

Double Protocol Will be Integrated by Tollan Worlds to Provide Land Rental Service

Java Visibility Options

Cloud-native 10 key attributes to choose microservices over monolithic

How a Programmer Used 300 Lines of Code to Help His Grandma Shop Online with Voice Input

Microsoft Cloud for Manufacturing — Architect Perspective

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
B. Chepkorir

B. Chepkorir

Software Engineer | Software Development Enthusiast

More from Medium

Why you should leverage functional programming in JS

10 Ways to Use Types in TypeScript

Typescript Basics: Inferences

Moving From Dynamic Type To Static Type