<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Muthurajesh on Medium]]></title>
        <description><![CDATA[Stories by Muthurajesh on Medium]]></description>
        <link>https://medium.com/@muthurajesh07rmr?source=rss-77631ff802d0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*jEyd1PzP0jaIxYmW</url>
            <title>Stories by Muthurajesh on Medium</title>
            <link>https://medium.com/@muthurajesh07rmr?source=rss-77631ff802d0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 02:01:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@muthurajesh07rmr/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Vibe Coding Era Ends Here ]]></title>
            <link>https://medium.com/@muthurajesh07rmr/vibe-coding-era-ends-here-e9f445da7550?source=rss-77631ff802d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9f445da7550</guid>
            <category><![CDATA[skills]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[vibe-coding]]></category>
            <dc:creator><![CDATA[Muthurajesh]]></dc:creator>
            <pubDate>Mon, 18 May 2026 07:50:58 GMT</pubDate>
            <atom:updated>2026-05-18T07:50:58.708Z</atom:updated>
            <content:encoded><![CDATA[<h3>Vibe Coding Era Ends Here</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CNnpoNrGPl8F3iWRz4wmmg.png" /></figure><p><em>Why developers who only “prompt and pray” are about to struggle in the next wave of AI software engineering.</em></p><p>The internet spent the last two years celebrating <em>vibe coding</em>.</p><p>Type a prompt.<br> Get a UI.<br> Ship a product.<br> Post a screenshot on X.<br> Repeat.</p><p>For a while, it felt magical.</p><p>Tools like ChatGPT, Claude, Copilot, Cursor, and Devin made software development look effortless.</p><p>But in 2026, something changed.</p><p>The industry is slowly realizing:</p><p>AI can generate code fast.<br> But it still cannot think like an engineer.</p><p>And that’s exactly where the <em>vibe coding era</em> starts to collapse.</p><h3>What Is “Vibe Coding”?</h3><p>Vibe coding is the habit of building apps almost entirely through AI prompts without deeply understanding:</p><ul><li>architecture</li><li>debugging</li><li>scalability</li><li>security</li><li>performance</li><li>real-world edge cases</li></ul><p>It works for:</p><ul><li>landing pages</li><li>small demos</li><li>MVPs</li><li>clone apps</li><li>hackathon projects</li></ul><p>But the moment projects become real?</p><p>Things break. Fast.</p><h3>The Real Problem Nobody Talks About</h3><p>AI generates <em>confident code</em>.</p><p>Not always <em>correct code</em>.</p><p>Developers are now spending more time:</p><ul><li>reviewing AI-generated bugs</li><li>fixing broken logic</li><li>cleaning duplicate code</li><li>rewriting insecure implementations</li><li>understanding code they never wrote</li></ul><p>The scary part?</p><p>Junior developers often cannot identify these problems because the output <em>looks professional</em>.</p><p>That’s the illusion of vibe coding.</p><h3>The Shift Has Already Started</h3><p>The tech industry is moving from:</p><h3>“Can AI generate code?”</h3><p>to</p><h3>“Can humans verify and design systems properly?”</h3><p>That changes everything.</p><p>The most valuable developers in 2026 are no longer:</p><ul><li>the fastest typers</li><li>framework collectors</li><li>tutorial repeaters</li></ul><p>They are the engineers who understand:</p><ul><li>system design</li><li>architecture</li><li>product thinking</li><li>scalability</li><li>debugging</li><li>infrastructure</li><li>AI orchestration</li></ul><p>The future belongs to developers who can <em>guide AI</em>, not depend on it blindly.</p><h3>AI Didn’t Kill Coding</h3><p>It killed <em>low-effort coding</em>.</p><p>That’s a huge difference.</p><p>Companies still need humans for:</p><ul><li>decision making</li><li>software architecture</li><li>security reviews</li><li>production debugging</li><li>AI supervision</li><li>performance optimization</li><li>business logic understanding</li></ul><p>AI became a multiplier.<br> Not a replacement.</p><h3>The New Era: Engineering &gt; Prompting</h3><p>The next generation of software engineers will work differently.</p><p>Instead of writing every line manually, developers will:</p><ul><li>supervise AI agents</li><li>design workflows</li><li>validate outputs</li><li>connect systems</li><li>optimize generated code</li><li>manage AI-assisted pipelines</li></ul><p>Coding is becoming:</p><h3>Less typing. More thinking.</h3><h3>What Smart Developers Are Learning Right Now</h3><p>While the internet argues about prompts, strong engineers are learning:</p><ul><li>AI agents</li><li>LLM workflows</li><li>cloud systems</li><li>distributed architecture</li><li>cybersecurity</li><li>automation</li><li>infrastructure</li><li>performance engineering</li></ul><p>Because these skills survive every AI wave.</p><h3>The Biggest Misunderstanding About AI Coding</h3><p>People think:</p><p>“If AI writes code, developers become useless.”</p><p>Reality:</p><p>Developers who understand systems become even more valuable.</p><p>Because somebody still needs to:</p><ul><li>know what to build</li><li>verify correctness</li><li>prevent disasters</li><li>scale products</li><li>maintain systems</li><li>secure infrastructure</li></ul><p>AI accelerates execution.</p><p>Humans still provide direction.</p><h3>Final Thoughts</h3><p>The vibe coding era isn’t completely dead.</p><p>But the “prompt-only developer” era is fading fast.</p><p>The next wave belongs to engineers who combine:</p><ul><li>AI tools</li><li>deep technical understanding</li><li>critical thinking</li><li>real-world problem solving</li></ul><p>In 2026, the best developers are not competing against AI.</p><p>They’re learning how to become the engineer AI cannot replace.</p><h3>Tags</h3><p>#AI #SoftwareEngineering #Programming #ArtificialIntelligence #WebDevelopment #Coding #Tech #Developers #MachineLearning #FutureOfWork</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9f445da7550" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How a Request Works on the Internet: Step-by-Step Explanation]]></title>
            <link>https://medium.com/@muthurajesh07rmr/how-a-request-works-on-the-internet-step-by-step-explanation-1ed1535aa739?source=rss-77631ff802d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/1ed1535aa739</guid>
            <category><![CDATA[http-request]]></category>
            <category><![CDATA[browsers]]></category>
            <category><![CDATA[internet-connectivity]]></category>
            <category><![CDATA[dns]]></category>
            <category><![CDATA[internet]]></category>
            <dc:creator><![CDATA[Muthurajesh]]></dc:creator>
            <pubDate>Wed, 19 Mar 2025 18:26:33 GMT</pubDate>
            <atom:updated>2025-03-19T18:26:33.021Z</atom:updated>
            <content:encoded><![CDATA[<p>Every time you click a link, type a website URL, or send a message online, you trigger a <strong>request</strong> on the Internet. This article explains clearly how such requests work, step-by-step, from your device to the destination and back.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/284/1*2uM5cLZetvYBukrie4RWDA.jpeg" /></figure><h3>Step 1: Entering the URL or Clicking a Link</h3><p>Suppose you type www.example.com into your browser and hit Enter.</p><p>At this point, your browser needs to convert that easy-to-remember URL into an IP address to locate the server holding the website.</p><h3>Step 2: DNS Lookup (Domain Name System)</h3><p>Your device contacts a DNS server to translate the domain name (www.example.com) into a numerical IP address (like 93.184.216.34). This process is known as <strong>DNS lookup</strong>.</p><p><strong>Example:</strong></p><pre>User types: www.example.com<br>DNS Server resolves: www.example.com → 93.184.216.34</pre><h3>Step 3: Initiating a Connection (TCP Handshake)</h3><p>Once the IP address is found, your browser establishes a <strong>TCP connection</strong> to the web server. This involves three steps, called a <strong>TCP Three-way Handshake</strong>:</p><ol><li><strong>SYN:</strong> Your browser sends a synchronization request to the server.</li><li><strong>SYN-ACK:</strong> Server acknowledges by responding to your request.</li><li><strong>ACK:</strong> Your browser acknowledges again, establishing a stable connection.</li></ol><p><strong>Example:</strong></p><pre>Browser → Server: &quot;Can we connect?&quot; (SYN)<br>Server → Browser: &quot;Yes, let&#39;s connect!&quot; (SYN-ACK)<br>Browser → Server: &quot;Great, connection established!&quot; (ACK)</pre><h3>Step 4: Sending an HTTP Request</h3><p>Once a TCP connection is established, your browser sends an HTTP request to request data from the server.</p><p>An HTTP request typically contains:</p><ul><li>Request method (GET, POST, PUT, DELETE, etc.)</li><li>URL path</li><li>HTTP version</li><li>Additional headers (like User-Agent, Accept, Cookie, etc.)</li></ul><p><strong>Example of an HTTP GET request:</strong></p><pre>GET /index.html HTTP/1.1<br>Host: www.example.com<br>User-Agent: Mozilla/5.0<br>Accept: text/html</pre><h3>Step 5: Server Processes the Request</h3><p>After receiving your request, the server processes it. The server locates the requested resource (webpage, image, file, etc.) and prepares a response.</p><p>If the resource is found, the server returns it with a status code of 200 OK. If not found, you might receive an error like 404 Not Found.</p><h3>Step 6: Server Responds with HTTP Response</h3><p>The server sends back an HTTP response that includes:</p><ul><li>HTTP version and status code (e.g., 200 OK)</li><li>Response headers (content-type, cache-control, etc.)</li><li>Actual content (HTML, CSS, images, JavaScript files, etc.)</li></ul><p><strong>Example response from the server:</strong></p><pre>HTTP/1.1 200 OK<br>Date: Wed, 19 Mar 2025 09:00:00 GMT<br>Content-Type: text/html<br>Content-Length: 1250</pre><pre>&lt;html&gt;<br>  &lt;head&gt;<br>    &lt;title&gt;Example.com&lt;/title&gt;<br>  &lt;/head&gt;<br>  &lt;body&gt;<br>    &lt;h1&gt;Welcome to Example.com!&lt;/h1&gt;<br>  &lt;/body&gt;<br>&lt;/html&gt;</pre><h3>Step 7: Browser Renders the Page</h3><p>Once your browser receives the HTTP response, it processes and renders the content.</p><p>The browser interprets the HTML, CSS, JavaScript, and displays the webpage visually to you.</p><h3>Step 8: Closing the Connection</h3><p>After the request-response cycle finishes, the TCP connection is closed. Sometimes the connection remains open briefly for additional requests (this is known as HTTP Keep-Alive), improving the speed of loading subsequent pages.</p><h3>Practical Example in Short:</h3><p>When you open a website (www.google.com), this is the simplified process:</p><ul><li><strong>Browser:</strong> “Hey DNS, what’s the IP for google.com?”</li><li><strong>DNS:</strong> “Here you go, it’s 172.217.0.142.”</li><li><strong>Browser:</strong> “Hi server 172.217.0.142, let’s connect.”</li><li><strong>Server:</strong> “Connection established!”</li><li><strong>Browser:</strong> “Can you send me your homepage?”</li><li><strong>Server:</strong> “Here is the HTML page you’re looking for.”</li><li><strong>Browser:</strong> “Got it! Rendering it now…”</li></ul><h3>Conclusion:</h3><p>Every interaction on the Internet — whether it’s loading a webpage, sending an email, or streaming video — is based on this fundamental request-response model. Understanding these steps clarifies how data flows through the Internet, providing foundational knowledge essential for networking, cybersecurity, and troubleshooting.</p><p>Happy Learning !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1ed1535aa739" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL Injection: Understanding, Examples, and Prevention Strategies]]></title>
            <link>https://medium.com/@muthurajesh07rmr/sql-injection-understanding-examples-and-prevention-strategies-8a86a8cb5bc9?source=rss-77631ff802d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a86a8cb5bc9</guid>
            <category><![CDATA[sql-injection-prevention]]></category>
            <category><![CDATA[sql-injection]]></category>
            <category><![CDATA[safe-code]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[sql-injection-attack]]></category>
            <dc:creator><![CDATA[Muthurajesh]]></dc:creator>
            <pubDate>Wed, 19 Mar 2025 12:59:46 GMT</pubDate>
            <atom:updated>2025-03-19T12:59:46.231Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/310/1*khfwyPUBi60ihMBtpPkMOA.jpeg" /></figure><p>SQL Injection is a common and dangerous cybersecurity vulnerability. Attackers exploit SQL injection by inserting malicious SQL queries into user inputs, potentially gaining unauthorized access to databases, stealing sensitive data, modifying database contents, or even deleting databases altogether.</p><h3>How Does SQL Injection Happen?</h3><p>SQL injection vulnerabilities occur when user-supplied input is improperly sanitized or directly concatenated into SQL queries. Attackers exploit this vulnerability by injecting malicious SQL commands into user inputs, which the database executes.</p><p>For instance, consider the following scenario:</p><ul><li>A web application allows a user to log in by providing a username and password.</li><li>Behind the scenes, a SQL query validates the credentials:</li></ul><pre>SELECT * FROM users WHERE username = &#39;$username&#39; AND password = &#39;$password&#39;;</pre><p>If inputs ($username and $password) are directly concatenated without validation, attackers can inject malicious input, leading to a successful SQL injection.</p><h3>Example of Vulnerable Code</h3><p>Here’s a common example of vulnerable PHP code:</p><pre>$username = $_POST[&#39;username&#39;];<br>$password = $_POST[&#39;password&#39;];</pre><pre>// Vulnerable SQL query construction<br>$query = &quot;SELECT * FROM users WHERE username = &#39;$username&#39; AND password = &#39;$password&#39;&quot;;<br>$result = mysqli_query($connection, $query);</pre><h3>How Attackers Exploit This?</h3><p>An attacker might provide the following as the username:</p><pre>admin&#39; --</pre><p>The resulting SQL statement becomes:</p><pre>SELECT * FROM users WHERE username = &#39;admin&#39; -- &#39; AND password = &#39;&#39;;</pre><p>The -- (SQL comment) ignores the remainder of the query. Thus, the attacker bypasses the password check entirely and may log in as &#39;admin.&#39;</p><h3>Types of SQL Injection Attacks</h3><ol><li><strong>In-band SQL Injection (Classic)</strong></li></ol><ul><li>Uses the same communication channel to inject SQL code and retrieve results.</li></ul><ol><li><strong>Blind SQL Injection</strong></li></ol><ul><li>No direct feedback from the server, attackers guess database structure through true/false queries.</li></ul><ol><li><strong>Out-of-band SQL Injection (OOB SQLi)</strong></li></ol><ul><li>Uses DNS or HTTP requests to transfer data to a server controlled by the attacker.</li></ul><h3>Preventing SQL Injection: Best Practices</h3><p>To protect your applications and databases, you must follow these essential security measures:</p><h3>1. Use Parameterized Queries (Prepared Statements)</h3><p>Prepared statements ensure that user inputs are treated as data, not executable SQL.</p><p><strong>Example using PHP with PDO:</strong></p><pre>$stmt = $pdo-&gt;prepare(&#39;SELECT * FROM users WHERE username = :username AND password = :password&#39;);<br>$stmt-&gt;execute([&#39;username&#39; =&gt; $username, &#39;password&#39; =&gt; $password]);<br>$user = $stmt-&gt;fetch();</pre><p><strong>Example using Python (with SQLite3):</strong></p><pre>cursor.execute(&quot;SELECT * FROM users WHERE username=? AND password=?&quot;, (username, password))</pre><h3>2. Sanitize and Validate User Inputs</h3><p>Always validate user inputs to prevent suspicious patterns.</p><ul><li>Input validation restricts accepted input (e.g., usernames should be alphanumeric).</li><li>Sanitization removes or escapes special characters to neutralize potentially harmful data.</li></ul><h3>3. Principle of Least Privilege</h3><p>Limit database user permissions, ensuring users only have necessary privileges.</p><ul><li>Use read-only users for select queries.</li><li>Restrict administrative operations only to authenticated administrative users.</li></ul><h3>4. Web Application Firewalls (WAFs)</h3><p>Implement WAFs to monitor and block suspicious traffic patterns indicative of SQL injection.</p><h3>5. Escaping Inputs</h3><p>In cases where prepared statements are unavailable, properly escape inputs.</p><ul><li>Example with PHP’s built-in function:</li></ul><pre>$username_safe = mysqli_real_escape_string($connection, $username);</pre><h3>6. Regular Security Audits and Testing</h3><p>Perform regular security audits, penetration testing, and vulnerability scanning to proactively identify and mitigate risks.</p><h3>7. Keep Software Updated</h3><p>Regularly update database software, frameworks, and third-party libraries to patch known vulnerabilities.</p><h3>Secure Code Example (Full PHP Example):</h3><p>Here’s an example of secure PHP code demonstrating proper use of prepared statements to prevent SQL Injection:</p><pre>&lt;?php<br>// Database connection with PDO<br>try {<br>    $pdo = new PDO(&#39;mysql:host=localhost;dbname=mydatabase&#39;, &#39;user&#39;, &#39;password&#39;);<br>    $pdo-&gt;setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);<br>} catch (PDOException $e) {<br>    die(&quot;Database error: &quot; . $e-&gt;getMessage());<br>}</pre><pre>$username = $_POST[&#39;username&#39;];<br>$password = $_POST[&#39;password&#39;];</pre><pre>// Secure query using prepared statements<br>$stmt = $pdo-&gt;prepare(&#39;SELECT * FROM users WHERE username = :username AND password = :password&#39;);<br>$stmt-&gt;execute([&#39;username&#39; =&gt; $username, &#39;password&#39; =&gt; $password]);</pre><pre>$user = $stmt-&gt;fetch();</pre><pre>if ($user) {<br>    echo &#39;Login successful!&#39;;<br>} else {<br>    echo &#39;Invalid credentials!&#39;;<br>}<br>?&gt;</pre><h3><strong>Here’s an example with Angular framework.</strong></h3><p>Here is a practical example illustrating SQL Injection vulnerability in an Angular application context, how it commonly occurs, and the best practices for preventing it.</p><p>Angular is primarily a client-side framework and itself is not directly vulnerable to SQL injection. However, Angular apps frequently interact with backend services (built with technologies like Node.js, Java, .NET, PHP, or Python). SQL injection vulnerabilities arise <strong>when the backend API improperly handles user-supplied data</strong> from the Angular frontend.</p><p>Let’s first understand the scenario clearly:</p><ul><li>Angular Frontend → HTTP Request → Backend API (e.g., Node.js Express) → Database (SQL/MySQL/PostgreSQL)</li></ul><h3>Scenario: User Login</h3><h3>Angular Frontend Code (Login Form)</h3><pre>// login.component.ts<br>login() {<br>  const username = this.loginForm.value.username;<br>  const password = this.loginForm.value.password;</pre><pre>  this.http.post(&#39;/api/login&#39;, { username, password })<br>    .subscribe(response =&gt; {<br>      // Handle response<br>    });<br>}</pre><p>Angular collects data from the login form and sends it to the backend.</p><h3>Vulnerable Backend Example (Node.js + Express)</h3><p>This is where the vulnerability can happen:</p><pre>// Vulnerable Backend Example (Express)<br>const express = require(&#39;express&#39;);<br>const mysql = require(&#39;mysql&#39;);<br>const app = express();</pre><pre>app.use(express.json());</pre><pre>const connection = mysql.createConnection({<br>  host: &#39;localhost&#39;,<br>  user: &#39;root&#39;,<br>  password: &#39;password&#39;,<br>  database: &#39;testdb&#39;<br>});</pre><pre>app.post(&#39;/api/login&#39;, (req, res) =&gt; {<br>  const username = req.body.username;<br>  const password = req.body.password;</pre><pre>  // Vulnerable Query (directly injecting user input)<br>  const query = `SELECT * FROM users WHERE username = &#39;${username}&#39; AND password = &#39;${password}&#39;`;</pre><pre>  connection.query(query, (error, results) =&gt; {<br>    if (error) {<br>      return res.status(500).send(&#39;Error!&#39;);<br>    }<br>    if (results.length &gt; 0) {<br>      res.send(&#39;Login Successful&#39;);<br>    } else {<br>      res.send(&#39;Invalid Credentials&#39;);<br>    }<br>  });<br>});</pre><pre>app.listen(3000, () =&gt; console.log(&#39;Server started on port 3000&#39;));</pre><h3>Exploitation Scenario</h3><p>Attackers may enter malicious input from Angular’s frontend form:</p><ul><li>Username input:</li></ul><pre>admin&#39; --</pre><ul><li>Password input:</li></ul><pre>irrelevant</pre><p>Resulting backend SQL query:</p><pre>SELECT * FROM users WHERE username = &#39;admin&#39; -- &#39; AND password = &#39;irrelevant&#39;;</pre><p>The comment (--) cancels out the password validation, allowing attackers to login without a valid password.</p><h3>How to Prevent SQL Injection in Angular-Backend Applications</h3><h3>1. Backend Prepared Statements (Parameterized Queries)</h3><p>Always use parameterized queries. This method ensures that user inputs are treated strictly as data and not executable SQL.</p><h4>Secure Node.js Backend (Using mysql2 module):</h4><pre>const express = require(&#39;express&#39;);<br>const mysql = require(&#39;mysql2&#39;);<br>const app = express();</pre><pre>app.use(express.json());</pre><pre>const pool = mysql.createPool({<br>  host: &#39;localhost&#39;,<br>  user: &#39;root&#39;,<br>  password: &#39;password&#39;,<br>  database: &#39;testdb&#39;<br>});</pre><pre>app.post(&#39;/api/login&#39;, (req, res) =&gt; {<br>  const { username, password } = req.body;</pre><pre>  const query = &#39;SELECT * FROM users WHERE username = ? AND password = ?&#39;;</pre><pre>  pool.execute(query, [username, password], (error, results) =&gt; {<br>    if (error) {<br>      return res.status(500).send(&#39;Error!&#39;);<br>    }</pre><pre>    if (results.length &gt; 0) {<br>      res.send(&#39;Login Successful&#39;);<br>    } else {<br>      res.send(&#39;Invalid Credentials&#39;);<br>    }<br>  });<br>});</pre><pre>app.listen(3000, () =&gt; console.log(&#39;Secure Server running on port 3000&#39;));</pre><h3>2. Input Validation on Angular (Client-Side)</h3><p>While frontend validation alone doesn’t prevent SQL injection, it’s helpful as an additional security layer:</p><pre>// Angular Reactive Form Validation<br>this.loginForm = this.fb.group({<br>  username: [&#39;&#39;, [Validators.required, Validators.pattern(&#39;^[a-zA-Z0-9_]*$&#39;)]],<br>  password: [&#39;&#39;, [Validators.required]]<br>});</pre><p>This restricts usernames to only alphanumeric characters and underscores, reducing injection potential.</p><h3>Conclusion</h3><p>SQL injection remains a significant threat to application security. Understanding how it occurs and proactively following preventive measures can protect critical data and systems. Always use parameterized queries, sanitize inputs, apply the principle of least privilege, and consistently update software and infrastructure to minimize your risk of SQL injection attacks.</p><p>Angular itself is not vulnerable to SQL injection attacks; the vulnerability occurs due to improper backend implementation. Using parameterized queries, proper input validation, and adhering to secure coding standards significantly reduces the risk of SQL injection attacks.</p><p>Happy &amp; Secure Coding !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a86a8cb5bc9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Sharing Methods Between Components in Angular]]></title>
            <link>https://medium.com/@muthurajesh07rmr/data-sharing-methods-between-components-in-angular-01fe2d317fab?source=rss-77631ff802d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/01fe2d317fab</guid>
            <category><![CDATA[services]]></category>
            <category><![CDATA[angular-components]]></category>
            <category><![CDATA[components]]></category>
            <category><![CDATA[data-sharing]]></category>
            <category><![CDATA[angular]]></category>
            <dc:creator><![CDATA[Muthurajesh]]></dc:creator>
            <pubDate>Wed, 19 Mar 2025 12:32:00 GMT</pubDate>
            <atom:updated>2025-03-19T12:32:00.226Z</atom:updated>
            <content:encoded><![CDATA[<p>Data sharing is a crucial aspect in building robust Angular applications. Angular provides various methods to share data between components, each suitable for different scenarios and use-cases. In this article, we’ll explore five main data sharing techniques clearly, simply, and in detail.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/1*ISKDeZX385AHUKpciTYogQ.png" /></figure><h3>1. @Input() Decorator: Parent-to-Child Communication</h3><p><strong>Explanation:</strong></p><p>The @Input() decorator is the most straightforward method to share data from a parent component to a child component. It allows the child to receive values directly from the parent’s template via property binding.</p><p><strong>When to Use:</strong></p><ul><li>Direct parent-to-child relationship.</li><li>Passing simple or moderately complex data.</li></ul><p><strong>Example Implementation:</strong></p><p><strong>Parent Component (</strong><strong>parent.component.ts):</strong></p><pre>@Component({<br>  selector: &#39;app-parent&#39;,<br>  template: `&lt;app-child [childMessage]=&quot;messageFromParent&quot;&gt;&lt;/app-child&gt;`<br>})<br>export class ParentComponent {<br>  messageFromParent: string = &#39;Hello from Parent!&#39;;<br>}</pre><p><strong>Child Component (</strong><strong>child.component.ts):</strong></p><pre>@Component({<br>  selector: &#39;app-child&#39;,<br>  template: `&lt;p&gt;{{ childMessage }}&lt;/p&gt;`<br>})<br>export class ChildComponent {<br>  @Input() childMessage!: string;<br>}</pre><p><strong>How It Works:</strong></p><ul><li>Parent component binds a variable to child component using property binding ([childMessage]=&quot;messageFromParent&quot;).</li><li>Child component receives the data through the @Input() decorated property (childMessage) and displays or uses it as needed.</li></ul><h3>2. @Output() Decorator and EventEmitter: Child-to-Parent Communication</h3><p><strong>Explanation:</strong></p><p>@Output() along with EventEmitter enables the child component to send data back up to the parent. It&#39;s commonly used for event notifications or user interactions.</p><p><strong>When to Use:</strong></p><ul><li>Child needs to communicate user actions or updates back to the parent.</li><li>Triggering events in the parent component from child interaction.</li></ul><p><strong>Example Implementation:</strong></p><p><strong>Child Component (</strong><strong>child.component.ts):</strong></p><pre>@Component({<br>  selector: &#39;app-child&#39;,<br>  template: `&lt;button (click)=&quot;notifyParent()&quot;&gt;Notify Parent&lt;/button&gt;`<br>})<br>export class ChildComponent {<br>  @Output() notify: EventEmitter&lt;string&gt; = new EventEmitter();</pre><pre>  notifyParent() {<br>    this.notify.emit(&#39;Hello Parent, message from Child!&#39;);<br>  }<br>}</pre><p><strong>Parent Component (</strong><strong>parent.component.ts):</strong></p><pre>@Component({<br>  selector: &#39;app-parent&#39;,<br>  template: `<br>    &lt;app-child (notify)=&quot;onNotification($event)&quot;&gt;&lt;/app-child&gt;<br>    &lt;p&gt;{{ messageFromChild }}&lt;/p&gt;<br>  `<br>})<br>export class ParentComponent {<br>  messageFromChild!: string;</pre><pre>  onNotification(message: string) {<br>    this.messageFromChild = message;<br>  }<br>}</pre><p><strong>How It Works:</strong></p><ul><li>The child emits an event using EventEmitter.</li><li>The parent component listens for this event and retrieves the emitted data through event binding ((notify)=&quot;onNotification($event)&quot;).</li></ul><h3>3. Services (Shared Data via Injectable Service)</h3><p><strong>Explanation:</strong></p><p>Services provide a powerful and flexible way to share data across multiple components, even when they’re unrelated. A service acts as a central data hub, commonly using Observables or BehaviorSubjects to propagate changes.</p><p><strong>When to Use:</strong></p><ul><li>Components that have no direct parent-child relationship.</li><li>Application-wide shared state or configuration.</li></ul><p><strong>Example Implementation:</strong></p><p><strong>Shared Service (</strong><strong>data.service.ts):</strong></p><pre>import { Injectable } from &#39;@angular/core&#39;;<br>import { BehaviorSubject } from &#39;rxjs&#39;;</pre><pre>@Injectable({ providedIn: &#39;root&#39; })<br>export class DataService {<br>  private messageSource = new BehaviorSubject&lt;string&gt;(&#39;Initial Message&#39;);<br>  currentMessage = this.messageSource.asObservable();</pre><pre>  updateMessage(message: string) {<br>    this.messageSource.next(message);<br>  }<br>}</pre><p><strong>Sender Component (</strong><strong>component-a.ts):</strong></p><pre>export class ComponentA {<br>  constructor(private dataService: DataService) {}</pre><pre>  sendMessage() {<br>    this.dataService.updateMessage(&#39;Hello from Component A&#39;);<br>  }<br>}</pre><p><strong>Receiver Component (</strong><strong>component-b.ts):</strong></p><pre>export class ComponentB implements OnInit {<br>  receivedMessage!: string;</pre><pre>  constructor(private dataService: DataService) {}</pre><pre>  ngOnInit() {<br>    this.dataService.currentMessage.subscribe(msg =&gt; {<br>      this.receivedMessage = msg;<br>    });<br>  }<br>}</pre><p><strong>How It Works:</strong></p><ul><li>Components inject the same service instance (providedIn: &#39;root&#39; ensures singleton).</li><li>Service uses a BehaviorSubject to broadcast data changes to any subscribed component.</li></ul><h3>4. ViewChild Decorator: Direct Access to Child Components</h3><p><strong>Explanation:</strong></p><p>Using @ViewChild, a parent component can directly access methods and properties of a child component instance. It’s used when direct interaction or manipulation of child components is required.</p><p><strong>When to Use:</strong></p><ul><li>Parent component needs to directly invoke methods or alter properties of child components.</li><li>Handling complex interactions beyond simple data binding.</li></ul><p><strong>Example Implementation:</strong></p><p><strong>Child Component (</strong><strong>child.component.ts):</strong></p><pre>@Component({<br>  selector: &#39;app-child&#39;,<br>  template: `&lt;p&gt;{{message}}&lt;/p&gt;`<br>})<br>export class ChildComponent {<br>  message: string = &#39;Initial Child Message&#39;;</pre><pre>  changeMessage(newMessage: string) {<br>    this.message = newMessage;<br>  }<br>}</pre><p><strong>Parent Component (</strong><strong>parent.component.ts):</strong></p><pre>@Component({<br>  selector: &#39;app-parent&#39;,<br>  template: `<br>    &lt;app-child&gt;&lt;/app-child&gt;<br>    &lt;button (click)=&quot;updateChild()&quot;&gt;Update Child Message&lt;/button&gt;<br>  `<br>})<br>export class ParentComponent {<br>  @ViewChild(ChildComponent) child!: ChildComponent;</pre><pre>  updateChild() {<br>    this.child.changeMessage(&#39;Updated by Parent&#39;);<br>  }<br>}</pre><p><strong>How It Works:</strong></p><ul><li>The parent uses @ViewChild to get a reference to the child component instance.</li><li>Parent directly accesses child’s public methods or properties.</li></ul><h3>5. Route Parameters: Sharing Data via URL</h3><p><strong>Explanation:</strong></p><p>Route parameters pass data between different views or components by embedding data directly into URLs. They’re useful when navigating between views.</p><p><strong>When to Use:</strong></p><ul><li>Passing identifiers or data between routed components.</li><li>URLs reflecting state or specific data points.</li></ul><p><strong>Example Implementation:</strong></p><p><strong>Routes Configuration (</strong><strong>app-routing.module.ts):</strong></p><pre>const routes: Routes = [<br>  { path: &#39;detail/:id&#39;, component: DetailComponent }<br>];</pre><p><strong>Navigating to the Detail Component:</strong></p><pre>export class ListComponent {<br>  constructor(private router: Router) {}</pre><pre>  goToDetail(id: number) {<br>    this.router.navigate([&#39;/detail&#39;, id]);<br>  }<br>}</pre><p><strong>Detail Component (</strong><strong>detail.component.ts):</strong></p><pre>export class DetailComponent implements OnInit {<br>  id!: string | null;</pre><pre>  constructor(private route: ActivatedRoute) {}</pre><pre>  ngOnInit() {<br>    this.id = this.route.snapshot.paramMap.get(&#39;id&#39;);<br>  }<br>}</pre><p><strong>How It Works:</strong></p><ul><li>Data is included in the URL itself (/detail/:id).</li><li>The receiving component (DetailComponent) retrieves data from the URL through the ActivatedRoute.</li></ul><h3>Summary: Which Method to Choose?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*sAQ2j7hcsIkvJk6Lo9Ga-w.png" /><figcaption>SummaryImage</figcaption></figure><h3>Conclusion</h3><p>Angular provides multiple powerful methods to effectively share data across components. Selecting the appropriate method depends on the relationship between components and the complexity of your data-sharing requirements. Understanding these methods empowers developers to build more scalable, maintainable, and cleaner Angular applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=01fe2d317fab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Types of Cybersecurity Attacks: A Quick Overview]]></title>
            <link>https://medium.com/@muthurajesh07rmr/types-of-cybersecurity-attacks-a-quick-overview-64dd8d89a007?source=rss-77631ff802d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/64dd8d89a007</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[quick-overview]]></category>
            <category><![CDATA[cyber-security-awareness]]></category>
            <category><![CDATA[attack-in-cyber-security]]></category>
            <dc:creator><![CDATA[Muthurajesh]]></dc:creator>
            <pubDate>Tue, 18 Mar 2025 04:53:15 GMT</pubDate>
            <atom:updated>2025-03-18T04:53:15.559Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*EQRrpQaGUva_RKUAJPAT7A.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*EQRrpQaGUva_RKUAJPAT7A.jpeg" /></figure><p>Understanding various cybersecurity attacks is essential for protecting your data and systems. Here are some common types of cybersecurity attacks, each accompanied by a brief description and practical examples.</p><h3>1. Malware Attacks</h3><p>Malicious software designed to infiltrate, damage, or gain unauthorized access to computer systems.</p><p><strong>Example:</strong> Ransomware such as WannaCry encrypts user data, demanding payment to restore access.</p><h3>2. Phishing Attacks</h3><p>Fraudulent attempts to obtain sensitive information by disguising as a trustworthy entity.</p><p><strong>Example:</strong> Receiving an email claiming to be from your bank, requesting account verification with a deceptive link.</p><h3>3. Denial-of-Service (DoS) Attacks</h3><p>Attempts to make an online service unavailable by overwhelming it with excessive traffic.</p><p><strong>Example:</strong> An attacker floods an e-commerce website with unnecessary traffic, crashing its servers and preventing legitimate access.</p><h3>3. Man-in-the-Middle (MitM) Attacks</h3><p>An attacker secretly intercepts and possibly alters communication between two parties.</p><p><strong>Example:</strong> Public Wi-Fi hotspot used by attackers to intercept data exchanged between user devices and websites.</p><h3>4. SQL Injection Attacks</h3><p>Malicious SQL code is injected into input fields to manipulate or exploit database systems.</p><p><strong>Example:</strong> Injecting &#39; OR &#39;1&#39;=&#39;1 into a login form, bypassing authentication and gaining unauthorized access.</p><h3>5. Cross-Site Scripting (XSS)</h3><p>Injecting malicious scripts into trusted websites, affecting users accessing these compromised sites.</p><p><strong>Example:</strong> Posting a comment with embedded malicious JavaScript on a legitimate forum, compromising users’ browsers.</p><h3>5. Denial-of-Service (DoS) and Distributed Denial-of-Service (DDoS) Attacks</h3><p>Overwhelming a network or server with excessive traffic, making services inaccessible.</p><p><strong>Example:</strong> Flooding a website with simultaneous requests from thousands of compromised computers, causing downtime.</p><h3>6. Password Attacks</h3><p>Attempting to guess or crack passwords through various methods, such as brute force or dictionary attacks.</p><p><strong>Example:</strong> Attackers using software to rapidly guess weak passwords like ‘123456’ to gain unauthorized access.</p><h3>6. Zero-Day Exploits</h3><p>Attacks leveraging vulnerabilities unknown to developers or vendors, leaving no immediate solution available.</p><p><strong>Example:</strong> Attackers exploiting an unknown browser vulnerability to install spyware before a security patch is released.</p><h3>7. Cross-Site Request Forgery (CSRF)</h3><p>Tricking authenticated users into executing unwanted actions on web applications they are currently logged into.</p><p><strong>Example:</strong> Clicking a malicious link that automatically performs a bank transaction without the user’s consent.</p><h3>Conclusion</h3><p>Understanding these cybersecurity attacks helps users and organizations take proactive measures to protect their information and systems, enhancing their overall security posture.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64dd8d89a007" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Plan Screens, Components, and Modules for Your Angular Applications]]></title>
            <link>https://medium.com/@muthurajesh07rmr/how-to-plan-screens-components-and-modules-for-your-angular-applications-a8134e003c49?source=rss-77631ff802d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/a8134e003c49</guid>
            <category><![CDATA[create-module-in-angular]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[component-in-angular]]></category>
            <category><![CDATA[development-plan]]></category>
            <category><![CDATA[angular-development]]></category>
            <dc:creator><![CDATA[Muthurajesh]]></dc:creator>
            <pubDate>Mon, 17 Mar 2025 10:39:14 GMT</pubDate>
            <atom:updated>2025-03-17T10:39:14.396Z</atom:updated>
            <content:encoded><![CDATA[<p>When starting development on a feature in Angular, a clear plan for screens, components, and modules significantly impacts maintainability, scalability, and overall project success. In this guide, we’ll explore a practical, step-by-step approach to effectively planning your Angular application’s structure.</p><h3>Step 1: Analyze Your UI Screens</h3><p>Begin by thoroughly reviewing your provided UI screens. Carefully look for:</p><ul><li><strong>Repeated UI Elements:</strong> Buttons, headers, cards, input fields.</li><li><strong>Unique Elements:</strong> Modals, dialogs, notifications, forms.</li></ul><p><strong>Example Scenario:</strong> Imagine you’re developing a dashboard screen. Possible reusable elements you identify might include:</p><ul><li><strong>Navigation Header</strong></li><li><strong>User Profile Cards</strong></li><li><strong>Primary Action Buttons</strong> (Add, Save, Delete)</li></ul><h3>Step 2: Identify and Organize Reusable Components</h3><p>Reusable components streamline your development and encourage consistency across your app. Common examples include:</p><ul><li>HeaderComponent</li><li>ButtonComponent</li><li>CardComponent</li><li>InputComponent</li><li>ModalComponent</li></ul><p><strong>Folder Structure Example:</strong></p><pre>src/<br>├── app/<br>│   ├── shared/<br>│   │   ├── button/<br>│   │   ├── input/<br>│   │   ├── card/<br>│   │   ├── header/<br>│   │   └── modal/</pre><h3>Step 3: Define Smart vs Dumb Components</h3><p>Understanding the difference between <strong>Smart (Container)</strong> and <strong>Dumb (Presentational)</strong> components is vital:</p><p><strong>Smart Components (Containers):</strong></p><ul><li>Manage data retrieval (API calls, routing).</li><li>Handle state management.</li><li>Pass data down to dumb components.</li></ul><p><strong>Dumb Components (Presentational):</strong></p><ul><li>Receive inputs and emit events.</li><li>Purely presentational; have no direct dependency on external services.</li></ul><p><strong>Example:</strong></p><pre>// Smart component (DashboardContainer)<br>@Component({<br>  selector: &#39;app-dashboard-container&#39;,<br>  template: `<br>    &lt;app-dashboard-card<br>      [user]=&quot;currentUser&quot;<br>      (clicked)=&quot;handleCardClick($event)&quot;&gt;<br>    &lt;/app-dashboard-card&gt;<br>  `<br>})<br>export class DashboardContainer {<br>  currentUser = {...};<br>  <br>  handleCardClick(event: any) {<br>    // Handle event logic here<br>  }<br>}</pre><pre>// Dumb component (DashboardCard)<br>@Component({<br>  selector: &#39;app-dashboard-card&#39;,<br>  template: `&lt;div (click)=&quot;onClick()&quot;&gt;{{ user.name }}&lt;/div&gt;`<br>})<br>export class DashboardCard {<br>  @Input() user!: any;<br>  @Output() clicked = new EventEmitter&lt;void&gt;();</pre><pre>  onClick() {<br>    this.clicked.emit();<br>  }<br>}</pre><h3>Step 4: Modularize Your Application</h3><p>Angular encourages modularity for easier scaling, maintainability, and faster loading.</p><p>Typical Angular module breakdown:</p><ul><li><strong>CoreModule:</strong> For singleton services, layouts, and global guards.</li><li><strong>SharedModule:</strong> For commonly used components and utilities.</li><li><strong>Feature Modules:</strong> Each represents a specific functionality or feature.</li></ul><p><strong>Example Module Structure:</strong></p><pre>app/<br>├── core/<br>├── shared/<br>├── features/<br>│   ├── dashboard/<br>│   │   ├── dashboard.module.ts<br>│   │   ├── components/<br>│   │   ├── containers/<br>│   │   └── services/</pre><h3>Step 5: Clearly Define Component Inputs and Outputs</h3><p>Defining clear interfaces for components ensures easy integration and maintainability.</p><p><strong>Example:</strong></p><pre>&lt;!-- Parent Component Template --&gt;<br>&lt;app-user-card<br>  [user]=&quot;selectedUser&quot;<br>  (delete)=&quot;onDeleteUser($event)&quot;&gt;<br>&lt;/app-user-card&gt;</pre><p><strong>Component definition (UserCardComponent):</strong></p><pre>@Component({<br>  selector: &#39;app-user-card&#39;,<br>  template: `&lt;div&gt;{{ user.name }}&lt;button (click)=&quot;deleteUser()&quot;&gt;Delete&lt;/button&gt;&lt;/div&gt;`<br>})<br>export class UserCardComponent {<br>  @Input() user!: any;<br>  @Output() delete = new EventEmitter&lt;number&gt;();</pre><pre>  deleteUser() {<br>    this.delete.emit(this.user.id);<br>  }<br>}</pre><h3>Step 6: Plan Your Component Communication</h3><p>Choose your strategy based on how your components communicate:</p><ul><li><strong>Parent-Child:</strong> Use @Input and @Output.</li><li><strong>Sibling or unrelated components:</strong> Use services, RxJS subjects, or state management tools like NgRx.</li></ul><p><strong>Example with service-based communication:</strong></p><pre>@Injectable({ providedIn: &#39;root&#39; })<br>export class UserService {<br>  private selectedUser = new BehaviorSubject&lt;User | null&gt;(null);<br>  selectedUser$ = this.selectedUser.asObservable();</pre><pre>  selectUser(user: User) {<br>    this.selectedUser.next(user);<br>  }<br>}</pre><pre>// Component subscribes<br>export class UserProfileComponent {<br>  user!: User | null;</pre><pre>  constructor(private userService: UserService) {<br>    this.userService.selectedUser$.subscribe(user =&gt; this.user = user);<br>  }<br>}</pre><h3>Step 7: Leverage Angular Routing</h3><p>If your feature includes multiple screens, implement routing and lazy loading to enhance performance.</p><p><strong>Lazy-loaded Route Example:</strong></p><pre>const routes: Routes = [<br>  {<br>    path: &#39;users&#39;,<br>    loadChildren: () =&gt; import(&#39;./features/users/users.module&#39;).then(m =&gt; m.UsersModule)<br>  }<br>];</pre><h3>Step 8: Decide on State Management (Optional)</h3><p>For complex Angular applications, state management becomes crucial:</p><ul><li>Simple features can use local states or services.</li><li>For larger, complex applications, integrate NgRx, Akita, or NGXS for better state management.</li></ul><h3>Complete Example Structure:</h3><p>Here’s how your final Angular project structure might look after applying these principles:</p><pre>src/<br>├── app/<br>│   ├── core/<br>│   │   └── services/<br>│   ├── shared/<br>│   │   ├── button/<br>│   │   ├── header/<br>│   │   ├── modal/<br>│   │   └── pipes/<br>│   └── features/<br>│       └── products/<br>│           ├── products.module.ts<br>│           ├── components/<br>│           │   ├── product-card/<br>│           │   └── product-filter/<br>│           ├── containers/<br>│           │   ├── products-list/<br>│           │   └── product-details/<br>│           └── services/<br>│               └── product.service.ts</pre><h3>Quick Tips for Success:</h3><ul><li><strong>Document your plans clearly</strong>: Help your team understand your decisions.</li><li><strong>Collaborate with UI/UX teams early</strong>: Ensures your plan aligns with user expectations.</li><li><strong>Balance reusability and simplicity</strong>: Avoid too many or too few components.</li></ul><h3>Conclusion</h3><p>Careful planning of screens, components, and modules in Angular not only simplifies development but ensures maintainability and scalability. Following these structured steps will help you build robust, well-organized Angular applications efficiently.</p><p>Happy Coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a8134e003c49" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>