{"@attributes":{"version":"2.0"},"channel":{"title":"Cotato","description":"learn not study","link":"https:\/\/dattp.github.io\/","item":[{"title":"npm install - lab th\u1eed supply chain attack","description":"\n          \n          security nodejs npm supply chain attack D\u1ea1o n\u00e0y l\u01b0\u1edbt \u0111\u00e2u c\u0169ng th\u1ea5y AI. Ai c\u0169ng n\u00f3i v\u1ec1 agent, v\u1ec1 LLM, v\u1ec1 vibe coding. V\u00e1ng \u0111\u1ea7u qu\u00e1, n\u00ean m\u00ecnh quay v\u1ec1 th\u1ee9 \u00edt v\u00e1ng \u0111\u1ea7u h\u01a1n, c\u01a1 ch\u1ebf c\u1ee7a m\u1ed9t v\u1ee5 supply chain attack. \u0110\u1ee3t tr\u01b0\u1edbc l\u01b0\u1edbt Facebook, Linkedin\u2026 th\u1ea5y v\u00e0i...\n        ","pubDate":"Sat, 08 Aug 2026 00:00:00 -0700","link":"https:\/\/dattp.github.io\/2026-08-08-npm-supply-chain-attack\/","guid":"https:\/\/dattp.github.io\/2026-08-08-npm-supply-chain-attack\/"},{"title":"Singleton pattern v\u00e0 sai l\u1ea7m \"o\u00e1i o\u0103m\" trong h\u1ec7 th\u1ed1ng scale services","description":"\n          \n          singleton pattern design pattern typescript Singleton pattern v\u00e0 sai l\u1ea7m \u201co\u00e1i o\u0103m\u201d trong h\u1ec7 th\u1ed1ng scale services v\u00e0 ph\u1ee5 thu\u1ed9c v\u00e0o centralized database. C\u00f3 nh\u1eefng bug ng\u01b0\u1eddi kh\u00e1c nh\u00ecn v\u00e0o l\u00e0 th\u1ea5y ngay, m\u00e0 sao ng\u01b0\u1eddi vi\u1ebft ra l\u1ea1i m\u1ea5t nhi\u1ec1u th\u1eddi gian \u0111\u1ec3 debug. 1. B\u1ed1i c\u1ea3nh c\u1ee7a b\u00e0i...\n        ","pubDate":"Fri, 26 Apr 2024 00:00:00 -0700","link":"https:\/\/dattp.github.io\/2024-04-26-singleton-error\/","guid":"https:\/\/dattp.github.io\/2024-04-26-singleton-error\/"},{"title":"Factory Method Design Pattern trong th\u1ef1c t\u1ebf v\u1edbi TS","description":"\n          \n          factory method design pattern typescript V\u1ec1 l\u00fd thuy\u1ebft c\u1ee7a factory method design pattern th\u00ec m\u00ecnh kh\u00f4ng nh\u1eafc l\u1ea1i. \u1ede \u0111\u00e2y, m\u00ecnh ch\u1ec9 vi\u1ebft ra c\u00e1ch m\u00ecnh \u0111\u00e3 \u00e1p d\u1ee5ng factory method trong d\u1ef1 \u00e1n m\u00e0 m\u00ecnh \u0111\u00e3 th\u1ef1c hi\u1ec7n. 1. B\u00e0i to\u00e1n t\u1eeb requirement v\u00e0 c\u00e1ch tri\u1ec3n khai \u0111\u01a1n gi\u1ea3n...\n        ","pubDate":"Thu, 28 Dec 2023 00:00:00 -0800","link":"https:\/\/dattp.github.io\/2023-12-28-factory-method\/","guid":"https:\/\/dattp.github.io\/2023-12-28-factory-method\/"},{"title":"T\u1eadn d\u1ee5ng s\u1ee9c m\u1ea1nh c\u1ee7a id t\u1ef1 t\u0103ng trong Database","description":"\n          \n          nodejs id index database 1. Auto increment ID Hay g\u1ecdi m\u1ed9t c\u00e1ch \u0111\u01a1n gi\u1ea3n l\u00e0 id t\u1ef1 t\u0103ng. \u00dd ch\u1ec9 c\u1ed9t id \u0111\u01b0\u1ee3c sinh ra t\u1ef1 \u0111\u1ed9ng v\u00e0 c\u00f3 gi\u00e1 tr\u1ecb t\u0103ng d\u1ea7n theo s\u1ed1 b\u1ea3n ghi \u0111\u01b0\u1ee3c insert. Trong nh\u1eefng DB SQL nh\u01b0 mysql, sql server th\u00ec n\u00f3 th\u01b0\u1eddng...\n        ","pubDate":"Sat, 31 Dec 2022 00:00:00 -0800","link":"https:\/\/dattp.github.io\/2022-12-31-auto-increment-id\/","guid":"https:\/\/dattp.github.io\/2022-12-31-auto-increment-id\/"},{"title":"N\u1ebfu s\u1eed d\u1ee5ng Observer Pattern trong nodejs P1","description":"\n          \n          design pattern nodejs observer queue 1. C\u0169ng l\u00e0 h\u1ecdc design pattern nh\u01b0ng m\u00e0 l\u1ea1 l\u1eafm C\u0169ng nh\u01b0 bao sinh vi\u00ean c\u00f4ng ngh\u1ec7 kh\u00e1c v\u00e0 \u0111\u1eb7c bi\u1ec7t l\u00e0 khi h\u1ecdc java c\u0169ng \u0111\u00e3 nghe \u00edt nhi\u1ec1u v\u1ec1 design pattern. Ki\u1ec3u nh\u01b0 n\u1ebfu bi\u1ebft design pattern, code c\u1ee7a b\u1ea1n s\u1ebd x\u1ecbn s\u00f2...\n        ","pubDate":"Sat, 17 Sep 2022 00:00:00 -0700","link":"https:\/\/dattp.github.io\/2022-09-17-observer-pattern\/","guid":"https:\/\/dattp.github.io\/2022-09-17-observer-pattern\/"},{"title":"Circular v\u00e0 exports, module.exports trong nodejs","description":"\n          \n          Nodejs circular exports module.exports V\u00e0 sai l\u1ea7m c\u1ee7a tu\u1ed5i tr\u1ebb \u0111\u01b0\u1ee3c th\u1ec3 hi\u1ec7n t\u1eeb qu\u00e1 kh\u1ee9 \u0111\u1ebfn hi\u1ec7n t\u1ea1i v\u00e0 ng\u01b0\u1ee3c l\u1ea1i, l\u1eabn l\u1ed9n kh\u00f3 hi\u1ec3u. 1. T\u1ea1i sao l\u1ea1i c\u00f3 sai l\u1ea7m? Code nodejs c\u0169ng \u0111\u01b0\u1ee3c 1 th\u1eddi gian t\u01b0\u01a1ng \u0111\u1ed1i, nh\u01b0ng m\u00ecnh s\u1eed d\u1ee5ng js vi\u1ebft code nh\u01b0...\n        ","pubDate":"Wed, 01 Dec 2021 00:00:00 -0800","link":"https:\/\/dattp.github.io\/2021-12-01-circular-exports\/","guid":"https:\/\/dattp.github.io\/2021-12-01-circular-exports\/"},{"title":"Th\u1eed Grafana + Prometheus cho NodeJS","description":"\n          Monitor \u0111\u01a1n gi\u1ea3n \u1ee9ng d\u1ee5ng NodeJS v\u1edbi Grafana v\u00e0 Prometheus - \n          Nodejs Grafana Prometheus \u0110\u1ed1i v\u1edbi m\u00ecnh vi\u1ec7c monitor h\u1ec7 th\u1ed1ng r\u1ea5t quan tr\u1ecdng. N\u00f3 l\u00e0 nh\u1eefng th\u00f4ng tin \u0111\u1ec3 developer theo d\u00f5i \u0111\u01b0\u1ee3c t\u00ecnh h\u00ecnh c\u1ee7a h\u1ec7 th\u1ed1ng. Ki\u1ebfm so\u00e1t \u0111\u01b0\u1ee3c khi n\u00e0o h\u1ec7 th\u1ed1ng b\u1ecb qu\u00e1 t\u1ea3i, c\u00e1c ch\u1ec9 s\u1ed1 c\u1ee7a c\u00e1c request \u0111\u1ebfn server. 1. \u0110\u01a1n gi\u1ea3n \u0111\u1ec3...\n        ","pubDate":"Fri, 23 Oct 2020 00:00:00 -0700","link":"https:\/\/dattp.github.io\/2020-10-23-grafana-prometheus\/","guid":"https:\/\/dattp.github.io\/2020-10-23-grafana-prometheus\/"},{"title":"CI\/CD v\u1edbi project NodeJS","description":"\n          Ngh\u1ecbch ng\u1ee3m CI\/CD v\u1edbi CircleCI - \n          Nodejs CI\/CD CircleCI B\u00e0i vi\u1ebft h\u01b0\u1edbng d\u1eabn t\u00edch h\u1ee3p CI\/CD v\u1edbi circleCI m\u1ed9t c\u00e1ch \u0111\u01a1n gi\u1ea3n nh\u1ea5t. 1. C\u00e1i nh\u00ecn t\u1ed5ng quan M\u00ecnh s\u1ebd kh\u00f4ng \u0111i s\u00e2u v\u00e0o l\u00fd thuy\u1ebft v\u1ec1 CI\/CD l\u00e0 g\u00ec?, c\u00f4ng d\u1ee5ng c\u1ee7a CI\/CD v\u00ec c\u00e1i n\u00e0y m\u1ecdi ng\u01b0\u1eddi c\u00f3 th\u1ec3 t\u00ecm th\u1ea5y r\u1ea5t nhi\u1ec1u tr\u00ean...\n        ","pubDate":"Fri, 28 Aug 2020 00:00:00 -0700","link":"https:\/\/dattp.github.io\/2020-08-28-ci-cd\/","guid":"https:\/\/dattp.github.io\/2020-08-28-ci-cd\/"},{"title":"typescript \u0111\u1ea7u ti\u00ean","description":"\n          M\u00ecnh \u0111\u00e3 b\u1eaft \u0111\u1ea7u code typescript nh\u01b0 n\u00e0o? - \n          Nodejs typescript M\u00ecnh m\u1edbi t\u00ecm hi\u1ec3u v\u1ec1 typescript \u0111\u01b0\u1ee3c 1 tu\u1ea7n, m\u1ecdi th\u1ee9 ch\u1ec9 l\u00e0 quan \u0111i\u1ec3m v\u00e0 s\u1edf th\u00edch mang t\u00ednh c\u00e1 nh\u00e2n. 1. T\u1ea1i sao l\u1ea1i l\u00e0 typescript? T\u1eeb m\u1ed9t ng\u01b0\u1eddi code java chuy\u1ec3n sang javascript, m\u00ecnh nh\u1eadn th\u1ea5y JS l\u00e0 m\u1ed9t ng\u00f4n ng\u1eef r\u1ea5t linh ho\u1ea1t. T\u1eeb...\n        ","pubDate":"Sat, 08 Aug 2020 00:00:00 -0700","link":"https:\/\/dattp.github.io\/2020-08-08-typescript\/","guid":"https:\/\/dattp.github.io\/2020-08-08-typescript\/"},{"title":"x\u1eed l\u00fd request trong nodejs","description":"\n          Ai c\u0169ng c\u00f3 th\u1ec3 bi\u1ebft v\u1ec1 event loop trong js, nh\u01b0ng event loop trong server side nodejs l\u00e0 nh\u01b0 n\u00e0o! - \n          Nodejs event loop request B\u00e0i vi\u1ebft mang c\u00e1i nh\u00ecn c\u00e1 nh\u00e2n. C\u00e1c ki\u1ebfn th\u1ee9c ngo\u00e0i ph\u1ea7n tham kh\u1ea3o \u1edf c\u00e1c t\u00e0i li\u1ec7u kh\u00e1c c\u00f2n l\u1ea1i do m\u00ecnh t\u1ef1 suy lu\u1eadn, n\u00ean c\u00f3 th\u1ec3 m\u1eafc nh\u1eefng sai s\u00f3t nh\u1ea5t \u0111\u1ecbnh. Hy v\u1ecdng c\u00f3 th\u1ec3 nh\u1eadn \u0111\u01b0\u1ee3c s\u1ef1 g\u00f3p \u00fd c\u1ee7a m\u1ecdi...\n        ","pubDate":"Fri, 10 Apr 2020 00:00:00 -0700","link":"https:\/\/dattp.github.io\/2020-04-10-event-loop-in-nodejs\/","guid":"https:\/\/dattp.github.io\/2020-04-10-event-loop-in-nodejs\/"},{"title":"null trong js","description":"\n          T\u00ecm hi\u1ec3u null trong js n\u00f3 l\u00e0 c\u00e1i g\u00ec. - \n          JS null undefined V\u00e0o m\u1ed9t ng\u00e0y \u0111\u1eb9p tr\u1eddi m\u00ecnh log typeof null n\u00f3 ra object \ud83d\ude05 . To\u00e1t m\u1ed3 h\u00f4i, v\u00e0 m\u00ecnh \u0111i t\u00ecm hi\u1ec3u xem t\u1ea1i sao n\u00f3 l\u1ea1i l\u00e0 object nh\u1ec9. console.log(typeof null) &gt;object console.log(typeof undefined) &gt;undefined 1. null l\u00e0 g\u00ec? hmz!, v\u1eady null l\u00e0 g\u00ec? Theo nh\u01b0...\n        ","pubDate":"Sat, 04 Apr 2020 00:00:00 -0700","link":"https:\/\/dattp.github.io\/2020-04-04-null-trong-js\/","guid":"https:\/\/dattp.github.io\/2020-04-04-null-trong-js\/"},{"title":"null v\u00e0 undefined trong js","description":"\n          C\u00f9ng t\u00ecm hi\u1ec3u xem null v\u00e0 undefined trong js c\u00f3 g\u00ec hay ho - \n          JS null undefined Trong c\u00e1c ki\u1ec3u d\u1eef li\u1ec7u c\u1ee7a JS, c\u00f3 l\u1ebd null v\u00e0 undefined l\u00e0 2 gi\u00e1 tr\u1ecb c\u0169ng nh\u01b0 2 ki\u1ec3u gi\u00e1 tr\u1ecb kh\u00e1 l\u00e0 \u0111\u1eb7c bi\u1ec7t v\u00e0 th\u00fa v\u1ecb \ud83d\ude04 1. undefined undefined c\u00f3 ngh\u0129a l\u00e0 kh\u00f4ng x\u00e1c \u0111\u1ecbnh. C\u00e1i g\u00ec kh\u00f4ng x\u00e1c \u0111\u1ecbnh? - th\u01b0\u1eddng d\u00f9ng...\n        ","pubDate":"Thu, 02 Apr 2020 00:00:00 -0700","link":"https:\/\/dattp.github.io\/2020-04-02-null-undefined-js\/","guid":"https:\/\/dattp.github.io\/2020-04-02-null-undefined-js\/"},{"title":"\u0110\u00e2y l\u00e0 \u0111\u00e2u? T\u00f4i l\u00e0 ai?","description":"\n          L\u00fd thuy\u1ebft ch\u1ec9 l\u00e0 t\u0129nh, con ng\u01b0\u1eddi ph\u1ea3i v\u1eadn d\u1ee5ng l\u00fd thuy\u1ebft v\u00e0o th\u1ef1c t\u1ebf m\u1edbi l\u00e0 \u0111\u1ed9ng. Nh\u01b0ng ph\u1ea3i l\u1ea5y t\u0129nh ch\u1ebf \u0111\u1ed9ng. - \n          M\u00ecnh l\u00e0 m\u1ed9t l\u1eadp tr\u00ecnh vi\u00ean. C\u00f4ng vi\u1ec7c c\u1ee7a m\u00ecnh l\u00e0 x\u00e2y d\u1ef1ng, b\u1ea3o tr\u00ec v\u00e0 n\u00e2ng c\u1ea5p h\u1ec7 th\u1ed1ng. M\u00ecnh l\u00e0m v\u1ec1 back-end v\u00e0 kh\u00f4ng bi\u1ebft g\u00ec v\u1ec1 front-end c\u1ea3 \ud83d\ude06 M\u00ecnh \u0111ang code v\u1ec1 Nodejs. V\u1edbi m\u00ecnh Nodejs l\u00e0 c\u00e1i b\u1eaft bu\u1ed9c ph\u1ea3i h\u1ecdc v\u00ec h\u1ec7 th\u1ed1ng m\u00ecnh...\n        ","pubDate":"Wed, 01 Apr 2020 00:00:00 -0700","link":"https:\/\/dattp.github.io\/2020-04-01-toi-la-toi\/","guid":"https:\/\/dattp.github.io\/2020-04-01-toi-la-toi\/"}]}}