The High-Performance Series

Think Big, Do Small, Learn Fast

In order to keep up with emerging techniques, I would like to update you on this story throughout the year.Last updated on 2021 Jun 28
Photo by Kirill Sh on Unsplash
  • Start with simplest: all in one.
  • The art of scability: scaling out, scaling up.
  • Scaling a relational database: master-slave replication, master-master replication, federation, sharding, denormalization, and SQL tuning.


Thought Programmer

Explaining common different architecture patterns

Photo by Alexander Andrews on Unsplash

A pattern is a solution to a problem in a context.

  • Layered Architecture
  • Pipe and Filter
  • Client Server
  • Model View Controller
  • Event Driven Architecture
  • Microservices Architecture

Layered Architecture


Interesting JavaScript facts that are worth knowing

Photo by Ben White on Unsplash

1. Type of null is the object which is a bug in JavaScript

> typeof(null)
"object"
> null instanceof Object
false

2. Type of NaN (Not a Number) is actually ‘number’

> typeof(NaN)
"number"

3. (NaN === NaN) -> false

> NaN === NaN
false
if (isNaN(x)) {
return ‘Not a Number!’
}
let values =…


The High-Performance Series

More than 25 common bottlenecks and how to resolve them

Photo by Andrew Seaman on Unsplash

Database

Working size exceeds the hardware limits


It’s better when it’s free

Photo by KAL VISUALS on Unsplash
  • Open source software is the software that is available to users with source code (e.g., Apache HTTP web server, Thunderbird email, Openoffice).
  • Freeware software is a software that is available free of cost (Adobe PDF, Google Talk).
  • Shareware software is a software that are freely distributed to users on trial basis (Winzip, PHP Debugger, Foxit Reader).


Thought Programmer

Facts and Hacks in JavaScript

Photo by Sergey Zolkin on Unsplash

Facts on Bitwise Programming

Bitwise AND

// a = 10 (in binary)
var a = 2
// b = 11 (in…


Asynchronous Common Errors in JavaScript from 1000+ Projects

Diagram of the promise chain

Forgetting to check the return value of requests

try {
await fetch("htp://yoursite.com");
} catch(e) {
// Failed to fetch
console.log(e.message);
}


Thought Programmer

A comparison of some popular programming languages

Photo by NeONBRAND on Unsplash

Popularity

Java and Python appear to be the most popular language choices

Programming language to learn


Thought Programmer

6 code smells that we should avoid

Photo by NeONBRAND on Unsplash
  • Singleton pattern
  • Tight Coupling
  • Untestability
  • Premature optimization
  • Indescriptive Naming
  • Duplication

The code smells refer to possible indications that something is not quite right in our code and that we will probably have to refactor it.

What is S for? Singleton


Data Scientist

HTML, Javascript, and libraries

Photo by Manja Vitolic on Unsplash

What you need to know

  • HTML
  • CSS
  • JavaScript

How to run this program?

python3 -m http.server 8081
localhost:8081

Writing an Image Classification program

  • index.html
<!-- There are…

Anh Dang

I write about things that I like and things that I don’t, mainly in the business, art and tech sphere. Sign up for my newsletter http://junryo.xyz

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