When I first started exploring the possibilities of AI, I thought acquiring new skills, especially in fields like programming, would be much quicker. The idea of using AI tools to speed up the learning process seemed like a game-changer. I imagined that understanding complex concepts and mastering new languages or techniques would take far less … Continue reading Triple Learning Speed in the AI Era
Design Patterns Content Outline
!\2. CREATIONAL DESIGN PATTERNS\ 0:07:22 1. Singleton 0:22:24 2. Factory method 0:32:20 3. Abstract factory 0:43:04 4. Builder 0:54:46 5. Prototype !\3. STRUCTURAL DESIGN PATTERNS 1:04:05 1. Adapter 1:15:23 2. Bridge 1:24:00 3. Composite 1:32:38 4. Decorator 1:43:14 5. Facade 1:52:49 6. Flyweight 2:06:00 7. Proxy !\4. BEHAVIOURAL DESIGN PATTERNS 2:16:40 1. Chain of responsibility … Continue reading Design Patterns Content Outline
Transition from writing scripts to building complex applications
First, what are the Key Differences Between Scripts and Applications Scripts: Linear execution flow Single responsibility Minimal error handling Direct database access Hardcoded values Limited user interaction Applications: Logging and monitoring Modular architecture Multiple components working together Robust error handling Configuration management User interfaces (CLI, Web, API) Essential Concepts for Application Development a. Project Structure … Continue reading Transition from writing scripts to building complex applications
NewsSearchServer Diving Deep
What is it, NSS is a Http service that takes a search criteria and generates results from it, returning it to the requester. The search input format: POST of http://<host>/news/search?params; POST data being the search meta data + search criteria Search meta information sample: {"databases":[ {"databases":["BW"], "start_date":"20090901", "end_date":"20090905"}, {"databases":["FRC"]} ], "returned_fields":["headline","story_date","story_time","product"], "search_timeout":28000, "max_docs":200, "sort_spec":"story_date ASC", … Continue reading NewsSearchServer Diving Deep
Further Understanding ES (Second Iteration)
By asking the same question in Gemini and OpenAI, not only can I further the understanding of the topic but also assess the two AIs. Here is the question for both: "help me systematically learn elastic search, i have basic understanding already but want to have a comprehensive view and particularly know how the query/search … Continue reading Further Understanding ES (Second Iteration)
Methodical in Research and Work
It is essential to approach tasks methodically; however, I often rush into completing research or serious work. I find myself wasting considerable time attempting to rectify mistakes, especially with the assistance of AI tools. This tendency leads to a more challenging outcome, as I become trapped in a vicious cycle repeatedly. Even when I manage … Continue reading Methodical in Research and Work
What You Might Miss in Your Whole Life Insurance Policy—Until It’s Too Late
Whole life insurance promises a sense of security: lifelong coverage, cash value growth, even the potential for dividends. But while policies like the one issued by MassMutual appear straightforward on the surface, there are several subtle but critical pitfalls that often catch policyholders by surprise. These issues are not unique to MassMutual—they’re systemic concerns across … Continue reading What You Might Miss in Your Whole Life Insurance Policy—Until It’s Too Late
Tips of Working with AI
There are quite a lot of pitfalls in using AI to help with coding. Hence, summarize and reference other users' experiences. Overall, as mentioned in previous blog, detailed markdown file to describe how your construct the codebase, including what classes, instance, methods in designing is the best approach to work with AI. Prompt with high … Continue reading Tips of Working with AI
Use Windsurf Effectively: Memories and Workflow
There are two mechanisms for Memory in Windsurf: Memories, which can be automatically generated by Cascade, and rules, which are manually defined by the user at both the local and global levels. Cascade will save memory itself, we can also prompt Cascade to “create a memory of …”. Rules has global level and workspace level. … Continue reading Use Windsurf Effectively: Memories and Workflow
Design Patterns in JavaScript
In JavaScript, there are several important design and asynchronous programming patterns used to structure code, manage complexity, and handle concurrency efficiently. Here’s a concise overview of key patterns: There are the code examples one by one: Callback Pattern function fetchData(callback) { setTimeout(() => { const data = { id: 1, name: "Alice" }; callback(data); }, … Continue reading Design Patterns in JavaScript