Saman BatoolWhy Array Destructuring is used in the React useState hookI’ve built several React applications using the useState hook and always wondered why we made use of array destructuring when we could just…3 min read·Mar 27, 2023--2--2
Saman BatoolWebSocket Protocol with ActionCable — a high-level understandingThe WebSocket protocol is made available to rails via ActionCable. Let’s first take a look at what happens in a standard HTTP…4 min read·Nov 8, 2022----
Saman BatoolSelf-referential association — railsIf you have users and are trying to implement functionality where users can track other users, creating a self-referential association…3 min read·Oct 4, 2022----
Saman BatoolDevise for user auth — RailsIf you’ve built rails apps before, you know that it is possible to build a full user authentication system from scratch. Let’s talk about…4 min read·Oct 4, 2022----
Saman BatoolAJAX (Asynchronous Javascript — with Rails applications)In a standard HTTP request-response cycle, we make a request from the browser - it hits our server - we receive the information we need…5 min read·Sep 27, 2022----
Saman BatoolSecure credentials with Rails 6Whenever you’re working with secure credentials (such as a publishable token), you want a secure way to handle them so that they don’t show…3 min read·Sep 22, 2022----
Saman BatoolJavascript Fetch APIIn this blog, we’ll talk about the JavaScript Fetch API and how to use it to make asynchronous HTTP requests.3 min read·Nov 30, 2020----
Saman BatoolTrees, Binary Search Trees and traversal methods, the difference and why.Data structures, amongst other things, are used to store and organize data. Different types of data are more efficiently organized using…3 min read·Nov 22, 2020----
Saman BatoolIntegrating CarrierWave in my Rails ApplicationThis week I decided to backtrack from front-end development for a bit to brush up my Ruby on Rails skills (mainly to test if I may have…4 min read·Nov 6, 2020----