Skip to content

Instantly share code, notes, and snippets.

View shamimfahad's full-sized avatar

Shamim Fahad shamimfahad

View GitHub Profile
function mySet() {
let collection = [];
this.has = (element) => {
return (collection.indexOf(element) !== -1)
}
this.values = () => {
return collection;
}
function Stack() {
this.count = 0;
this.storage = {};
this.push = function(value) {
this.storage[this.count] = value;
this.count++;
}
this.pop = function() {

Summary: "You Might Not Need an Effect" – React Documentation

This page outlines common cases where developers use useEffect unnecessarily, and suggests simpler, cleaner alternatives that lead to better performance and more maintainable code.


🔹 Transforming Data for Rendering Without Effects

  • Issue: Using useEffect to transform data like filtering or mapping before rendering.
  • Better Approach: Do the transformation directly during render.
  • Example: Filter a list inside the render logic instead of setting up separate state and effects.

🛣️ HTML & CSS Project-Based Learning Roadmap

For a backend developer with some React experience looking to build stronger frontend skills.


🔥 Phase 1: Fundamentals Refresher (HTML & Basic CSS)

🎯 Goal: Master semantic HTML and foundational CSS concepts.

Anthropic's Interactive Prompt Engineering Tutorial: Comprehensive Summary

This guide outlines the nine core chapters and advanced techniques from Anthropic's prompt engineering course, emphasizing best practices for structuring inputs for the Claude family of models.


📚 I. Beginner: The Foundation of a Good Prompt

This section focuses on establishing the essential building blocks for communicating clearly and effectively with the AI.