L.J.'s Blog

Every day is different. new and improved.

Posts

Being and Existence

Before delving into the concept of Monad, we need to clarify what existence is.Existence can be categorized as: Existence with substance (entities with substance) Existence without substance, whi...… Read More

monad

Axios follows redirect issue

I was deal with follows redirect issue when using Axios package.First of all, As you know redirect response involves redirect status and location header.and The develop environment is react + spri...… Read More

XMLHttpRequestAxiosJavascript

Coding exercise - quick sort

what is QuicksortAccording to Wikipedia, Quicksort Developed by British computer scientist Tony Hoare in 1959 and published in 1961. it can be about two or three times faster than its main competi...… Read More

javascripttypescriptquick sort

compare between VO, DTO and DAO

All the definitions are according to wikipediaVO (Value Object) In computer science, a value object is a small object that represents a simple entity whose equality is not based on identity: i...… Read More

vodtodao

Clarifying Linear Regression

At first of all we should make sure what is Regression. According to the Sir Francis Galton’s definition in statistics, it means regression toward the mean. WIKIAnd we are going to review two cal...… Read More

machine leaning

Coding Exercise - Python While Loops

While Loopscurrent_number = 1while current_number < 5: print(current_number) current_number +=1This loop runs forever!x= 1while x <= 5:print(x) Every programmer accidentally writes an infini...… Read More

pythonloops

Coding exercise - bubble sort

// practice bubble sort const data = [2, 3, 4, 6, 1, 8, 9]; // swap values const swap = (array: any[], from: number, to: number) => { const tmp = array[from]; array[from] = array[to];...… Read More

bubble sortjavascripttypescript

JavaScript Bucket Sort

create buckets set buckets range const bucketRange: number = 10; set bucketSize const bucketSize: number = Math.floor(Math.max(...array) / bucketRange) + 1; generate buckets const bucke...… Read More

javascriptalgorithm

OOP in Python

Classlet create a simple classclass Example: year =2019 product = '' price = 0 dc =0 service = False example = Example(); print(example.year) constructor__init__destructor__del__… Read More

pythonoop

Function and Class component in React Native

There is a simple way to define a Component by Javascript funcion.import React from 'react'import { View, Text } from 'react-native'export const DetailHeader = () => { return (<View> &...… Read More

reactreact native