Posts

Showing posts from June, 2026

The complete guide to building a full-stack app with Next.js - Neil Cummings

https://github.com/tryCatchLearn/next-match

build-a-complete-distributed-app-using-net-aspire - Neil Cummings

 https://github.com/tryCatchLearn/overflow

Build an app with ASPNET Core and Angular from scratch - Neil Cummings

 6/28/26 Started https://github.com/tryCatchLearn/datingapp

Build a Microservices app with .Net and NextJS from scratch - Neil Cummings

https://github.com/TryCatchLearn/carsties

Learn Figma for UI work and modern web design: create beautiful responsive websites. Figma - the future of web design! - Cristian Barin

Decoding DevOps – From Basics to Advanced Projects with AI

Learn to build an e-commerce app with .Net Core and Angular - Neil Cummings

Master Microsoft Azure Fundamentals: AZ-900 Exam Prep 2026 - Scott Duffy

Coding With AI - Planning To Production - Brad Traversy

Modern React From Beginning - Brad Traversy

NextJS Ecommerce - Brad Traversy

Ultimate Photoshop Training: From Beginner to Pro 2026 + AI - Cristian Barin

Web Development with Blazor - Jimmy Engström

 https://github.com/PacktPublishing/Web-Development-with-Blazor-4E

AI Engineer Core Track: LLM Engineering, RAG, QLoRA, Agents - Ligency ​

https://github.com/ed-donner/llm_engineering

Cloud Computing on AWS: Ultimate Beginners Course - Arno Pretorius

 AWS

Complete guide to building an app with .Net Core and React

  https://github.com/trycatchlearn/reactivities git config --global alias.adog "log --all --decorate --oneline --graph"

Need to explore

 TailwindCSS

ToFixed and formatNumberWithDecimal

 Yes, but only if your goal is exactly 2 decimal places . Your function: formatNumberWithDecimal(12.345) returns: "12.345" while: (12.345).toFixed(2) returns: "12.35" because toFixed(2) rounds and always produces exactly 2 decimal digits. If you want exactly 2 decimals You can replace the whole function with: export function formatNumberWithDecimal(num: number): string { return num.toFixed(2); } Examples: formatNumberWithDecimal(12); // "12.00" formatNumberWithDecimal(12.5); // "12.50" formatNumberWithDecimal(12.34); // "12.34" formatNumberWithDecimal(12.345); // "12.35" If you want at least 2 decimals but preserve extra precision Then toFixed(2) is not a replacement. Examples: Input Current Function toFixed(2) 12 12.00 12.00 12.5 12.50 12.50 12.34 12.34 12.34 12.345 12.345 12.35 So whether toFixed(2) can replace it depends on the intended behavior. Most applications that display prices, currency, percentages,...

Ecommerce with JS

 Not quite. It works for many numbers, but there are some edge cases. Your function: export function round2(value: number | string) { if (typeof value === 'number') { return Math.round((value + Number.EPSILON) * 100) / 100; } else if (typeof value === 'string') { return Math.round((Number(value) + Number.EPSILON) * 100) / 100; } else { throw new Error('Value is not a number or string'); } } What it does well round2(1.234); // 1.23 round2(1.235); // 1.24 round2("12.345"); // 12.35 The Number.EPSILON trick helps with some floating-point issues: Math.round(1.005 * 100) / 100 // 1 round2(1.005) // 1.01 What it doesn't guarantee Invalid strings round2("abc") // NaN No error is thrown because "abc" is still a string. You may want: const num = Number(value); if (Number.isNaN(num)) { throw new Error("Invalid number"); } Very large numbers Floating-point precision limits still apply: round2(12345...