<?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 sidd on Medium]]></title>
        <description><![CDATA[Stories by sidd on Medium]]></description>
        <link>https://medium.com/@sidd1357924680?source=rss-d2a52801cc30------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by sidd on Medium</title>
            <link>https://medium.com/@sidd1357924680?source=rss-d2a52801cc30------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 23:37:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sidd1357924680/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[Best OS for developers]]></title>
            <link>https://medium.com/@sidd1357924680/best-os-for-developers-463b431aa545?source=rss-d2a52801cc30------2</link>
            <guid isPermaLink="false">https://medium.com/p/463b431aa545</guid>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[sidd]]></dc:creator>
            <pubDate>Fri, 20 Jun 2025 15:35:21 GMT</pubDate>
            <atom:updated>2025-06-20T15:35:21.610Z</atom:updated>
            <content:encoded><![CDATA[<p>Linux is often considered the best OS for developers for several compelling reasons:</p><p>🚀 1. Open Source &amp; Free</p><p>•	Transparency: You can inspect, modify, and customize everything.</p><p>•	Cost-effective: No licensing fees for the OS or most tools.</p><p>🔧 2. Powerful Command Line Interface (CLI)</p><p>•	Tools like bash, zsh, awk, sed, grep, etc., provide unmatched scripting and automation power.</p><p>•	Shell scripting simplifies repetitive tasks and workflows.</p><p>🐧 3. Better for Programming</p><p>•	Built-in support for multiple languages: C, C++, Python, Ruby, Java, Go, etc.</p><p>•	Package managers (like apt, dnf, pacman) make it easy to install dev tools and libraries.</p><p>•	Easier to build and compile software from source.</p><p>🌐 4. Ideal for Web &amp; Cloud Development</p><p>•	Most servers run Linux, so you’re working in the same environment.</p><p>•	Tools like Docker, Kubernetes, Ansible, etc., run natively and efficiently.</p><p>🧪 5. DevOps and System Programming Friendly</p><p>•	Gives direct control over system-level programming, kernel modules, networking, and hardware.</p><p>•	Ideal for embedded systems and IoT development.</p><p>🗃️ 6. Strong Community &amp; Documentation</p><p>•	Vast user base with active forums like Stack Overflow, Reddit, and GitHub.</p><p>•	Most open-source projects are built and tested on Linux.</p><p>🧩 7. Customizability</p><p>•	Lightweight desktop environments (XFCE, LXQt) are perfect for old or low-powered machines.</p><p>•	You can customize your OS experience entirely – from the UI to the kernel itself.</p><p>🖥️ 8. Virtualization and Containers</p><p>•	Native support for Docker, LXC, KVM, and QEMU.</p><p>•	Easier and faster testing across environments.</p><p>🔐 9. Security and Privacy</p><p>•	Linux is less prone to viruses and malware.</p><p>•	Developers have more control over permissions and access.</p><p>🧪 10. Preferred in Academia and Research</p><p>•	Many scientific and data-focused tools are built first for Linux (e.g., TensorFlow, PyTorch, R).</p><p>•	Ideal for research labs and simulation-heavy domains.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=463b431aa545" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Clean code best practises]]></title>
            <link>https://medium.com/@sidd1357924680/clean-code-best-practises-bd96b3dae426?source=rss-d2a52801cc30------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd96b3dae426</guid>
            <category><![CDATA[code-quality]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[code-review]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[code]]></category>
            <dc:creator><![CDATA[sidd]]></dc:creator>
            <pubDate>Mon, 16 Jun 2025 22:57:21 GMT</pubDate>
            <atom:updated>2025-06-16T23:12:15.402Z</atom:updated>
            <content:encoded><![CDATA[<p>Summary of best practises to be followed for clean code. These best practises are picked from the book Clean code : by Robert c martin.</p><h4>Core Philosophy</h4><p>•	Clean code is code that is easy to read, understand, and maintain.</p><p>•	It is crafted with care and intention, like a well-written essay.</p><p>•	“Leave the campground cleaner than you found it.” – Always improve code as you work.</p><h3>Key Principles &amp; Practices</h3><h4>Meaningful Names</h4><p>•	Choose names that reveal intent.</p><p>•	Avoid vague terms like data, tmp, or stuff.</p><p>•	Use pronounceable and searchable names.</p><p>•	Use consistent naming conventions.</p><h4>Functions</h4><p>•	Should be small and do one thing only.</p><p>•	Use descriptive names.</p><p>•	Avoid side effects.</p><p>•	Prefer fewer arguments (ideally ≤ 2).</p><h4>Comments</h4><p>•	Don’t use comments as a crutch for bad code.</p><p>•	Favor self-explanatory code.</p><p>•	Use comments to explain why, not what.</p><p>•	Remove obsolete or misleading comments.</p><h4>Formatting</h4><p>•	Use consistent indentation and spacing.</p><p>•	Organize code to enhance readability.</p><p>•	Group related functions together.</p><h4>Objects and Data Structures</h4><p>•	Use objects to hide implementation.</p><p>•	Prefer exposing behavior over data.</p><p>•	Avoid exposing internal structure.</p><h4>Error Handling</h4><p>•	Use exceptions, not return codes.</p><p>•	Handle errors at the appropriate level.</p><p>•	Avoid catching exceptions you can’t handle meaningfully.</p><h4>Boundaries</h4><p>•	Keep third-party code at arm’s length.</p><p>•	Wrap external APIs to reduce dependencies.</p><h4>Tests</h4><p>•	Clean code is well-tested.</p><p>•	Follow the FIRST principle:</p><p>•	Fast, Independent, Repeatable, Self-validating, Timely</p><p>•	Use descriptive test names.</p><p>•	Keep tests as clean as production code.</p><h4>Refactoring</h4><p>•	Continuously improve code structure without changing behavior.</p><p>•	Techniques:</p><p>•	Extract method</p><p>•	Rename variables</p><p>•	Remove duplication</p><p>•	Simplify logic</p><h4>Code Smells to Avoid</h4><p>•	Long functions</p><p>•	Large classes</p><p>•	Duplicate code</p><p>•	Magic numbers</p><p>•	Deep nesting</p><p>•	Inconsistent naming</p><h4>Final Takeaway</h4><p>“Clean code always looks like it was written by someone who cares.”</p><p>– Robert C. Martin</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd96b3dae426" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Jdk 24 features]]></title>
            <link>https://medium.com/@sidd1357924680/jdk-24-features-3866a8d30da7?source=rss-d2a52801cc30------2</link>
            <guid isPermaLink="false">https://medium.com/p/3866a8d30da7</guid>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[sidd]]></dc:creator>
            <pubDate>Sun, 15 Jun 2025 18:17:08 GMT</pubDate>
            <atom:updated>2025-06-15T18:17:08.999Z</atom:updated>
            <content:encoded><![CDATA[<p>New features</p><p>These are fully implemented and production-ready.</p><p>1	JEP 483: Ahead-of-Time Class Loading &amp; Linking (Project Leyden)</p><p>◦	Enables faster startup by pre-loading and linking classes into a cache, reducing runtime overhead. Builds on Application Class Data Sharing (AppCDS).</p><p>◦	Example: For a Spring PetClinic app, startup time drops from 4.486s (JDK 23) to 2.604s (JDK 24) with AOT cache.</p><p>◦	Benefit: Improves application startup, especially in cloud environments.</p><p>2	JEP 485: Stream Gatherers</p><p>◦	Finalizes the Stream Gatherers API (previewed in JDK 22/23) to support custom intermediate stream operations.</p><p>◦	Example:</p><p>import java.util.stream.*;</p><p>◦	Stream.of(1, 2, 3, 4)</p><p>◦ .gather(Gatherers.filter(x -&gt; x % 2 == 0))</p><p>◦ .forEach(System.out::println); // Outputs: 2, 4</p><p>◦</p><p>◦	Benefit: Enhances Stream API flexibility for complex data transformations.</p><p>3	JEP 486: Permanently Disable the Security Manager</p><p>◦	Removes the Security Manager, deprecated since JDK 17, as it’s rarely used and modern alternatives (e.g., containers) are more effective.</p><p>◦	Impact: Applications relying on Security Manager require re-architecture.</p><p>4	JEP 467: Class-File API</p><p>◦	Finalizes a standard API for parsing, generating, and transforming Java class files, reducing reliance on third-party libraries like ASM.</p><p>◦	Benefit: Simplifies bytecode manipulation with a native solution.</p><p>5	JEP 479: Remove the Windows 32-bit x86 Port</p><p>◦	Eliminates support for Windows 32-bit x86, simplifying JDK maintenance.</p><p>◦	Impact: Users must migrate to 64-bit systems.</p><p>6	JEP 493: Linking Run-Time Images without JMODs</p><p>◦	Allows jlink to create custom run-time images without JMOD files, reducing JDK size by ~25%.</p><p>◦	Note: Not enabled by default; vendor-dependent.</p><p>◦	Benefit: Optimizes container images in cloud deployments.</p><p>7	JEP 496: Quantum-Resistant Module-Lattice-Based Key Encapsulation Mechanism (ML-KEM)</p><p>◦	Introduces a quantum-resistant key encapsulation mechanism (FIPS 203, NIST-standardized).</p><p>◦	Benefit: Enhances security against future quantum attacks.</p><p>8	JEP 497: Quantum-Resistant Module-Lattice-Based Digital Signature Algorithm (ML-DSA)</p><p>◦	Implements a quantum-resistant digital signature algorithm (FIPS 204, NIST-standardized).</p><p>◦	Benefit: Secures data integrity and authentication.</p><p>9	JEP 501: Deprecate the 32-bit x86 Port for Removal</p><p>◦	Deprecates Linux 32-bit x86 port, targeting removal in JDK 25.</p><p>◦	Impact: Encourages migration to 64-bit or Zero port for 32-bit needs.</p><p>10	JEP 404: Generational Mode for Shenandoah GC</p><p>◦	Makes generational mode default for Shenandoah Garbage Collector, improving memory utilization and CPU efficiency.</p><p>◦	Benefit: Low-latency GC with better performance.</p><p>11	JEP 475: Late Barrier Expansion for G1</p><p>◦	Optimizes G1 Garbage Collector by delaying barrier expansion, reducing CPU and memory overhead.</p><p>◦	Benefit: Improves performance, especially in cloud environments.</p><p>12	JEP 491: Virtual Thread Improvements</p><p>◦	Enhances virtual threads (introduced in JDK 21) by allowing unmounting in synchronized methods, reducing pinning and improving scalability.</p><p>◦	Example: Virtual threads now handle monitors efficiently without pinning platform threads.</p><p>◦	Benefit: Boosts concurrency for thread-per-request models.</p><p>13	JEP 478: Key Derivation Function (KDF) API</p><p>◦	Introduces a standardized API for cryptographic key derivation (e.g., HKDF-SHA256, Argon2).</p><p>◦	Example:</p><p>import javax.crypto.KDF;</p><p>◦	KDF kdf = KDF.getInstance(“HKDF-SHA256&quot;);</p><p>◦	byte[] derivedKey = kdf.deriveKey(secret, salt, info, 32);</p><p>◦</p><p>◦	Benefit: Enables secure key generation in applications.</p><p>14	JEP 484: Remove Non-Generational Mode of ZGC</p><p>◦	Eliminates non-generational ZGC mode, as generational mode (default since JDK 23) is more efficient.</p><p>◦	Benefit: Reduces maintenance and improves GC performance.</p><p>Preview Features</p><p>These are complete but may change; enable with – enable-preview – source 24.</p><p>1	JEP 487: Scoped Values (Fourth Preview)</p><p>◦	Allows sharing immutable data within and across threads, simpler than ThreadLocal.</p><p>◦	Example:</p><p>import jdk.incubator.concurrent.ScopedValue;</p><p>◦	final ScopedValue USER = ScopedValue.newInstance();</p><p>◦	ScopedValue.where(USER, “Alice”).run(() -&gt; System.out.println(USER.get())); // Outputs: Alice</p><p>◦</p><p>◦	Benefit: Simplifies data passing in concurrent applications.</p><p>2	JEP 488: Primitive Types in Patterns, instanceof, and switch (Second Preview)</p><p>◦	Extends pattern matching to support primitive types in instanceof and switch.</p><p>◦	Example:</p><p>Object obj = 42;</p><p>◦	if (obj instanceof int i) {</p><p>◦ System.out.println(i); // Outputs: 42</p><p>◦	}</p><p>◦	switch (obj) {</p><p>◦ case int i -&gt; System.out.println(“Int: “ + i);</p><p>◦ default -&gt; System.out.println(“Other”);</p><p>◦	}</p><p>◦</p><p>◦	Benefit: Reduces casting and enhances expressiveness.</p><p>3	JEP 492: Flexible Constructor Bodies (Third Preview)</p><p>◦	Allows statements before super() or this() in constructors for better field initialization.</p><p>◦	Example:</p><p>class Employee extends Person {</p><p>◦ Employee(String name) {</p><p>◦ if (name == null || name.isBlank()) {</p><p>◦ throw new IllegalArgumentException(“Name cannot be empty”);</p><p>◦ }</p><p>◦ super(name);</p><p>◦ }</p><p>◦	}</p><p>◦</p><p>◦	Benefit: Improves constructor logic flexibility.</p><p>4	JEP 494: Module Import Declarations (Second Preview)</p><p>◦	Simplifies importing all packages exported by a module.</p><p>◦	Example:</p><p>import module java.sql;</p><p>◦	// Imports all public classes/interfaces in java.sql module</p><p>◦</p><p>◦	Benefit: Reduces import boilerplate for modular libraries.</p><p>5	JEP 495: Simple Source Files and Instance Main Methods (Fourth Preview)</p><p>◦	Allows writing Java programs without class declarations and supports instance main methods.</p><p>◦	Example:</p><p>void main() {</p><p>◦ System.out.println(“Hello, World!”);</p><p>◦	}</p><p>◦</p><p>◦	Benefit: Beginner-friendly, reduces boilerplate.</p><p>6	JEP 499: Structured Concurrency (Fourth Preview)</p><p>◦	Simplifies concurrent programming by treating groups of tasks as a single unit.</p><p>◦	Example:</p><p>import java.util.concurrent.StructuredTaskScope;</p><p>◦	try (var scope = new StructuredTaskScope.ShutdownOnFailure()) {</p><p>◦ var task1 = scope.fork(() -&gt; “Result1&quot;);</p><p>◦ var task2 = scope.fork(() -&gt; “Result2&quot;);</p><p>◦ scope.join();</p><p>◦ System.out.println(task1.get() + “, “ + task2.get());</p><p>◦	}</p><p>◦</p><p>◦	Benefit: Improves reliability in concurrent applications.</p><p>7	JEP 500: Markdown Documentation Comments</p><p>◦	Allows writing Javadoc comments in Markdown for easier readability.</p><p>◦	Example:</p><p>/**</p><p>◦ * # Method Description</p><p>◦ * This method does **something**.</p><p>◦ */</p><p>◦	void doSomething() {}</p><p>◦</p><p>◦	Benefit: Simplifies API documentation.</p><p>Experimental Features</p><p>These are under development; enable with -XX:+UnlockExperimentalVMOptions.</p><p>1	JEP 450: Compact Object Headers</p><p>◦	Reduces object header size in HotSpot VM from 96 – 128 bits to 64 bits on 64-bit systems.</p><p>◦	Benefit: Decreases heap size, improves data locality.</p><p>◦	Note: Experimental, not enabled by default.</p><p>2	JEP 404: Generational Shenandoah GC</p><p>◦	Introduces generational mode for Shenandoah GC, splitting memory into young and old generations.</p><p>◦	Benefit: Enhances memory efficiency while maintaining low pause times.</p><p>Incubator Feature</p><p>This is experimental and may evolve significantly.</p><p>1	JEP 489: Vector API (Ninth Incubator)</p><p>◦	Optimizes vector computations for CPU vector instructions.</p><p>◦	Example:</p><p>import jdk.incubator.vector.*;</p><p>◦	float[] a = {1, 2, 3, 4};</p><p>◦	float[] b = {5, 6, 7, 8};</p><p>◦	VectorSpecies species = FloatVector.SPECIES_128;</p><p>◦	FloatVector va = FloatVector.fromArray(species, a, 0);</p><p>◦	FloatVector vb = FloatVector.fromArray(species, b, 0);</p><p>◦	FloatVector vc = va.add(vb);</p><p>◦	vc.intoArray(a, 0); // a = {6, 8, 10, 12}</p><p>◦</p><p>◦	Benefit: Boosts performance for numerical computations.</p><p>Key Observations</p><p>•	Performance: Features like AOT Class Loading (JEP 483), Compact Object Headers (JEP 450), and Late Barrier Expansion (JEP 475) target faster startup and runtime efficiency, especially for cloud and microservices.</p><p>•	Security: Quantum-resistant cryptography (JEPs 496, 497) prepares Java for post-quantum security needs.</p><p>•	Developer Productivity: Simple Source Files (JEP 495), Module Imports (JEP 494), and Stream Gatherers (JEP 485) reduce boilerplate and enhance expressiveness.</p><p>•	Modernization: Removal of outdated features (Security Manager, 32-bit ports) and ZGC non-generational mode streamlines the platform.</p><p>•	Preview Features: Many (e.g., Scoped Values, Structured Concurrency) are in their fourth preview, indicating maturity and likely finalization in JDK 25 (LTS, September 2025).</p><p>Compatibility Notes</p><p>•	Applications using the Security Manager or 32-bit x86 ports face migration challenges.</p><p>•	Preview features require explicit enabling and may change or be removed (e.g., String Templates were dropped from JDK 23/24).</p><p>•	Check Oracle’s JDK 24 Release Notes for detailed compatibility issues.</p><p>How to Use</p><p>•	Download: Available from Oracle (openjdk.org) or vendors like Azul, Adoptium.</p><p>•	Preview Features: Compile with javac – enable-preview – source 24 and run with java – enable-preview.</p><p>•	Experimental Features: Use -XX:+UnlockExperimentalVMOptions with specific flags (e.g., -XX:+UseCompactObjectHeaders for JEP 450).</p><p>•	IntelliJ IDEA Support: Fully supports JDK 24 with smart assistance for preview features.</p><p>What’s Next?</p><p>JDK 24 is a non-LTS release with six months of support until JDK 25 (LTS) arrives in September 2025. Many preview features (e.g., Scoped Values, Structured Concurrency) are expected to finalize in JDK 25, alongside potential Project Valhalla advancements.</p><p>For detailed exploration, refer to:</p><p>•	Oracle’s JDK 24 Release Notes:</p><p>•	OpenJDK JEP Index:</p><p>•	JavaOne 2025 for AI and post-quantum crypto insights:</p><p>This summary leverages insights from InfoWorld, Azul, Oracle, and other sources to provide a comprehensive yet concise overview.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3866a8d30da7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spring Boot 3.0 : What’s new]]></title>
            <link>https://medium.com/@sidd1357924680/spring-boot-3-0-whats-new-36dbda659a86?source=rss-d2a52801cc30------2</link>
            <guid isPermaLink="false">https://medium.com/p/36dbda659a86</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[sidd]]></dc:creator>
            <pubDate>Mon, 09 Jan 2023 05:38:01 GMT</pubDate>
            <atom:updated>2023-01-09T05:38:01.900Z</atom:updated>
            <content:encoded><![CDATA[<p>Native Build Tools</p><p>Spring Boot requires Native Build Tools Plugin 0.9.17 or later</p><p>Java</p><p>Spring Boot requires Java 17 as a min base version.</p><p>Need to upgrade JD before you can develop Spring Boot 3.0 applications, if you are currently using Java 8 or Java 11.</p><p>Third-party Library Upgrades</p><p>Spring Boot 3.0 requires and build on Spring Framework 6.</p><p>GraalVM Baseline</p><p>Spring Boot requires Graal 22.3 or later</p><p>Log4÷2</p><p>Log4j2 support has been updated with new extensions.</p><p>GraalVM Native Image Support</p><p>Spring Boot 3.0 applications can now be converted into GraalVM native images which can provide significant memory and startup-up performance improvements.</p><p>Spring Data updates</p><p>The auto-configuration now more flexible</p><p>Several beans are now conditional and can be replaced by defining a bean of the same type.</p><p>Elasticsearch Java Client</p><p>New Auto-configuration Client introduced using the existing spring. elasticsearch.* configuration properties.</p><p>Micrometer Updates</p><p>Supports new observation APIs which is used to create observations providing a single API for both metrics and traces.</p><p>Micrometer’s JvmCompilationMetrics are now auto-configured.</p><p>Spring Boot Test</p><p>@SpringBootTest annotation can use main of any discovered class</p><p>Any custom SpringApplication configuration performed by your main method can now be picked up by tests.</p><p>Miscellaneous</p><p>Host names are no longer logged during application startup preventing a network lookup, thereby improving startup times.</p><p>Java’s SecurityManager Support removed.</p><p>Spring Framework’s CommonsMultipartResolver Support removed.</p><p>DiskSpaceHealthIndicator includes path in log message and health details.</p><p>Multiple hosts configuration available for MongoDB</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36dbda659a86" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>