Wan Razali
dream to be rich business man in technology and properties
https://1drv.ms/x/s!Ajm_5YB10YZyi1gphL5aC0IbWYrQ?e=Dsd4Hs
What is best DS & Algo to implement?
What is best DS & Algo to implement?
Animal
Milk
Sport
Meat
getMultiFixedTables<T>(select: number[], where: string[],
tableJoints: HTableJoint[], options: HSelectOption<T>): Promise<HResponse<T[]>>{getMultiFixedTables<T>(select: any[], where:any[],
tableJoints: any[], options: any<T>): Promise<any<T[]>>{ public async getSingleFixedTable<Entity>(
tableName: string,
select: HSelectCommand[] = [],
where: HWhereCommand[] = [],
options: HSelectOption<Entity> = {}
): Promise<HResponse<Entity[]>>{
options = _.defaults(
options,
{limit: 10, offset: 0, orders: [], groupBy: [], having: {}}
);
this.command.parseGet(select, where, options);
tableName = this.command.replacePrefix(tableName);
return await this._getSingleFixedTable(
tableName,
this.command.getSelectFixed(),
this.command.getWhereFixed(), this.command.getOptions()
);
}set default values
enforce algo
child contract
Library - can be used for any projects
Plugins - library that might be used by an application
Projects - specific codes for a particular application. Can't be used by others
Resources - images, SQL that are common for all projects
Principle To Remember
How To Validate
https://slides.com/muhaiminnaim/naming-convention
https://slides.com/muhaiminnaim/ecmascript-2016-2018
By Wan Razali