Below you will find pages that utilize the taxonomy term “javascript”
Posts
MACH (micro service based, API first, cloud native, headless)
Just an architecture style MACH got me attention. It is short for micro service based, API first, cloud native, headless. There are two of projects I involved one are in this architecture style. One is sitecore based, another one is developed. Kubernetes, nodejs, npm, strapi tsoa are used. Their mapping is as following.
micro services based: multiple services based on expressjs
api first: tsao
cloud native: more advanced than cloud native, kubernate native is used.
Posts
Using copilot for javascript debugging
Yesterday, I clicked a button in one web page, no response from that. I thought it must be something wrong. I opened browser console and noticed there is an icon. It turned out be a copilot icon after reading the logs in console.
Nowadays, copilot almost is everywhere, office suite, vscode, visual studio, windows and edge browser. Never thought it is embedded in browse web console.
Posts
Extract multiple field and values from a json file fetched once in powerquery
I learnt to extract npm package inform from https://registry.npmjs.org/ on 2023-08-31. Today I have more packages. The original query need to be optimized for better performance.
In the old post, one can quickly spot that the package information is fetched twice. It is the place to optimize today. I will put selected fields into a column, and extract values from the column later. This way, It can spend less time.
Posts
Get information from internet in excel, custom function vs powerquery
Last week I worked on filling info package information to a workbooks. I used VBA macro before and thought of it again to save some of my time.
Things is changing very fast, the new javascript based custom fuction is the mainstream. The initial one I followed the tutorial, however I didn’t find any way to add it into "My Addin" as described in microsoft doc site. I don’t have administrator rights on my laptop.
Posts
Generate a customized rule of spectral using chatgpt
Background I didn’t find a rule implementation of spectral at stoplightio and github to lint the rule that resources should be nouns in REST API. stoplight mentions that Use Nouns for Resource Names, however there is no another article about that. I was bothered by that for a while to the point I want to give it a try to implement my rule for that.
There are several existing implementations about this rule.
Posts
run redux-saga examples
run redux-saga examples TL;DR:
yarn yarn build
I run into module not found issues when I try to run those examples under the repository of redus-saga. Even following comments in github issues and stackoverflow, those solutions don’t work out.
Scripts in the package.json of the root folder don’t work for examples.
After run yarn && yarn build, can change directories to those examples and run them.