diff --git a/app/blogs/Content/dsaDifferent/content.jsx b/app/blogs/Content/dsaDifferent/content.jsx index 029d183..bd27d3e 100755 --- a/app/blogs/Content/dsaDifferent/content.jsx +++ b/app/blogs/Content/dsaDifferent/content.jsx @@ -1,314 +1,180 @@ "use client"; -import { FiCopy, FiBookmark, FiShare2 } from "react-icons/fi"; -import { useState } from "react"; - -const BlogContent = () => { - const [copied, setCopied] = useState(false); - - const handleCopy = () => { - navigator.clipboard.writeText(window.location.href); - setCopied(true); - setTimeout(() => setCopied(false), 2000); - }; - - const Paragraphs = [ - `A common question among developers learning Data Structures and Algorithms (DSA) is whether these concepts change across programming languages. While the fundamental principles remain consistent, their implementations and optimizations can vary significantly. Let's explore how DSA manifests in different languages and what this means for developers.`, - `Programming languages offer different levels of abstraction and built-in utilities. For example, Python's rich standard library makes certain algorithms easier to implement, whereas C++ might offer more control over memory, making it suitable for performance-critical scenarios.`, - `This language-agnostic nature is why DSA knowledge transfers well between languages. However, the implementation details and performance characteristics can differ.`, - `These differences become particularly important when working on performance-critical applications or when interfacing between multiple languages in a single project.`, - `When learning DSA concepts, focus first on understanding the core principles, then explore how your primary language implements these structures. This approach gives you both the theoretical foundation and practical skills needed for real-world development.`, - ]; - - const universalConcepts = [ - { points: "Time complexity (Big O notation)" }, - { points: "Space complexity analysis" }, - { points: "Abstract data type behaviors" }, - { points: "Algorithm design patterns" }, - { points: "Problem-solving approaches" }, - ]; - - const languageExamples = [ - { - language: "JavaScript", - structures: [ - "Arrays are actually objects with integer keys", - "Objects as hash maps (but with insertion order preserved)", - "No built-in heap/priority queue", - "TypedArrays for numerical work" - ], - algorithms: [ - "Event loop affects async algorithm design", - "Single-threaded nature impacts parallel processing", - "Prototypal inheritance affects object structures" - ] - }, - { - language: "Python", - structures: [ - "Lists as dynamic arrays", - "Dictionaries as highly optimized hash tables", - "Tuples as immutable sequences", - "Sets with built-in mathematical operations" - ], - algorithms: [ - "List comprehensions enable concise transformations", - "Generator expressions for memory-efficient iteration", - "Built-in sort uses Timsort algorithm" - ] - }, - { - language: "Java", - structures: [ - "Primitive arrays vs. ArrayList", - "HashMap vs. TreeMap implementations", - "Strongly typed collections", - "Concurrent collections for threading" - ], - algorithms: [ - "JIT compilation affects runtime characteristics", - "Garbage collection impacts memory usage", - "Bytecode execution adds abstraction layer" - ] - } - ]; - - const webDevImplications = [ - { - area: "Frontend (JavaScript)", - considerations: [ - "Virtual DOM diffing algorithms in frameworks", - "State management efficiency in large apps", - "Memoization techniques for performance" - ] - }, - { - area: "Backend (Node.js/Python/Java)", - considerations: [ - "Database query optimization", - "API response caching strategies", - "Load balancing and request processing" - ] - }, - { - area: "Full-Stack", - considerations: [ - "Data serialization between layers", - "Algorithm choice for shared business logic", - "Consistent data modeling across boundaries" - ] - } - ]; - - const protips = [ - { points: "Learn DSA in one language first, then compare implementations" }, - { points: "Use language-specific benchmarks to verify performance assumptions" }, - { points: "Study standard library implementations of common structures" }, - { points: "Understand how your language's memory model affects data structures" }, - { points: "Don’t just translate code between languages, adapt it to leverage language strengths" } - ]; - - return ( -
- {/* Article Header */} -
-
- - Computer Science - -
- - - -
-
- -

- Are Data Structures and Algorithms Different for Different Languages? -

- -
- Published on May 20, 2025 - • - 10 min read -
-
- - {/* Featured Image */} -
- Data structures across programming languages -
-
-

- Comparing DSA implementations across JavaScript, Python, and Java -

-
-
- - {/* Article Content */} -
-

- {Paragraphs[0]} -

- -
-

- Universal DSA Concepts -

-
-

- Core Insight: The theoretical foundations of data structures and algorithms - remain constant regardless of programming language. -

-
-
    - {universalConcepts.map((item, index) => ( -
  • {item.points}
  • - ))} -
-

{Paragraphs[2]}

-
- -
-

- Language-Specific Implementations -

- -
- {languageExamples.map((lang, index) => ( -
-
-

{lang.language}

-
-
-

Structures:

-
    - {lang.structures.map((item, i) => ( -
  • {item}
  • - ))} -
-

Algorithms:

-
    - {lang.algorithms.map((item, i) => ( -
  • {item}
  • - ))} -
-
-
- ))} -
-

- These distinctions illustrate that while the same data structure or algorithm may exist across languages, their behavior, performance, or even syntax might differ. Developers should not only know how something works in theory but also how their chosen language expresses and optimizes it. -

-
- -
-

- Web Development Implications -

- -
- {webDevImplications.map((item, index) => ( -
-

{item.area}

-
    - {item.considerations.map((point, i) => ( -
  • - - {point} -
  • - ))} -
-
- ))} -
- -

{Paragraphs[3]}

-

- Developers building cross-platform or microservice-based architectures especially benefit from understanding how DSA implementations behave differently across tech stacks. -

-
- -
-

- Pro Tips for Language-Agnostic DSA Learning -

-
    - {protips.map((item, index) => ( -
  • {item.points}
  • - ))} -
-
- -
-

- Key Takeaway -

-
-

- While data structures and algorithms may be implemented differently across languages, - the core concepts remain the same. Master the fundamentals first, then learn how your - preferred languages realize these concepts in practice. This dual understanding not only enhances your adaptability but also empowers you to choose the most efficient solution depending on the project requirements and language capabilities. -

-
-
-
- - {/* Article Footer */} - -
- ); -}; - -export default BlogContent; \ No newline at end of file +import { + ArticleShell, + H2, + P, + Callout, + Timeline, + CheckList, + BulletList, + DataTable, + FAQ, +} from "@/app/blogs/components/article"; + +const universalConcepts = [ + "Time complexity, and reasoning about it in Big O notation.", + "Space complexity and the memory a structure really costs.", + "How an abstract data type is expected to behave, independent of code.", + "Algorithm design patterns — divide and conquer, greedy, two pointers.", + "The problem-solving approach itself: recognising which shape a problem has.", +]; + +const languageNotes = [ + { + title: "JavaScript", + description: + "Arrays are objects with integer keys, and plain objects double as hash maps that happen to preserve insertion order. There is no built-in heap, so a priority queue is something you write yourself. The single-threaded event loop also shapes how you design anything asynchronous.", + }, + { + title: "Python", + description: + "Lists are dynamic arrays and dictionaries are heavily optimised hash tables, so a lot of algorithms collapse into a couple of lines. Sorting is Timsort, and generator expressions let you iterate huge sequences without materialising them.", + }, + { + title: "Java", + description: + "The Collections framework hands you the structures directly — ArrayList, HashMap, PriorityQueue, TreeMap — with their complexity documented. In exchange you deal with generics, boxing costs, and the garbage collector's timing.", + }, + { + title: "C++", + description: + "The STL gives you vector, map, unordered_map and priority_queue, and manual memory control lets you get closer to the theoretical performance than anywhere else. That control is also the reason it is easier to get wrong.", + }, +]; + +const sameIdeaTable = [ + { concept: "Hash map", js: "Object / Map", py: "dict", java: "HashMap" }, + { concept: "Dynamic array", js: "Array", py: "list", java: "ArrayList" }, + { concept: "Set", js: "Set", py: "set", java: "HashSet" }, + { concept: "Priority queue", js: "— (write it)", py: "heapq", java: "PriorityQueue" }, +]; + +const whereItMatters = [ + { + title: "Performance-critical paths", + description: + "Two languages can implement the same algorithm at the same complexity and still differ by an order of magnitude in wall-clock time, because of memory layout and allocation behaviour.", + }, + { + title: "Interfacing between languages", + description: + "Serialising data across a boundary can quietly turn a cheap structure into an expensive one. A hash map crossing a JSON boundary becomes an object, and its guarantees change with it.", + }, + { + title: "Interviews", + description: + "You will be assessed on the concept, but you write in a specific language. Knowing that your language lacks a heap — and how you would improvise one — is the difference between stalling and continuing.", + }, +]; + +const protips = [ + "Learn DSA properly in one language first, then compare implementations — not the other way round.", + "Read your standard library's implementation of the structures you use most.", + "Benchmark rather than assuming; language performance folklore is often years out of date.", + "Understand how your language's memory model affects the structures you build.", + "Don't translate code between languages line by line — adapt it to that language's strengths.", +]; + +const faqs = [ + { + q: "Does my choice of language make DSA harder?", + a: "Only marginally, and mostly at the edges. Languages with richer standard libraries hide more of the implementation, which is convenient while learning and occasionally a gap later when you need to build the thing yourself.", + }, + { + q: "Will my DSA knowledge transfer if I switch languages?", + a: "Almost entirely. The concepts are the transferable part; what you re-learn is which built-in maps to which concept, and where the performance surprises are.", + }, + { + q: "Which language should I learn DSA in?", + a: "The one you already write most fluently. Struggling with unfamiliar syntax while learning an unfamiliar algorithm doubles the difficulty for no benefit.", + }, +]; + +const BlogContent = () => ( + +

+ A common question among people learning data structures and algorithms is + whether any of it changes when you switch languages. Does a stack in Python + behave like a stack in C++? Is recursion the same in JavaScript as in Java? +

+

+ The fundamentals stay put. The implementations, the built-ins and the + performance characteristics do not. +

+ + + The concepts are language-agnostic and transfer almost + completely. The implementations vary — which is why your + knowledge moves with you, but your code does not. + + +

What stays the same everywhere

+

+ These do not change no matter what you write in, which is what makes the + subject worth learning once: +

+ +

+ A queue is first-in-first-out in every language that has ever existed. That + guarantee is the concept; everything below is packaging. +

+ +

The same idea, four names

+

+ Most of the apparent difference between languages is vocabulary. The same + four structures, as each language spells them: +

+ [ + row.concept, + row.js, + row.py, + row.java, + ])} + /> +

+ Note the last row: JavaScript has no built-in priority queue, so what is a + one-line import elsewhere is something you implement yourself. That is the + kind of difference worth knowing in advance. +

+ +

Where each language actually differs

+ + +

When the differences start to matter

+

+ For most learning, they do not. Three situations where they genuinely do: +

+ + +

How to approach it

+ + +

Common questions

+ + +

Key takeaway

+

+ Learn the core principles first, then learn how your primary language + implements them. That order gives you a foundation that survives a change + of job, framework or language, plus the practical detail you need today. +

+

+ Put differently: learn the idea once, and re-learn only the spelling. +

+
+); + +export default BlogContent; diff --git a/app/blogs/Content/dsaWebDev/content.jsx b/app/blogs/Content/dsaWebDev/content.jsx index 75f71ee..4799a24 100755 --- a/app/blogs/Content/dsaWebDev/content.jsx +++ b/app/blogs/Content/dsaWebDev/content.jsx @@ -1,243 +1,176 @@ "use client"; -import { FiCopy, FiBookmark, FiShare2 } from "react-icons/fi"; -import { useState } from "react"; - -const BlogContent = () => { - const [copied, setCopied] = useState(false); - - const handleCopy = () => { - navigator.clipboard.writeText(window.location.href); - setCopied(true); - setTimeout(() => setCopied(false), 2000); - }; - - const Paragraphs = [ - `If you're a web developer or someone aspiring to be one, you've likely wondered if learning data structures and algorithms (DSA) is truly necessary. After all, modern web development is often about building user interfaces and connecting APIs, right? Let's explore this question in depth.`, - `At first glance, these tasks don't seem to require deep algorithm knowledge. However, the underlying principles become crucial as applications scale.`, - `Understanding concepts like time complexity helps you choose the right approach when dealing with large datasets or performance-critical operations.`, - `Instead of just solving abstract problems, apply DSA concepts directly to web development:`, - `While you can be a productive web developer without deep DSA knowledge, understanding these concepts will make you more versatile and valuable. You'll write better code, solve problems more efficiently, and have an edge in technical interviews. The key is learning DSA in the context of web development rather than as abstract computer science concepts.`, - ]; - - const tasks = [ - { points: "Creating responsive UIs with HTML/CSS/JavaScript" }, - { points: "Working with frameworks like React, Next.js, or Vue" }, - { points: "Integrating RESTful APIs and GraphQL endpoints" }, - { points: "Implementing state management solutions" }, - { points: "Optimizing performance and accessibility" }, - ]; - - const scenarios = [ - { points: "Performance optimization" }, - { points: "Complex state management" }, - { points: "Efficient data processing" }, - { points: "Interview preparation" }, - { points: "Library/framework development" }, - { points: "System design decisions" }, - ]; - - const examples = [ - { - title: "Autocomplete Search", - description: "Trie data structure improves search efficiency", - }, - { - title: "Infinite Scroll", - description: "Efficient pagination requires proper array handling", - }, - { - title: "Form Validation", - description: "Graphs can model complex validation rules", - }, - { - title: "State Management", - description: "Understanding trees helps with state updates", - }, - ]; - - const protip = [ - { points: "Implement your own simplified version of React's reconciliation algorithm" }, - { points: "Build a custom hook that efficiently manages large datasets" }, - { points: "Create a visualization of how different sorting algorithms work" }, - ]; - - return ( -
- {/* Article Header */} -
-
- - Web Development - -
- - - -
-
- -

- Is Data Structures and Algorithms Important for Web Developers? -

- -
- Published on May 17, 2025 - • - 8 min read -
-
- - {/* Featured Image */} -
- Web developer working with algorithms -
-
-

- Understanding DSA helps build better web applications -

-
-
- - {/* Article Content */} -
-

- {Paragraphs[0]} -

- -
-

- What Web Developers Actually Do -

-

- Typical web development tasks include: -

-
    - {tasks.map((item, index) => ( -
  • {item.points}
  • - ))} -
-

{Paragraphs[1]}

-
- -
-

- Where DSA Knowledge Shines in Web Development -

-
-

- Key scenarios where DSA matters: -

-
- {scenarios.map((item, index) => ( - - {item.points} - - ))} -
-
-

{Paragraphs[2]}

-
- -
-

- Real-World Examples -

-
- {examples.map((item, index) => ( -
-

- {item.title} -

-

- {item.description} -

-
- ))} -
-
- -
-

- Pro Tip: Practical Learning -

-

{Paragraphs[3]}

-
    - {protip.map((item, index) => ( -
  • {item.points}
  • - ))} -
-
- -
-

- The Verdict -

-

{Paragraphs[4]}

-
-
- - {/* Article Footer */} - -
- ); -}; +import { + ArticleShell, + H2, + P, + Callout, + Timeline, + CheckList, + BulletList, + DataTable, + FAQ, +} from "@/app/blogs/components/article"; + +const dailyTasks = [ + "Building responsive UIs with HTML, CSS and JavaScript.", + "Working in frameworks like React, Next.js or Vue.", + "Integrating REST and GraphQL endpoints.", + "Wiring up state management.", + "Tuning performance and accessibility.", +]; + +const whereItShows = [ + { + title: "Rendering large lists", + description: + "A filter that runs in a nested loop is invisible at 50 rows and janky at 5,000. Recognising an O(n²) pass and replacing it with a hash lookup is the single most common win in front-end work.", + }, + { + title: "Search and autocomplete", + description: + "Scanning every record on each keystroke works until the dataset grows. A prefix structure or an index turns that into a near-instant lookup.", + }, + { + title: "State shape", + description: + "Deeply nested state is a tree, whether you think of it that way or not. Normalising it into a flat map keyed by id is a data-structure decision, and it removes a whole class of update bugs.", + }, + { + title: "Caching and deduplication", + description: + "Request caches, memoisation and de-duped fetches are all hash maps with an eviction rule. Knowing the rule is what stops the cache growing unbounded.", + }, +]; + +const complexityTable = [ + { op: "Find by id in an array", naive: "O(n) — scan", better: "O(1) — hash map" }, + { op: "Check membership repeatedly", naive: "O(n) — includes()", better: "O(1) — Set" }, + { op: "Merge two sorted lists", naive: "O(n log n) — concat + sort", better: "O(n) — two pointers" }, + { op: "Group items by key", naive: "O(n²) — filter per key", better: "O(n) — single pass" }, +]; + +const practicalRoute = [ + { + title: "Start from your own bugs", + description: + "The next time a list feels slow, work out the actual complexity of the code doing it. Real profiling beats abstract problems for motivation and for retention.", + }, + { + title: "Learn the four that pay immediately", + description: + "Arrays, hash maps, sets and trees cover almost everything front-end. Everything else can wait until a problem asks for it.", + }, + { + title: "Rebuild something you already use", + description: + "Write your own memoise, your own debounce with a queue, or a simple LRU cache. You will never forget a structure you have implemented once.", + }, +]; + +const faqs = [ + { + q: "Can I get a web dev job without DSA?", + a: "Plenty of people do, particularly at agencies and smaller product teams where portfolio work carries the interview. It becomes much harder at companies that run algorithmic screens, which includes most large ones.", + }, + { + q: "How much is enough for front-end work?", + a: "Complexity analysis, arrays, hash maps, sets and a working understanding of trees will cover the overwhelming majority of day-to-day decisions. Dynamic programming rarely appears outside interviews.", + }, + { + q: "Isn't the framework handling performance for me?", + a: "It handles rendering. It cannot fix an algorithm you wrote that does redundant work — and re-render optimisation itself depends on understanding what changed, which is a data question.", + }, +]; + +const BlogContent = () => ( + +

+ If you build for the web, you have probably wondered whether learning data + structures and algorithms is genuinely necessary. Modern web development + looks like composing components and calling APIs — where would a binary + tree fit into that? +

+

It is a fair question, and the honest answer has two halves.

+ + + You can ship good work without it. But the ceiling on what you can debug, + optimise and design is set by it — and that ceiling shows up much earlier + than most people expect. + + +

What web developers actually do

+

A typical week looks something like this:

+ +

+ None of that obviously demands algorithm knowledge. The catch is that every + one of those tasks has a scale at which the naive approach stops working, + and it usually arrives without warning. +

+ +

Where it actually shows up

+

+ Four places where this stops being theoretical in ordinary product work: +

+ + +

The same task, two costs

+

+ Complexity analysis sounds academic until you see it as a menu of choices + you make constantly: +

+ [row.op, row.naive, row.better])} + /> +

+ The right column is not cleverer code. It is the same code written by + someone who recognised the shape of the problem. +

+ +

How much is worth learning

+

+ Learning DSA in the context of web development beats learning it as + abstract computer science — the concepts stick because they attach to + problems you already have: +

+ + +

Where people go wrong

+ + +

Common questions

+ + +

The verdict

+

+ You can be a productive web developer without deep DSA knowledge. But + understanding it makes you more versatile: you write code that survives + growth, you can explain why something is slow rather than guessing, and + technical interviews stop being a separate skill you have to cram for. +

+

+ Learn it in the context of the work, not as a parallel curriculum, and it + stops feeling like a detour. +

+
+); export default BlogContent; diff --git a/app/blogs/Content/timeRequired/.next/trace b/app/blogs/Content/timeRequired/.next/trace new file mode 100755 index 0000000..18ba93b --- /dev/null +++ b/app/blogs/Content/timeRequired/.next/trace @@ -0,0 +1 @@ +[{"name":"generate-buildid","duration":164,"timestamp":9284183925,"id":4,"parentId":1,"tags":{},"startTime":1787298771578,"traceId":"8c2b8dc63e5595cb"},{"name":"load-custom-routes","duration":214,"timestamp":9284184152,"id":5,"parentId":1,"tags":{},"startTime":1787298771578,"traceId":"8c2b8dc63e5595cb"},{"name":"create-dist-dir","duration":4215,"timestamp":9284184381,"id":6,"parentId":1,"tags":{},"startTime":1787298771579,"traceId":"8c2b8dc63e5595cb"},{"name":"clean","duration":1317,"timestamp":9284191456,"id":7,"parentId":1,"tags":{},"startTime":1787298771586,"traceId":"8c2b8dc63e5595cb"},{"name":"next-build","duration":109137,"timestamp":9284084427,"id":1,"tags":{"buildMode":"default","version":"16.2.12","bundler":"turbopack","failed":true},"startTime":1787298771478,"traceId":"8c2b8dc63e5595cb"}] diff --git a/app/blogs/Content/timeRequired/.next/trace-build b/app/blogs/Content/timeRequired/.next/trace-build new file mode 100755 index 0000000..6e93612 --- /dev/null +++ b/app/blogs/Content/timeRequired/.next/trace-build @@ -0,0 +1 @@ +[{"name":"next-build","duration":109137,"timestamp":9284084427,"id":1,"tags":{"buildMode":"default","version":"16.2.12","bundler":"turbopack","failed":true},"startTime":1787298771478,"traceId":"8c2b8dc63e5595cb"}] diff --git a/app/blogs/Content/timeRequired/content.jsx b/app/blogs/Content/timeRequired/content.jsx index 13e4fe6..32b4592 100755 --- a/app/blogs/Content/timeRequired/content.jsx +++ b/app/blogs/Content/timeRequired/content.jsx @@ -1,243 +1,269 @@ "use client"; -import { FiCopy, FiBookmark, FiShare2 } from "react-icons/fi"; -import { useState } from "react"; - -const BlogContent = () => { - const [copied, setCopied] = useState(false); - - const handleCopy = () => { - navigator.clipboard.writeText(window.location.href); - setCopied(true); - setTimeout(() => setCopied(false), 2000); - }; - - const Paragraphs = [ - `If you're a student, developer, or career switcher, you've likely asked: "How long will it take to learn Data Structures and Algorithms (DSA)?" The answer isn't one-size-fits-all: it depends on your goals, consistency, and background.`, - `Before estimating time, let's define what “mastering” DSA really means. Mastery isn't just knowing syntax or solving rote problems. It means pattern recognition, approaching unseen questions with confidence, and making trade-offs in real-world system design.`, - `For most learners, 3 months gets you foundational knowledge, 6–9 months develops confidence for interviews, and 12+ months results in true mastery. DSA is a long-term game.`, - `Here's a simple 12-week roadmap:\n\n- Weeks 1–2: Arrays, Strings, HashMaps\n- Weeks 3–4: Stacks, Queues, Recursion\n- Weeks 5–6: Linked Lists, Trees\n- Weeks 7–8: Heaps, Binary Trees, BSTs\n- Weeks 9–10: Graphs, DFS/BFS\n- Weeks 11–12: DP, Tries, Bit Manipulation`, - `Avoid common traps: passively watching tutorials, skipping fundamentals, not reviewing problems. Instead, learn → code → revise. Tools like LeetCode, NeetCode, and your own notes/GitHub repo will accelerate learning.` - ]; - - const tasks = [ - { points: "Creating responsive UIs with HTML/CSS/JavaScript" }, - { points: "Working with frameworks like React, Next.js, or Vue" }, - { points: "Integrating RESTful APIs and GraphQL endpoints" }, - { points: "Implementing state management solutions" }, - { points: "Optimizing performance and accessibility" }, - ]; - - const scenarios = [ - { points: "Performance optimization" }, - { points: "Complex state management" }, - { points: "Efficient data processing" }, - { points: "Interview preparation" }, - { points: "Library/framework development" }, - { points: "System design decisions" }, - ]; - - const examples = [ - { - title: "Autocomplete Search", - description: "Trie data structure improves search efficiency", - }, - { - title: "Infinite Scroll", - description: "Efficient pagination requires proper array handling", - }, - { - title: "Form Validation", - description: "Graphs can model complex validation rules", - }, - { - title: "State Management", - description: "Understanding trees helps with state updates", - }, - ]; - - const protip = [ - { points: "Implement your own simplified version of React's reconciliation algorithm" }, - { points: "Build a custom hook that efficiently manages large datasets" }, - { points: "Create a visualization of how different sorting algorithms work" }, - ]; - - return ( -
- {/* Article Header */} -
-
- - Web Development - -
- - - -
-
- -

- Is Data Structures and Algorithms Important for Web Developers? -

- -
- Published on June 20, 2025 - • - 10 min read -
-
- - {/* Featured Image */} -
- Web developer working with algorithms -
-
-

- Understanding DSA helps build better web applications -

-
-
- - {/* Article Content */} -
-

- {Paragraphs[0]} -

- -
-

- What Web Developers Actually Do -

-

- Typical web development tasks include: -

-
    - {tasks.map((item, index) => ( -
  • {item.points}
  • - ))} -
-

{Paragraphs[1]}

-
- -
-

- Where DSA Knowledge Shines in Web Development -

-
-

- Key scenarios where DSA matters: -

-
- {scenarios.map((item, index) => ( - - {item.points} - - ))} -
-
-

{Paragraphs[2]}

-
- -
-

- Real-World Examples -

-
- {examples.map((item, index) => ( -
-

- {item.title} -

-

- {item.description} -

-
- ))} -
-
- -
-

- Pro Tip: Practical Learning -

-

{Paragraphs[3]}

-
    - {protip.map((item, index) => ( -
  • {item.points}
  • - ))} -
-
- -
-

- The Verdict -

-

{Paragraphs[4]}

-
-
- - {/* Article Footer */} - -
- ); -}; - -export default BlogContent; \ No newline at end of file +import { + ArticleShell, + H2, + P, + Callout, + Timeline, + CheckList, + BulletList, + DataTable, + FAQ, +} from "@/app/blogs/components/article"; + +const masterySignals = [ + "You recognise which pattern a new problem belongs to, before writing anything.", + "You reach for the right structure without looking it up.", + "You can state the time and space cost of your approach, and why.", + "You can explain the trade-off out loud, not just code it.", + "When an approach stalls halfway, you can debug your own reasoning rather than starting over.", +]; + +const factors = [ + { + title: "Where you're starting from", + description: + "A working developer who already writes loops, recursion, and classes comfortably skips the first few weeks entirely. Someone new to programming should budget two to three extra months before DSA proper.", + }, + { + title: "Hours per week, not total hours", + description: + "Ten hours spread across five days beats ten hours on a Sunday, every time. Recall is built by spacing, so the calendar matters as much as the clock.", + }, + { + title: "What you're aiming at", + description: + "Passing a screening round is a far smaller target than being fluent. Interview readiness is a subset of mastery, and it arrives much sooner.", + }, + { + title: "Whether you revisit anything", + description: + "Solving 300 problems once teaches less than solving 150 twice. Learners who never revisit tend to plateau around month four.", + }, +]; + +const timelines = [ + { + title: "0–3 months · Foundations", + description: + "Arrays, strings, hashing, recursion, and basic complexity analysis. You can solve most easy problems unaided, though slowly. Expect to feel like you're memorising rather than understanding — that's normal at this stage.", + }, + { + title: "3–6 months · Breadth", + description: + "Trees, graphs, heaps, and the traversal patterns that keep reappearing. Medium problems stop feeling random and start falling into recognisable families.", + }, + { + title: "6–9 months · Interview readiness", + description: + "Dynamic programming, harder mediums, and — the real difference — speed under time pressure. You can talk through an approach while writing it.", + }, + { + title: "12+ months · Fluency", + description: + "Patterns surface almost immediately, unfamiliar hard problems are approachable, and the trade-offs carry over into system design decisions.", + }, +]; + +const hoursTable = [ + { pace: "5 hrs / week", ready: "~12 months", note: "Alongside a full-time job" }, + { pace: "10 hrs / week", ready: "~6–7 months", note: "The common sustainable pace" }, + { pace: "20 hrs / week", ready: "~3–4 months", note: "Between jobs, or full-time study" }, +]; + +const roadmap = [ + { title: "Weeks 1–2", description: "Arrays, Strings, HashMaps" }, + { title: "Weeks 3–4", description: "Stacks, Queues, Recursion" }, + { title: "Weeks 5–6", description: "Linked Lists, Trees" }, + { title: "Weeks 7–8", description: "Heaps, Binary Trees, BSTs" }, + { title: "Weeks 9–10", description: "Graphs, DFS / BFS" }, + { title: "Weeks 11–12", description: "DP, Tries, Bit Manipulation" }, +]; + +const method = [ + { + title: "Learn, code, then leave it", + description: + "Read or watch the idea once, then implement it from an empty file. Close the tab before you start — copying along teaches your fingers, not your memory.", + }, + { + title: "Return after a gap", + description: + "Redo anything you got wrong three to seven days later. The second attempt is where the pattern actually sticks.", + }, + { + title: "Write the pattern down in your own words", + description: + "One or two lines per problem: what signalled the approach. Re-reading your own phrasing beats re-reading someone else's explanation.", + }, + { + title: "Volume last, not first", + description: + "Grinding problem counts only pays off once the underlying structure makes sense. Before that it is expensive pattern-matching with no foundation.", + }, +]; + +const traps = [ + "Watching tutorials passively — it feels productive and teaches almost nothing.", + "Skipping recursion because it's uncomfortable, then hitting a wall at trees and DP.", + "Chasing a new problem every session and never revisiting an old one.", + "Optimising for problem count instead of pattern coverage.", + "Starting dynamic programming in month one, bouncing off it, and concluding you're bad at this.", +]; + +const checkpoints = [ + { + title: "End of month 1", + description: + "You can write a binary search and a hash-map frequency count from memory, and explain why each is O(log n) and O(n).", + }, + { + title: "End of month 3", + description: + "Given an unseen easy problem, you pick an approach within a couple of minutes rather than staring at it.", + }, + { + title: "End of month 6", + description: + "You solve most mediums in under 40 minutes and can narrate your reasoning while coding.", + }, +]; + +const faqs = [ + { + q: "Can I learn DSA in a month?", + a: "You can cover the syllabus in a month. You will not retain much of it. A month of intense study is roughly equivalent to the first foundations block, and it fades quickly without revisiting.", + }, + { + q: "Do I need to finish DSA before applying for jobs?", + a: "No. Most screening rounds sit in the easy-to-medium band. Six months of consistent work usually clears that bar, and the rest keeps improving while you interview.", + }, + { + q: "Which language should I use?", + a: "Whichever you already write fluently. Fighting unfamiliar syntax while learning an unfamiliar algorithm doubles the difficulty for no benefit.", + }, + { + q: "How many problems is enough?", + a: "Coverage matters more than count. Roughly 150–200 problems spread across every major pattern, each revisited once, beats 500 clustered in whatever the site recommended.", + }, +]; + +const BlogContent = () => ( + +

+ If you're a student, a working developer, or switching careers, + you've probably asked some version of the same question: how long + will this take? It gets answered badly almost everywhere — either + "three months!" from someone selling a course, or "it + depends" from someone who doesn't want to commit. +

+

+ It does depend, but not on anything mysterious. The variables are known, + and once you plug yours in the range narrows considerably. +

+ + + Around 250–300 focused hours gets most people to + interview-ready. At ten hours a week that is roughly six months. True + fluency — unseen hard problems, trade-offs in design discussions — takes a + year or more of continued practice. + + +

First, define the finish line

+

+ "Mastering DSA" is uselessly vague as a goal, and vague goals are + why people feel like they are never finished. Mastery isn't knowing + syntax or having solved a particular number of problems. It looks like + this: +

+ +

+ Notice that none of those are "solved 500 problems". Problem + count is a proxy that stops correlating with skill fairly early. +

+ +

What actually moves your timeline

+

+ Four things account for most of the variation between two people studying + the same material: +

+ + +

Realistic timelines

+

+ Assuming steady, deliberate practice rather than cramming, this is the + shape the journey usually takes: +

+ +

+ Those bands assume roughly ten hours a week. Because the total is closer + to fixed than the duration is, your pace sets the calendar: +

+ [row.pace, row.ready, row.note])} + /> +

+ The trap in the bottom row is burnout. Twenty hours a week is only faster + if you sustain it for all four months, and most people don't. +

+ +

A 12-week roadmap

+

+ This covers the foundations block at eight to ten hours a week. Each + section leans on the one before it, so resist skipping ahead to dynamic + programming before recursion feels comfortable. +

+ + +

How to spend the hours

+

+ The gap between finishing in six months and still grinding at two years is + almost always method, not ability. Four habits do most of the compressing: +

+ + +

What slows people down

+

Predictably, and in roughly this order of damage:

+ + +

Checkpoints: are you on track?

+

+ Rather than measuring by problems solved, check whether you can do these: +

+ + + If a checkpoint slips by a month, that is normal and not a signal to + restart. If it slips by three, the method is usually the problem — revisit + the habits above before adding more hours. + + +

Common questions

+ + +

The verdict

+

+ Three months to be dangerous, six to nine to be interview-ready, a year or + more to be genuinely fluent. Those numbers barely move with talent and + move enormously with consistency. +

+

+ So pick a pace you can actually hold for six months rather than the one + that looks impressive for two weeks. The timeline mostly takes care of + itself after that. +

+
+); + +export default BlogContent; diff --git a/app/blogs/Content/whatIsDS/content.jsx b/app/blogs/Content/whatIsDS/content.jsx index 200a439..dfcb153 100755 --- a/app/blogs/Content/whatIsDS/content.jsx +++ b/app/blogs/Content/whatIsDS/content.jsx @@ -1,243 +1,190 @@ "use client"; -import { FiCopy, FiBookmark, FiShare2 } from "react-icons/fi"; -import { useState } from "react"; - -const BlogContent = () => { - const [copied, setCopied] = useState(false); - - const handleCopy = () => { - navigator.clipboard.writeText(window.location.href); - setCopied(true); - setTimeout(() => setCopied(false), 2000); - }; - - const Paragraphs = [ - `If you're new to coding, you've probably come across terms like array, stack, or linked list and thought, "What does that even mean?" Don't worry, you're not alone. These are all types of data structures, and they form the foundation of how programs organize and process information.`, - `In this guide, we'll break down what data structures are, why they matter, and introduce you to the most common types, all in simple language with relatable examples.`, - `A data structure is a way to organize and store data in a computer so it can be used efficiently.`, - `Think of it like organizing your wardrobe: shirts go in one drawer, pants in another, socks in a box. Each drawer (or structure) is designed to hold and access a specific type of item. Similarly, in programming, different data structures are used depending on the type of data and what you want to do with it.`, - `Here's why every programmer needs to understand data structures:`, - `Data structures are the toolbox every programmer must carry. Mastering them helps you build efficient, scalable, and real-world applications. Start small: practice with basic structures, and slowly move up to complex ones. If you're consistent, what once felt like intimidating jargon will become second nature.`, - ]; - - const importancePoints = [ - { points: "Efficiency: The right structure makes programs faster and less memory-hungry" }, - { points: "Scalability: Handles larger data more smoothly" }, - { points: "Problem Solving: Many coding problems are based on data structures" }, - { points: "Real-World Use: From social media feeds to navigation systems, they're everywhere" }, - ]; - - const dataStructures = [ - { - title: "Array", - description: "Like a row of boxes where each box holds a value", - image: "/blog/DSimage/array.png", - useCases: "Great for storing ordered items" - }, - { - title: "Stack (LIFO)", - description: "Imagine a stack of plates - you add and remove from the top only", - image: "/blog/DSimage/stack.png", - useCases: "Use when you need to reverse things or track history" - }, - { - title: "Queue (FIFO)", - description: "Think of people standing in line - first person gets served first", - image: "/blog/DSimage/queue.png", - useCases: "Perfect for scheduling tasks or managing queues" - }, - { - title: "Linked List", - description: "A chain of nodes where each holds a value and a link to the next", - image: "/blog/DSimage/linkedList.png", - useCases: "Flexible in size with easier insertions/removals" - }, - { - title: "Tree", - description: "Starts with a root and branches out in non-linear fashion", - image: "/blog/DSimage/tree.png", - useCases: "Used in file systems, decision trees, and databases" - }, - { - title: "Graph", - description: "Networks of nodes and edges like social connections", - image: "/blog/DSimage/graph.png", - useCases: "Used in social networks, maps, and recommendation systems" - }, - ]; - - const realLifeExample = [ - {points: "Building a contact list app with arrays to store names"}, - {points: "Using hash tables to search names quickly"}, - {points: "Implementing sorting algorithms to organize contacts"}, - ]; - - return ( -
- {/* Article Header */} -
-
- - Programming Basics - -
- - - -
-
- -

- Data Structures Explained: A Beginner's Guide -

- -
- Published on June 10, 2024 - • - 6 min read -
-
- - {/* Featured Image */} -
- Visual representation of different data structures -
-
-

- Understanding data structures is fundamental to programming -

-
-
- - {/* Article Content */} -
-

- {Paragraphs[0]} -

-

- {Paragraphs[1]} -

- -
-

- What Is a Data Structure? -

-

- {Paragraphs[2]} -

-

{Paragraphs[3]}

-
- -
-

- Why Are Data Structures Important? -

-
-
    - {importancePoints.map((item, index) => ( -
  • {item.points}
  • - ))} -
-
-
- -
-

- Types of Data Structures -

-
- {dataStructures.map((item, index) => ( -
-
-
- {item.title} -
-
-

- {item.title} -

-

- {item.description} -

-

- Use cases: {item.useCases} -

-
-
-
- ))} -
-
- -
-

- Real-Life Example: Why It Matters -

-

Imagine building a contact list app:

-
    - {realLifeExample.map((item, index) => ( -
  • {item.points}
  • - ))} -
-
- -
-

- Final Thoughts -

-

{Paragraphs[5]}

-
-
- - {/* Article Footer */} - -
- ); -}; - -export default BlogContent; \ No newline at end of file +import { + ArticleShell, + H2, + P, + Callout, + Timeline, + CheckList, + FigureCard, + FAQ, +} from "@/app/blogs/components/article"; + +const importancePoints = [ + "Efficiency: the right structure makes programs faster and less memory-hungry.", + "Scalability: what works for 100 records should still work for 100,000.", + "Problem solving: most coding problems are really a question of picking the right structure.", + "Real-world use: from social feeds to navigation systems, they are everywhere.", +]; + +const dataStructures = [ + { + title: "Array", + description: + "A row of boxes, each holding a value at a numbered position. Reading position 4 is instant, but inserting in the middle means shifting everything after it.", + note: "Best for ordered items you mostly read", + image: "/blog/DSimage/array.png", + }, + { + title: "Stack (LIFO)", + description: + "A stack of plates — you add and remove from the top only. The last thing in is the first thing out.", + note: "Best for undo history and backtracking", + image: "/blog/DSimage/stack.png", + }, + { + title: "Queue (FIFO)", + description: + "People standing in line. The first to arrive is the first served, and nobody jumps ahead.", + note: "Best for scheduling and task processing", + image: "/blog/DSimage/queue.png", + }, + { + title: "Linked List", + description: + "A chain of nodes, each holding a value and the address of the next. There is no fixed size, and inserting means rewriting one link.", + note: "Best for frequent insertions and removals", + image: "/blog/DSimage/linkedList.png", + }, + { + title: "Tree", + description: + "Starts at a root and branches out. Each step down usually halves what is left to search, which is where the speed comes from.", + note: "Best for hierarchies and fast lookup", + image: "/blog/DSimage/tree.png", + }, + { + title: "Graph", + description: + "Nodes connected by edges, with no required shape. Any node can link to any other, which is how real networks behave.", + note: "Best for networks, maps and recommendations", + image: "/blog/DSimage/graph.png", + }, +]; + +const wardrobe = [ + { + title: "Everything in one pile", + description: + "Storing all your data in a single unstructured list. Finding one item means checking every item — fine for ten things, painful for ten thousand.", + }, + { + title: "A drawer per category", + description: + "Choosing a structure that matches the shape of the data. You go straight to the right drawer instead of searching the whole room.", + }, + { + title: "Labelled and indexed", + description: + "Adding a hash map or an index on top. Now you find any item in roughly one step, no matter how much you own.", + }, +]; + +const buildIt = [ + "Store the names in an array so they keep their order.", + "Add a hash table so searching by name is instant rather than a scan.", + "Sort the array to display contacts alphabetically.", + "Notice that each requirement pushed you toward a different structure — that is the whole skill.", +]; + +const faqs = [ + { + q: "Do I need to memorise every data structure?", + a: "No. Six carry most of the weight: arrays, hash maps, stacks, queues, trees and graphs. Learn those properly and the rest are variations you can pick up when you meet them.", + }, + { + q: "What is the difference between a data structure and an algorithm?", + a: "A data structure is how the data is arranged; an algorithm is what you do with it. Sorting is an algorithm, the array it sorts is the structure. Choosing the structure usually decides which algorithms are even available to you.", + }, + { + q: "Does the language change any of this?", + a: "The concepts are identical everywhere. Only the names and the built-ins change — a Python dict, a Java HashMap and a JavaScript Map are the same idea with different labels.", + }, +]; + +const BlogContent = () => ( + +

+ If you're new to coding, you've probably come across terms like + array, stack, or linked list and thought, "what does that even + mean?" You're not alone. These are all data structures, and they + are simply different ways of arranging information so a program can work + with it efficiently. +

+

+ This guide breaks down what they are, why they matter, and introduces the + handful you will actually use — in plain language, with the trade-off for + each one spelled out. +

+ + + A data structure is a way to organise data so that the operations you care + about are cheap. Every structure is fast at something and slow at + something else — choosing one is choosing which. + + +

What is a data structure?

+

+ Think of organising a wardrobe. Shirts in one drawer, socks in a box, coats + on hangers. Nothing is stored more efficiently in the abstract, but finding + a specific sock becomes far quicker because the arrangement matches how you + search. +

+

Data works the same way, and the difference shows up as you scale:

+ + +

Why they matter

+

Four reasons this is worth your time early rather than late:

+ +

+ The practical version: a badly chosen structure does not just run slower, + it makes some features impractical to build at all. +

+ +

The six you will actually use

+

+ Each of these exists because it makes one operation cheap. The note under + each card is the job it is genuinely good at. +

+
+ {dataStructures.map((item) => ( + + ))} +
+ +

Seeing it in one small app

+

+ Suppose you build a contact list. Watch how each new requirement pulls in a + different structure: +

+ + +

Common questions

+ + +

Final thoughts

+

+ Data structures are the toolbox every programmer carries. You do not need + all of them on day one — start with arrays and hash maps, add stacks and + queues when a problem calls for order, then move on to trees and graphs. +

+

+ Practise each one by building something small with it rather than reading + about it. What felt like intimidating jargon becomes ordinary vocabulary + surprisingly quickly. +

+
+); + +export default BlogContent; diff --git a/app/blogs/blogPage.jsx b/app/blogs/blogPage.jsx index 3095883..39d6ed5 100755 --- a/app/blogs/blogPage.jsx +++ b/app/blogs/blogPage.jsx @@ -1,12 +1,13 @@ "use client"; -import { useState, useEffect, useRef } from "react"; +import { useState } from "react"; import Link from "next/link"; +import Image from "next/image"; import { FiClock, FiCalendar, FiArrowRight, } from "react-icons/fi"; -import { motion, AnimatePresence } from "framer-motion"; +import { motion } from "framer-motion"; import PopularTopics from "@/app/blogs/components/PopularTopics"; import blogData from "@/app/blogs/data/blogs.json"; @@ -14,8 +15,6 @@ const BlogPage = () => { // State management const [searchQuery, setSearchQuery] = useState(""); const [activeCategory, setActiveCategory] = useState("All"); - const [isSearchFocused, setIsSearchFocused] = useState(false); - const searchRef = useRef(null); // Filtered blogs const filteredBlogs = blogData.filter((blog) => { @@ -40,30 +39,11 @@ const BlogPage = () => { .sort((a, b) => new Date(b.date) - new Date(a.date)) .slice(0, 4); - // Popular tags - const popularTags = [ - "React", - "JavaScript", - "CSS", - "TypeScript", - "Web Dev", - "Performance", - "DSA", - ]; - - // Handle click outside search - useEffect(() => { - const handleClickOutside = (event) => { - if (searchRef.current && !searchRef.current.contains(event.target)) { - setIsSearchFocused(false); - } - }; - document.addEventListener("mousedown", handleClickOutside); - return () => document.removeEventListener("mousedown", handleClickOutside); - }, []); + // Popular tags, taken from the posts themselves so every chip returns results + const popularTags = [...new Set(blogData.flatMap((blog) => blog.tags))]; return ( -
+
{/* Hero Section */}
@@ -74,7 +54,7 @@ const BlogPage = () => { className="text-5xl mt-10 md:text-5xl font-bold text-zinc-800 dark:text-white mb-6 leading-tight" > Insights for{" "} - + Modern Developers @@ -88,7 +68,10 @@ const BlogPage = () => { programming, and more. - {/* Email Subscribe Section */} + {/* Email Subscribe Section — hidden until the mailing list backend + exists. The form has no submit handler yet, so re-enable this + only once there is somewhere for the address to go. */} + {/* { By clicking "Subscribe", you agree to receive updates when new blogs are published.

+ */}
{/* Featured Posts */} @@ -134,10 +118,13 @@ const BlogPage = () => { >
- {featuredPosts[0].title}
@@ -182,11 +169,13 @@ const BlogPage = () => { whileHover={{ y: -5 }} className="flex gap-4 items-start bg-white dark:bg-zinc-800 rounded-xl p-4 shadow hover:shadow-md transition-shadow border border-zinc-100 dark:border-zinc-700/50" > -
- + {post.title}
@@ -212,6 +201,7 @@ const BlogPage = () => { {/* Popular Tags */} { setSearchQuery(tag); setActiveCategory("All"); @@ -262,10 +252,12 @@ const BlogPage = () => {
- {post.title}
@@ -306,7 +298,7 @@ const BlogPage = () => { No articles found

- We couldn't find any articles matching your search. Try a + We couldn{"\'"}t find any articles matching your search. Try a different term or browse our categories.

+ +
+
+ + + {image && ( +
+
+ {imageAlt +
+ {imageCaption && ( +
+ {imageCaption} +
+ )} +
+ )} + +
{children}
+ +
+

+ Share this article +

+
+ {shareLinks.map((social) => ( + + ))} +
+ + +
+ + ); +}; diff --git a/app/blogs/data/blogs.json b/app/blogs/data/blogs.json index f0c1bfc..4a47403 100755 --- a/app/blogs/data/blogs.json +++ b/app/blogs/data/blogs.json @@ -1,46 +1,64 @@ [ - { - "id": 1, - "title": "Is Data Structures and Algorithms Important for Web Developers?", - "excerpt": "Explore why understanding data structures and algorithms can help web developers write efficient, scalable, and maintainable code.", - "date": "May 17, 2025", - "readTime": "8 min read", - "slug": "/blogs/Content/dsaWebDev", - "category": "Web Development", - "tags": ["DSA", "Web Development", "Algorithms"], - "image": "/blog/dsaWebDev.png" - }, - { - "id": 2, - "title": "Are Data Structures and Algorithms Different for Different Languages?", - "excerpt": "Explore the differences in data structures and algorithms across various programming languages and how it impacts implementation.", - "date": "May 19, 2025", - "readTime": "5 min read", - "slug": "/blogs/Content/dsaDifferent", - "category": "Programming Languages", - "tags": ["DSA", "Programming Languages", "Algorithms"], - "image": "/blog/dsaDifferent.png" - }, - { - "id": 3, - "title": "What Are Data Structures? A Beginner-Friendly Guide", - "excerpt": "Confused by terms like arrays, stacks, or linked lists? This guide breaks down data structures in a simple, relatable way. Understand what they are, why they matter, and how they form the backbone of every efficient program.", - "date": "May 23, 2025", - "readTime": "10 min read", - "slug": "/blogs/Content/whatIsDS", - "category": "Computer Science Fundamentals ", - "tags": ["Data Structures", "DSA", "Algorithms", "Beginner Programming"], - "image": "/blog/whatIsDS.png" - }, - { - "id": 4, - "title": "Time Required to Learn and Master DSA", - "excerpt": "Find out how long it takes to learn and master DSA for web development. Explore realistic timelines, learning strategies, and tips for success.", - "date": "Jun 20, 2025", - "readTime": "10 min read", - "slug": "/blogs/Content/timeRequired", - "category": "DSA", - "tags": ["Data Structures", "DSA", "Algorithms", "Beginner Programming"], - "image": "/blog/timeRequired.png" - } - ] \ No newline at end of file + { + "id": 1, + "title": "Is Data Structures and Algorithms Important for Web Developers?", + "excerpt": "Explore why understanding data structures and algorithms can help web developers write efficient, scalable, and maintainable code.", + "date": "May 17, 2025", + "readTime": "8 min read", + "slug": "/blogs/Content/dsaWebDev", + "category": "Web Development", + "tags": [ + "DSA", + "Web Development", + "Algorithms" + ], + "image": "/blog/dsaWebDev.png" + }, + { + "id": 2, + "title": "Are Data Structures and Algorithms Different for Different Languages?", + "excerpt": "Explore the differences in data structures and algorithms across various programming languages and how it impacts implementation.", + "date": "May 19, 2025", + "readTime": "5 min read", + "slug": "/blogs/Content/dsaDifferent", + "category": "Programming Languages", + "tags": [ + "DSA", + "Programming Languages", + "Algorithms" + ], + "image": "/blog/dsaDifferent.png" + }, + { + "id": 3, + "title": "What Are Data Structures? A Beginner-Friendly Guide", + "excerpt": "Confused by terms like arrays, stacks, or linked lists? This guide breaks down data structures in a simple, relatable way. Understand what they are, why they matter, and how they form the backbone of every efficient program.", + "date": "May 23, 2025", + "readTime": "10 min read", + "slug": "/blogs/Content/whatIsDS", + "category": "Computer Science Fundamentals", + "tags": [ + "Data Structures", + "DSA", + "Algorithms", + "Beginner Programming" + ], + "image": "/blog/whatIsDS.png" + }, + { + "id": 4, + "title": "Time Required to Learn and Master DSA", + "excerpt": "Find out how long it takes to learn and master DSA for web development. Explore realistic timelines, learning strategies, and tips for success.", + "date": "Jun 20, 2025", + "readTime": "10 min read", + "slug": "/blogs/Content/timeRequired", + "category": "DSA", + "tags": [ + "Data Structures", + "DSA", + "Algorithms", + "Beginner Programming" + ], + "image": "/blog/timeRequired.png" + } +] diff --git a/app/components/dashboard/StreakCounter.jsx b/app/components/dashboard/StreakCounter.jsx index 5ac444c..0595e41 100755 --- a/app/components/dashboard/StreakCounter.jsx +++ b/app/components/dashboard/StreakCounter.jsx @@ -1,4 +1,5 @@ import React, { useMemo } from "react"; +import Image from "next/image"; import { Award } from "lucide-react"; function StreakCounter({ activityDates }) { @@ -38,7 +39,7 @@ function StreakCounter({ activityDates }) { {/* Circle with fire icon and current streak */}
- fire + {currentStreak} diff --git a/app/components/footer.jsx b/app/components/footer.jsx index 7e39ae3..6f3a74e 100755 --- a/app/components/footer.jsx +++ b/app/components/footer.jsx @@ -116,6 +116,10 @@ const Footer = () => { target="_blank" rel="noopener noreferrer" > + {/* Remote SVG badge from Product Hunt: next/image cannot optimise + SVG, and allowing it would require dangerouslyAllowSVG. Dimensions + are fixed below, so there is no layout shift to fix either. */} + {/* eslint-disable-next-line @next/next/no-img-element */} DSA Visualizer - Visualize & learn dsa the smart way | Product Hunt { See algorithms come to life in your mind{"\'"}s eye before you code them. The way developers actually think.

-
- + +
+ +
+ + + No login/signup required - - - +
{/* Trust indicators */} diff --git a/app/components/ui/productHunt.jsx b/app/components/ui/productHunt.jsx index 89f400a..118649a 100755 --- a/app/components/ui/productHunt.jsx +++ b/app/components/ui/productHunt.jsx @@ -9,6 +9,10 @@ const ProductHuntBadge = () => { target="_blank" rel="noopener noreferrer" > + {/* Remote SVG badge from Product Hunt: next/image cannot optimise SVG, + and allowing it would require dangerouslyAllowSVG. Width and height + are set explicitly, so there is no layout shift. */} + {/* eslint-disable-next-line @next/next/no-img-element */} DSA Visualizer - Visualize & learn dsa the smart way | Product Hunt
- {mod.title} +
+ {mod.title} +

{mod.title}

{mod.description}

diff --git a/app/login/page.jsx b/app/login/page.jsx index 80574ca..e95887e 100755 --- a/app/login/page.jsx +++ b/app/login/page.jsx @@ -14,6 +14,7 @@ import { } from "react-icons/fi"; import { motion } from "framer-motion"; import Link from "next/link"; +import Image from "next/image"; import dynamic from "next/dynamic"; const Turnstile = dynamic( @@ -133,7 +134,7 @@ export default function LoginPage() { onClick={handleGoogleSignIn} className="w-full flex items-center justify-center py-3 px-4 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-neutral-950 text-gray-700 dark:text-gray-200 font-medium hover:bg-gray-50 dark:hover:bg-neutral-900 duration-300 transition-all" > - + Continue with Google