<?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 Luxmikaran on Medium]]></title>
        <description><![CDATA[Stories by Luxmikaran on Medium]]></description>
        <link>https://medium.com/@luxmikaran75?source=rss-8317b1af30e3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*YZ2KTqHRTRYi8jMy</url>
            <title>Stories by Luxmikaran on Medium</title>
            <link>https://medium.com/@luxmikaran75?source=rss-8317b1af30e3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 16:18:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@luxmikaran75/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[Amazon RedShift Cloud Service]]></title>
            <link>https://medium.com/@luxmikaran75/amazon-redshift-cloud-service-6c674b42cef8?source=rss-8317b1af30e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c674b42cef8</guid>
            <dc:creator><![CDATA[Luxmikaran]]></dc:creator>
            <pubDate>Thu, 07 Mar 2024 01:29:13 GMT</pubDate>
            <atom:updated>2024-03-07T01:29:13.376Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*8JAKMgqPogABehKfozS_Gg.png" /></figure><p>Amazon Web Services (AWS) is the first public cloud provider to deliver cloud-based petabyte-scale data warehousing services. Amazon Redshift is the most popular cloud data warehouse.</p><p>Amazon counts thousands of businesses among its clients. Nonetheless, competition in this industry is heating up, with Google Big Query, Snowflake, and Oracle Automation Data Warehouse all vying for a piece of the expanding cloud data warehouse market.</p><p>Amazon Redshift has been around since 2013 and has seen various improvements. Amazon Redshift Spectrum, AWS Athena, and Amazon S3, the omnipresent, massively scalable data storage solution, complement Amazon Redshift by providing all of the technologies required to build an enterprise-scale data warehouse or lake.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z1O0SdQQwuTtojtAW2zdZg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*_CpL99bw_loj4pZoCjwoaw.png" /></figure><p>The components of the Amazon Redshift architecture, are designed to scale out and handle a large amount of workloads. It consists of a cluster that contains multiple nodes, each with its own disk drives, CPU cores, and memory. The nodes work together in a distributed fashion to query and retrieve data from the system.</p><p>1. Leader Node: The leader node is responsible for managing the cluster, receiving client requests, and translating them into SQL statements to be executed by compute nodes. It also handles authentication and authorization of client requests.</p><p>2. Compute Nodes: Compute nodes are the actual data processing units. They contain disk drives with storage capacity and CPU cores that can be used to process queries.</p><p>3. Storage Nodes: Storage nodes manage the disk drives in a cluster. They store data in columnar format, which provides faster query performance than traditional row-based storage databases.</p><p>4. Network Interface: The network interface connects the cluster to the internet and other systems.</p><h3>Steps to Setting up Redshift</h3><p>To set up Redshift, follow the steps below:</p><p>1. Create an AWS account:</p><p>Go to the Amazon Web Services homepage and create an account.</p><p>2. Choose a cluster type:</p><p>Decide which type of Redshift cluster you need based on your data volume and query workload.</p><p>3. Configure the settings:</p><p>Adjust the settings for your clusters, such as storage, networking, security, backups, and other options.</p><p>4. Launch the cluster:</p><p>Once you’ve configured your settings, launch your Redshift cluster.</p><p>5. Connect to the database:</p><p>Connect to the Redshift cluster with SQL workbench or other compatible tools.</p><p>6. Manage data and run queries:</p><p>Load data into the database and run queries against it.</p><p>7. Monitor cluster performance:</p><p>Monitor your cluster’s performance over time to ensure optimal performance.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c674b42cef8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[mongod, mongo, mongos, mongosh]]></title>
            <link>https://medium.com/@luxmikaran75/mongod-mongo-mongos-mongosh-e072d4c287b6?source=rss-8317b1af30e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/e072d4c287b6</guid>
            <dc:creator><![CDATA[Luxmikaran]]></dc:creator>
            <pubDate>Mon, 26 Feb 2024 01:20:34 GMT</pubDate>
            <atom:updated>2024-02-26T01:21:25.297Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*RhXY0cc2N4uf4vt-Ckcglg.png" /></figure><h3>mongod</h3><p>No, mongod is not some kind of database deity. In fact, it&#39;s usually pronounced <em>mongo-dee</em> and it&#39;s the MongoDB daemon, also known as the <em>server</em> for MongoDB. If you don&#39;t start your server you have no cluster and then, well, you got nothing. You run mongod to start your server.</p><p>The MongoDB server listens for connections from clients on port 27017, and stores data in the /data/db directory when you use mongod. However, you can start your MongoDB server with different parameters if required:</p><p>mongod --port 12345 --dbpath /srv/mongodb/</p><p>That said, MongoDB Atlas runs mongod for you, so you don&#39;t need to run the server yourself. It&#39;s just useful to know from an architectural perspective at this stage especially as it might pop up in training.</p><p>The MongoDB daemon process that you start with mongod (or that MongoDB Atlas starts for you) manages your data access and any requests you might make such as <em>add this</em>, <em>query that</em>, or <em>change that</em>.</p><h3>mongo and mongosh</h3><p>So what is mongo? It&#39;s the shell, it&#39;s the client, it&#39;s a javascript interface that you can use to interact with the MongoDB server ( <em>mongod</em>). For example:</p><p>mongo --host mongodb0.example.com:27017</p><p>However, as of <a href="https://www.mongodb.com/blog/post/introducing-the-new-shell">June 2020</a>, it was superseded by the new Mongo Shell, called, wait for it, <em>mongo</em><strong><em>sh</em></strong>! Bold for emphasis, it genuinely took me more than a few seconds to realise why it was called mongosh - you&#39;re welcome. mongosh has improved syntax highlighting, command history and logging in case you were wondering! For example:</p><p>mongosh --host mongodb0.example.com:27017</p><p>When should you use mongo or mongosh? If you are able, you should run mongosh when you want to interact or change the data. Of course, if you prefer you can still use mongo but you won&#39;t get the new features introduced in the newer MongoDB shell ( mongosh). Don&#39;t forget that the shell, whichever you use, is just a way to communicate with your database cluster.</p><h3>mongos</h3><p>So that’s the daemon, or server, for MongoDB covered and two client options, that just leaves mongos for this blog post. This does not spin up multiple MongoDB clients, sadly. It&#39;s just a proxy that sits between the client application ( mongo/ mongosh) and a <strong>sharded</strong> database cluster, that is multiple mongod replica sets.</p><p>It’s what your clients ( mongo or mongosh) interact with when you run queries against sharded data. It does not replace your database server, it is in addition to. You need to point it at your replica sets, for example:</p><p>mongos --configdb cfg/127.0.0.1:27017</p><p>Now your first question should be <em>why do I even need a proxy between my client and server just because my data is sharded?</em> That is an excellent question! You need mongos to route the queries and any write operations to the shard(s) as required.</p><p>The mongos proxy is a map that your client can use to query or make changes in your cluster when your data is sharded. This in-between proxy is required because your cluster doesn&#39;t know which shard(s) that data exists on, but the mongos proxy does. It also knows which shard to insert data into, if that&#39;s your requirement.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e072d4c287b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Important Of Hashing And Sa]]></title>
            <link>https://medium.com/@luxmikaran75/the-important-of-hashing-and-sa-6ec50edfd73a?source=rss-8317b1af30e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ec50edfd73a</guid>
            <dc:creator><![CDATA[Luxmikaran]]></dc:creator>
            <pubDate>Mon, 26 Feb 2024 00:57:39 GMT</pubDate>
            <atom:updated>2024-02-26T00:57:39.128Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Important Of Hashing And Salting</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9RG9EAAWzsLfRt6OTfCldw.png" /></figure><h3>Why We Should Not Store Plain-Text Passwords</h3><p>A strong rule to follow when securing an application, is to not store passwords in plain-text. This means that if a hacker were to gain access to your database, they would be able to see all of the passwords in plain-text. This would give them free reign over any accounts that use those passwords.</p><p>If a company stores passwords as plain-text, it also means that any developer that has access to the database, can also see the passwords. While most developers are trustworthy, there is always the possibility that one could maliciously use this information.</p><h3>What is a Hash Function?</h3><p>A hash function is a mathematical algorithm that takes data and converts it into a fixed-size output. This output is known as a hash value. Hash functions are key to securing passwords. The output of a hash function can not be reversed to get the input. Therefore, if a hacker were to gain access to your database, they would only see the hash values and not the actual passwords.</p><p>However, putting the same input into a hash function always returns the same hash value, allowing an application to verify that a given password is correct.</p><p>The following code snippet demonstrates how a hash function works:</p><pre>function hashFunc() {// the hash function’s logic to transform the input into the hash   value}let input = ‘password’;let hashedPassword = hashFunc(input);console.log(hashedPassword) // “23k17dshqnplsaif”</pre><h3>What is Salting?</h3><p>Salting is a concept that typically pertains to password hashing. Essentially, it’s a unique value that can be added to the end of the password to create a different hash value. This adds a layer of security to the hashing process, specifically against brute force attacks. A brute force attack is where a computer or botnet attempt every possible combination of letters and numbers until the password is found.</p><p>Anyway, when salting, the additional value is referred to as a “salt.”</p><p>The idea is that by adding a salt to the end of a password and then hashing it, you’ve essentially complicated the password cracking process.</p><p>Let’s look at a quick example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/0*l-5CYftwQqPobqPA.png" /></figure><p>Say the password I want to salt looks like this:</p><pre>7X57CKG72JVNSSS9</pre><p>Your salt is just the word SALT</p><p>Before hashing, you add SALT to the end of the data. So, it would look like this:</p><pre>7X57CKG72JVNSSS9SALT</pre><p>The hash value is different than it would be for just the plain unsalted password. Remember, even the slightest variation to the data being hashed will result in a different unique hash value. By salting your password you’re essentially hiding its real hash value by adding an additional bit of data and altering it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ec50edfd73a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using FlatMap]]></title>
            <link>https://medium.com/@luxmikaran75/using-flatmap-9825e9bace5b?source=rss-8317b1af30e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/9825e9bace5b</guid>
            <dc:creator><![CDATA[Luxmikaran]]></dc:creator>
            <pubDate>Mon, 19 Feb 2024 02:05:23 GMT</pubDate>
            <atom:updated>2024-02-19T02:05:23.158Z</atom:updated>
            <content:encoded><![CDATA[<ol><li><strong>Using FlatMap</strong></li></ol><p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flatMap">Flat Map in javascript is a great technique which you can learn here</a>. Flat map essentially conbines techniques of map and filter Array method into one. I will suggest you to use flatMap() over combination of filter() and map().</p><blockquote><em>FlatMap takes single pass and doesn’t produce intermediate array but filter ()and map() combination produces an intermediate array.</em></blockquote><pre>// using filterAndMap<br>console.time(&quot;filterAndMap&quot;)<br>const numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];</pre><pre>const squaredOddNumbers = numbers<br>    .filter(num =&gt; num % 2 !== 0)<br>    .map(num =&gt; num * num)</pre><pre>console.log(squaredOddNumbers); // [1, 9, 25, 49, 81]<br>console.timeEnd(&quot;filterAndMap&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/470/0*dy0rGPs2nU5_KRyz.png" /></figure><p>using filter and Map</p><pre>console.time(&quot;filterAndMap&quot;)<br>const numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];</pre><pre>const squaredOddNumbers = numbers.flatMap(num =&gt; <br>    num % 2 !== 0 ? [num * num] : []<br>);<br></pre><pre>console.log(squaredOddNumbers); // [1, 9, 25, 49, 81]<br>console.timeEnd(&quot;filterAndMap&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/0*4L1JynN-xuOtDkWY.png" /></figure><p>using FlatMap</p><p><strong>2. Order of Array methods</strong></p><p>Array method are some of the most important methods that helps us to interact with an array. There are many array methods in javascript. Most popular array methods are <strong>.filter(), .find(), .map(), .reduce()</strong>. They can be merged together to produce some wonderful patterns like these</p><pre>// a array methods that sorts only the array <br>// for only odd numbers and raises it by power of 3<br>numbers<br>  .sort((a, b) =&gt; a - b)<br>  .filter((n) =&gt; n % 2 !== 0)<br>  .map((n) =&gt; n ** 3);</pre><p>In a glance, the program above looks nice right but here is a big problem. Notice how we sorted for numbers 1st and then we moved on to filter right. We could have done <strong>less task if we used filter 1st and then sort and raise the power</strong>. This way, we can optimize a group of array methods chanined by (.)</p><p>The optimal code for above is</p><pre>const numbers = [9, 3, 6, 4, 8, 1, 2, 5, 7];</pre><pre>// a array methods that sorts only the array<br>// for only odd numbers and raises it by power of 3<br>numbers<br>  .filter((n) =&gt; n % 2 !== 0)<br>  .sort((a, b) =&gt; a - b)<br>  .map((n) =&gt; n ** 3);</pre><p><strong>3. Not using reduce enough.</strong></p><p>I have seen this problem with a lot of frontend developers. While a package like react-charts asks data in object like structure and but the implementation of react-charts asks data in a format grouped by a key so I have seen most developers using .forEach() method or incorectly using map() method like these</p><pre>fetch(&quot;https://jsonplaceholder.typicode.com/todos/&quot;)<br>  .then(res=&gt;res.json())<br>  .then(todos=&gt;{<br>    <br>    // using Map<br>    const todosForUserMap = {};<br>    todos.forEach(todo=&gt;{<br>      if (todosForUserMap[todo.userId]){<br>        todosForUserMap[todo.userId].push(todo);  <br>      }else{<br>        todosForUserMap[todo.userId] = [todo];<br>      }  <br>    })</pre><pre>    console.log(todosForUserMap)<br>  })</pre><p>This method here is good as it uses forEach method and not map method. Map method is clearly not to be used here as an array will be build for each of the elements behind the scene. Lets say if array if of 1000 entries then a 1000 entries null array will be created in map, this creation of array will not happen in forEach()</p><p>Instead of using any of the methods shown above, a rather clean and readable approach would have been to use <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce"><strong>Array reduce method</strong></a> the above code is now corrected as</p><pre>fetch(&quot;https://jsonplaceholder.typicode.com/todos/&quot;)<br>  .then(res=&gt;res.json())<br>  .then(todos=&gt;{<br>    <br>    // using Map<br>    const todosForUserMap = todos.reduce((accumulator, todo)=&gt;{<br>      if (accumulator[todo.userId]) accumulator[todo.userId].push(todo);<br>      if (!accumulator[todo.userId]) accumulator[todo.userId] = [todo];<br>      return accumulator;<br>    },{})</pre><pre>    console.log(todosForUserMap)<br>  })</pre><p>This doesn’t create any unnecessary arrays and is much cleaner and is better to use. It is as similar to forEach() but I will suggest this as it is more cleaner and easier to understand.</p><p><strong>4. Not using Generators enough</strong></p><p>Generators and Iterators are probably among those peice of code a javascript developers doesn’t use and its knowledge is only limited to coding interview. In data fetching scenario, the data can be unlimited in the database/API in huge volume and you will have to stream it in the frontend. In this case, the most used solution in react is the <strong>infinite loading solution.</strong></p><blockquote><em>How would you implement infinite loading like feature in nodejs server or vanilla javascript ?</em></blockquote><p>This is where iterators are really useful. Instead of streaming the flood of data in request in local storage or some places where you can retrieve for later uses. This is one of the methods of doing so using async generators. By this way we can solve infinite loading like problem in JS.</p><pre>async function *fetchProducts(){<br>  while (true){<br>    const productUrl = &quot;https://fakestoreapi.com/products?limit=2&quot;;<br>    const res = await fetch(productUrl)<br>    const data = await res.json()<br>    yield data;<br>    // manipulate the UI here like <br>    // or save it in DB or somewhere else<br>    // use it as a side effect place<br>    // even if some condition matches, break the flow<br>  }<br>}</pre><pre>async function main() {<br>  const itr = fetchProducts();<br>  // this should be called based on user interaction<br>  // or other tricks as you don&#39;t want inifinite loading.<br>  console.log( await itr.next() );<br>}</pre><pre>return main()</pre><p><strong>5. Not using native Javascript classes enough</strong></p><p>Javascript comes pack with native javascript classes that can help you create/instantiate things like URL, Headers, etc pretty easily. We might have seen someone trying to query params in URL like this.</p><pre>async function getUrl(userId, limit, category){<br>  return `https://fakestoreapi.com/products${category ? `/category/${category}` : &quot;&quot;}${limit ? Number(limit):&quot;&quot;}${userId? Number(userId):&quot;&quot;}`;    <br>}</pre><p>The code above is messy and is likely to break and will require you to add some rule in the end each time, some other parameter is to be added, by using the native class like <strong>URL </strong>we can improve our code. Improved code looks like this.</p><pre>function constructURL(category, limit, userId) {<br>  const baseURL = &quot;https://fakestoreapi.com/products&quot;;<br>  const url = new URL(baseURL);<br>  const params = new URLSearchParams();</pre><pre>  if (category) url.pathname += `/category/${category}`;<br>  if (limit) params.append(&#39;limit&#39;, Number(limit).toString());<br>  if (userId) params.append(&#39;userId&#39;, Number(userId).toString());</pre><pre>  url.search = params.toString();<br>  return url.toString();<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9825e9bace5b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript OOP Performances]]></title>
            <link>https://medium.com/@luxmikaran75/javascript-oop-performances-42a5d565b34d?source=rss-8317b1af30e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/42a5d565b34d</guid>
            <dc:creator><![CDATA[Luxmikaran]]></dc:creator>
            <pubDate>Sun, 11 Feb 2024 16:45:54 GMT</pubDate>
            <atom:updated>2024-02-11T16:45:54.644Z</atom:updated>
            <content:encoded><![CDATA[<p>I have been watching parts of [Douglas Crockford’s talks on the history and future of Javascript](http://yuiblog.com/crockford/). In his third talk Douglas talks about functions. If you are somewhat familiar with Javascript you know that functions are, somewhat oddly, used to create new objects. The original “intended” way (which Douglas calls the _pseudo-classical_ way) of doing this is as follows:<br>~~~~~~~<br>function Person(name, age) {<br>this.name = name;<br>this.age = age;<br>}</p><p>Person.prototype.getNameAndAge = function() {<br>return “Name: “ + this.name + “ and age: “ + this.age;<br>};</p><p>var p = new Person(“Zef Hemel”, 26);<br>console.log(p.getNameAndAge());<br>~~~~~~~</p><p>What we do here is define a constructor function `Person`, which starts with a capital P, to indicate that it should be used in conjunction with the `new` operator, as demonstrated in the second last line. The second statement adds a method to the `Person` prototype, which in practice makes that method available to all `Person` objects (including ones already created). The last two statements instantiate a `Person` object and calls the `getNameAndAge` method.</p><p>Using this mechanism you can also implement inheritance. Let’s introduce a `LivingBeing` “super class”, which has an `age` property:<br>~~~~~~~<br>function LivingBeing(age) {<br>this.age = age;<br>}</p><p>LivingBeing.prototype.getAge = function() {<br>return this.age;<br>};<br>~~~~~~~</p><p>Alright, now we’ll define the `Person` contructor again, but assign a new instance of `LivingBeing` to its prototype, which will add all fields and methods available in `LivingBeing` to all `Person` objects (again, including existing ones). Then, we add an additional method to `Person` objects: `getNameAndAge`:</p><p>~~~~~~~<br>function Person(name, age) {<br>this.name = name;<br>this.age = age;<br>}</p><p>Person.prototype = new LivingBeing();</p><p>Person.prototype.getNameAndAge = function() {<br>return “Name: “ + this.name + “ and age: “<br>+ this.getAge();<br>};</p><p>var p = new Person(“Zef Hemel”, 26);<br>console.log(p.getNameAndAge());<br>~~~~~~~<br>For more information on how inheritance and prototypes work, read [this excellent page in the Mozilla documentation](https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/Details_of_the_Object_Model).</p><p>Now, Crockford suggests that there is a nicer, cleaner and more natural way to do object-oriented programming and inheritance in Javascript, which he calls _functional inheritance_. The functional-inheritance style version of the above program looks as follows:<br>~~~~~~~~<br>function livingBeing(age) {<br>return {<br>getAge: function() {<br>return age;<br>}<br>};<br>}</p><p>function person(name, age) {<br>var that = livingBeing(age);<br>that.getNameAndAge = function() {<br>return “Name: “ + name + “ and age: “ + that.getAge();<br>};<br>return that;<br>}</p><p>var p = person(“Zef Hemel”, 26);<br>console.log(p.getNameAndAge());</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=42a5d565b34d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript Techniques]]></title>
            <link>https://medium.com/@luxmikaran75/javascript-techniques-8d829ff3900a?source=rss-8317b1af30e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d829ff3900a</guid>
            <dc:creator><![CDATA[Luxmikaran]]></dc:creator>
            <pubDate>Sun, 11 Feb 2024 16:39:34 GMT</pubDate>
            <atom:updated>2024-02-11T16:39:34.833Z</atom:updated>
            <content:encoded><![CDATA[<p>JavaScript, the language of the web, has evolved significantly over the years. As a developer, staying up-to-date with modern practices is crucial for writing efficient and maintainable code. With experience comes the realization that some techniques once considered standard are now outdated and better alternatives are available. In this article, we’ll explore ten outdated JavaScript techniques I abandoned in favor of more modern approaches.</p><h3>1. Using var for Variable Declarations</h3><p>In the past, we used var for variable declarations, but it had scope issues and lacked block-level scoping. Nowadays, we use let and const for better scoping control.</p><pre>// Outdated<br>var x = 10;</pre><pre>// Modern<br>let y = 20;<br>const z = 30;</pre><h3>2. Callback Hell: Nested Callbacks</h3><p>Callback hell, also known as the pyramid of doom, made code unreadable and challenging to maintain. Now we favor Promises and async/await for cleaner asynchronous code.</p><pre>// Outdated<br>doSomething(function(result1) {<br>    doSomethingElse(result1, function(result2) {<br>        doAnotherThing(result2, function(result3) {<br>            // ...<br>        });<br>    });<br>});</pre><pre>// Modern<br>async function example() {<br>    const result1 = await doSomething();<br>    const result2 = await doSomethingElse(result1);<br>    const result3 = await doAnotherThing(result2);<br>    // ...<br>}</pre><h3>3. Manual DOM Manipulation</h3><p>In the past, we used to manipulate the DOM manually. Nowadays, libraries like jQuery have been largely replaced by modern DOM APIs and frameworks like React and Vue.js.</p><pre>// Outdated<br>document.getElementById(&#39;myElement&#39;).innerHTML = &#39;Hello, World!&#39;;</pre><pre>// Modern<br>const element = document.querySelector(&#39;#myElement&#39;);<br>element.textContent = &#39;Hello, World!&#39;;</pre><h3>4. Global Variables</h3><p>Declaring variables in the global scope was a common practice, but it led to naming conflicts and made code harder to maintain. Now we encapsulate variables within functions or modules.</p><pre>// Outdated<br>var globalVar = 42;</pre><pre>// Modern<br>function exampleFunction() {<br>    let localVar =…</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d829ff3900a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Binance]]></title>
            <link>https://medium.com/@luxmikaran75/binance-e31a845eb88b?source=rss-8317b1af30e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/e31a845eb88b</guid>
            <dc:creator><![CDATA[Luxmikaran]]></dc:creator>
            <pubDate>Sun, 04 Feb 2024 23:24:09 GMT</pubDate>
            <atom:updated>2024-02-04T23:24:09.842Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*zzYVuQTOPRSSr5RUDyF-cg.jpeg" /></figure><p>In the ever-evolving world of cryptocurrencies, the need for efficient and user-friendly platforms for trading has become paramount. Binance, one of the leading cryptocurrency exchanges globally, has taken a significant step towards meeting this demand with its mobile application. In this article, we will delve into the Binance app, exploring its features, security measures, and the overall user experience.</p><ol><li>Installation and Setup: The first step in accessing the world of cryptocurrency trading through the Binance app is installing it on your mobile device. The app is available for both iOS and Android platforms, ensuring accessibility for a broad user base. Once installed, users are guided through a seamless setup process that includes account creation, security settings, and two-factor authentication for an added layer of protection.</li><li>User Interface and Navigation: Binance has designed its app with a user-centric approach, offering an intuitive interface for both beginners and experienced traders. The home screen provides a snapshot of market trends, account balances, and recent transactions. Navigating through various sections such as spot trading, futures trading, and wallet management is smooth and straightforward, allowing users to swiftly execute trades and monitor their portfolios.</li><li>Trading Features: The Binance app is equipped with a comprehensive set of trading features. Users can execute market orders, limit orders, and stop-limit orders with just a few taps. The app also provides real-time price charts, historical data, and technical indicators, empowering traders with the tools needed for informed decision-making. Additionally, the seamless integration of Binance’s spot and futures trading platforms ensures a holistic trading experience.</li><li>Security Measures: Security is a top priority in the cryptocurrency space, and Binance has implemented robust measures to safeguard user assets. The app incorporates two-factor authentication, device verification, and biometric authentication options, such as fingerprint and face recognition. Users can also set withdrawal whitelist addresses and enable anti-phishing codes to further enhance the security of their accounts.</li><li>Market Information and Research: Staying informed is key in the dynamic world of cryptocurrency trading. The Binance app offers a variety of features for market analysis, including real-time price tracking, news updates, and customizable watchlists. Traders can access detailed information about each listed cryptocurrency, facilitating research and informed decision-making.</li><li>Customer Support and Education: Binance recognizes the importance of customer support and education. The app provides access to a comprehensive knowledge base and frequently asked questions (FAQs). Additionally, users can reach out to Binance’s customer support directly through the app for assistance with any queries or concerns.</li><li>Conclusion: The Binance app stands as a testament to the evolution of cryptocurrency trading platforms, providing users with a powerful and user-friendly tool for trading on the go. With its robust security measures, intuitive interface, and comprehensive set of features, the Binance app caters to both novice and experienced traders, empowering them to navigate the complex world of cryptocurrencies with confidence. As the crypto landscape continues to evolve, Binance remains at the forefront, setting the standard for mobile cryptocurrency trading applications.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e31a845eb88b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Photoshop]]></title>
            <link>https://medium.com/@luxmikaran75/photoshop-2c31969652d3?source=rss-8317b1af30e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/2c31969652d3</guid>
            <dc:creator><![CDATA[Luxmikaran]]></dc:creator>
            <pubDate>Sun, 04 Feb 2024 15:43:29 GMT</pubDate>
            <atom:updated>2024-02-04T15:43:29.935Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*Yw8nfTJg3piApnnSA2u8Ig.jpeg" /></figure><p>Introduction: In the ever-evolving world of digital media, mastering powerful tools like Adobe Photoshop has become essential for professionals and enthusiasts alike. Photoshop is a versatile and feature-rich software that empowers users to manipulate, enhance, and create stunning visual content. Whether you’re a graphic designer, photographer, or simply someone eager to explore the world of digital creativity, this comprehensive guide will help you navigate the vast capabilities of Photoshop.</p><p>I. Understanding the Basics: Before diving into the more advanced features of Photoshop, it’s crucial to grasp the basics. Familiarize yourself with the user interface, tools, and essential functions such as layers, masks, and selections. Adobe provides a plethora of tutorials and online resources to help beginners get started.</p><p>II. Image Editing Techniques: Photoshop is renowned for its powerful image editing capabilities. Learn how to retouch photos, adjust colors, and enhance details using tools like the Clone Stamp, Healing Brush, and Dodge/Burn. Mastering these techniques will enable you to transform ordinary photos into visually stunning works of art.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*dBTckwMfNWOtiavHtpK3Hw.png" /></figure><p>III. Working with Layers: Layers are at the heart of Photoshop’s functionality. Understanding how to manipulate layers allows you to stack, organize, and blend different elements seamlessly. Explore advanced layer techniques such as masking, adjustment layers, and blending modes to enhance your creative possibilities.</p><p>IV. Text and Typography: Whether designing a poster, creating a social media graphic, or adding text to an image, mastering text and typography in Photoshop is essential. Learn how to customize fonts, styles, and effects to convey your message effectively. Utilize layer styles and text effects to add depth and dimension to your typography.</p><p>V. Advanced Selection Techniques: Precision is key in Photoshop, and mastering selection techniques is crucial for isolating and manipulating specific areas of an image. Explore tools like the Pen Tool, Quick Selection, and Refine Edge to achieve accurate and detailed selections, paving the way for intricate and complex edits.</p><p>VI. Special Effects and Filters: Take your creativity to the next level by experimenting with Photoshop’s vast array of special effects and filters. From blurs and distortions to artistic filters and 3D effects, these features allow you to add a unique touch to your creations.</p><p>VII. Adobe Creative Cloud Integration: As part of the Adobe Creative Cloud ecosystem, Photoshop seamlessly integrates with other Adobe applications like Illustrator and InDesign. Learn how to leverage this integration to streamline your workflow, transferring files between programs and ensuring a cohesive design process.</p><p>Conclusion: Adobe Photoshop is a powerful tool that opens the door to endless creative possibilities. Whether you’re a beginner or an experienced user, investing time in mastering its features will undoubtedly elevate your digital design and editing skills. With a solid understanding of Photoshop’s capabilities, you’ll be well-equipped to bring your creative visions to life.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c31969652d3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Grids Tricks On Bootstrap]]></title>
            <link>https://medium.com/@luxmikaran75/grids-tricks-on-bootstrap-2466023f547c?source=rss-8317b1af30e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/2466023f547c</guid>
            <dc:creator><![CDATA[Luxmikaran]]></dc:creator>
            <pubDate>Sun, 28 Jan 2024 14:41:41 GMT</pubDate>
            <atom:updated>2024-01-28T14:41:41.586Z</atom:updated>
            <content:encoded><![CDATA[<p>While working in Bootstrap, it’s possible to change column positions or add sub-columns to them as you format further. This is achieved through offsetting, nesting or reordering the columns. We explain three Simple Tricks to Format Grids in Bootstrap concepts further, and how you can use them, below.</p><h3>Column Offsetting</h3><p>Column offsetting is a great way to format grids in bootstrap. This basically means creating gaps between columns by moving the front column to the right. In Bootstrap 4 you move column using the class prefix offset-. It’s an amazing trick to use in Bootstrap especially when you intend to expand the left margin of the columns.</p><p>There are four ways to offset columns in Bootstrap as shown by the following classes;</p><ul><li>Col-lg-offset-</li><li>Col-md-offset-</li><li>Col-sm-offset-</li><li>Col-xs-offset-</li></ul><p>And, here is a html/css diagram explaining further how to achieve the offset column, specifically using the class col-sm-offset-4:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/0*pP5wfbiuMlSp3wgV.png" /></figure><p>This is what you should have on your browser once you are done with the above code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/0*AehWCfhn4_KMfRZk.png" /></figure><h3>Column Nesting</h3><p>Nesting means to create new columns, or sub-columns, within another column. You do this by creating a new row below the first column created then fill it with custom columns that must also span within the Bootstrap 12 scale. The custom columns will also be confined within the width of the original column (or the parent column).</p><p>Below is the html/css code to achieve this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/569/0*8mBS8HU2JBgthBLa.png" /></figure><p>Inside the parent column we create new rows and add three classes col-sm-3. This adds three more columns inside an original one.</p><p>And this is how it should look on your browser:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/527/0*CI_ikGc_Ua1B2x10.png" /></figure><h3>Column Reordering</h3><p>This is another simple trick to format grids. Reordering simply means changing the positions of two columns within the grid. One column moves to the right while the other moves to the left taking each other’s original positions. Reordering is often a handy trick when formatting webpages to appear differently across screens.</p><p>We can reorder columns using two main classes namely col-column size-pull- and col-column size-push-. These two actions produce for main classes shown below;</p><ul><li>Col-xs-pull- &amp; col-xs-push- (extra small screens)</li><li>Col-sm-pull- &amp; col-sm-push- (small screens)</li><li>Col-md-pull– &amp; col-md-push- (medium screens)</li><li>Col–lg-pull- &amp; col-lg-push- (large screens)</li></ul><p>Below is a html/css code example using the classes col-md-4 &amp; col-md-8:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/0*5oqMK0SjYD6XiBE2.png" /></figure><p>And on the browser:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/0*evglRWczbW0c_dv5.png" /></figure><p>Now we push one column to the right by eight columns and the other to the left by four columns all for medium size screens:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/0*a2UWiFjaiB7CgTzW.png" /></figure><p>The final result is here:</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2466023f547c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CSS Tricks]]></title>
            <link>https://medium.com/@luxmikaran75/css-tricks-17db46eb2678?source=rss-8317b1af30e3------2</link>
            <guid isPermaLink="false">https://medium.com/p/17db46eb2678</guid>
            <category><![CDATA[css-tricks]]></category>
            <dc:creator><![CDATA[Luxmikaran]]></dc:creator>
            <pubDate>Sun, 28 Jan 2024 14:29:42 GMT</pubDate>
            <atom:updated>2024-01-28T14:29:42.702Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*WofWpzoLb-3K_QlQTihCkA.jpeg" /></figure><p>Did you sometimes wonder, if there are more CSS things that you not know yet? Join me on a quick tour through 10 lesser-known CSS tricks that are about to become your secret weapons for leveling up your web design skills. Get ready to learn some new CSS tricks.</p><h3>01. Smooth scrolling on your website</h3><p>Add scroll-behavior: smooth to the &lt;html&gt; element to enable smooth scrolling for the whole page.</p><pre>html{<br>    scroll-behavior: smooth;<br>  }</pre><h3>02. attribute selector for links</h3><p>This selector targets links with href attributes starting with „https.“</p><pre>a[href^=&quot;https&quot;]{<br>    color: blue;<br>  }</pre><h3>03. ~ for combining siblings</h3><p>Selects all &lt;p&gt; elements that are siblings following an &lt;h2&gt;.</p><pre>h2 ~ p{<br>    color: blue;<br>  }</pre><h3>04. the :not() pseudo class</h3><p>This selector applies styles to list items that do not have the class „special.“</p><pre>li:not(.special){<br>        font-stlye: italic;<br>    }</pre><h3>05. Viewport units for responsive typography</h3><p>Using viewport units (vw, vh, vmin, vmax) can make font sizes responsive to the viewport size.</p><pre>h1{<br>    font-size: 5vw;<br>  }</pre><h3>06. :empty for empty elements</h3><p>This selector targets empty &lt;p&gt; elements and hides them.</p><pre>p:empty{<br>    display: none;<br>  }</pre><h3>07. Custom properties (variables)</h3><p>You can define and use custom properties for easier<br>theming and maintenance.</p><pre>:root{<br>    --main-color: #3498db;<br>  }<br>  <br>  h1{<br>    color: var(--main-color);<br>  }</pre><h3>08. Object-fit property for image control</h3><p>object-fit controls how the content of replaced elements (like &lt;img&gt;) should be resized.</p><pre>img{<br>    width: 100px; <br>    height: 100px;<br>    object-fit: cover;<br>  }</pre><h3>09. Grid for simplified layouts</h3><p>CSS Grid provides a powerful way to create layouts in a more straightforward manner.</p><pre>.container{<br>    display: grid;<br>    grid-tempalte-columns: 1fr 2fr 1fr;<br> }</pre><h3>10. :focus-within pseudo class</h3><p>The :focus-within selects an element if that element contains any children that have :focus.</p><pre>form:focus-within{<br>    box-shadow: 0 0 5px rgba(0, 0, 0, 0, 0.2);<br> }</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=17db46eb2678" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>