In software development, there are two important concepts: synchronous and asynchronous behavior. JavaScript developers, especially those who use vanilla JavaScript, know these well because of how promises work. I like to explain things in a simple way, so it’s easier for me and others to understand new topics. Synchronous Programming Let’s imagine you went to Continue reading “Synchronous and Asynchronous code by simple examples”
Category Archives: Blog
Update GitHub Access Token Locally
When you are working on a local project and using a GitHub Access Token to push your code, you might face an issue when the token expires, and you forget to update it or something like this. If you try to push or pull your changes, you’ll get an error stating that you are not Continue reading “Update GitHub Access Token Locally”
It’s ok to feel afraid when working to fill your knowledge gaps as a developer
I have been dealing with this feeling for years, and I still do. In the beginning, it was really frustrating for me, day by day, step by step, I learned to “TRY DEALING WITH IT”, not fully “DEALING WITH IT” yet, because I’m not at that level. Let me share a story that might be Continue reading “It’s ok to feel afraid when working to fill your knowledge gaps as a developer”
Take a breath before continue
When I sense that my motivation to publish is driven by the desire to share for the sake of just sharing or to impress others, I take a break from posting to realign myself and my goal from the whole thing. Impressing people was never and will never be the reason I began sharing, but Continue reading “Take a breath before continue”
Fixing Object Pagination with Laravel and Inertia.js that gives empty data
Problem When working with Laravel and Inertia.js, pagination returns an object instead of an array. This can make looping over the results a bit tricky, as the expected array structure isn’t accessible. For example, in a typical Laravel controller method like this: You might see the data coming through correctly as a prop in your Continue reading “Fixing Object Pagination with Laravel and Inertia.js that gives empty data”
Knowledge comes on the way.
In life, and especially in software development, you can not always fully understand every step or action right away. I used to struggle with this feeling, like I wasn’t good enough if I didn’t completely understand every detail of what I was doing in programming. However, I was wrong. It’s totally normal to use or Continue reading “Knowledge comes on the way.”
Understanding Method Spoofing in Laravel
Title: Understanding Method Spoofing in Laravel When working with request/response methods, different HTTP methods like GET, POST, PUT, and PATCH have custom purposes. POST is generally used for creating resources, while PUT and PATCH are intended for updates. But as a developer, you’ll often see POST used for updates too. This happens due to browser Continue reading “Understanding Method Spoofing in Laravel”
The Joy of Understanding One Line of Code
In your software development career, you’ve probably experienced the joy of truly understanding a line of code, right?
Handling Multiple Forms with Different Field Names Using a Single Endpoint
The Problem: Suppose you have an endpoint to send data to the database, and in your project, you have two forms with the same field(s), let’s say a field named “name”. How can you manage this without creating redundant and complex code? The Initial Solution: A quick solution might be to create two separate forms Continue reading “Handling Multiple Forms with Different Field Names Using a Single Endpoint”
Create a skew div from one corner
Let’s suppose that you want to create a skewed div from one corner, not from both or all corners. If you are familiar with