News Articles programming

Laravel ( WhereRaw HavingRaw OrderByRaw And SelectRaw )

Let’s get started quickly We start with WhereRaw $products = DB::table(‘products’) ->whereRaw(‘price > IF(state = “TX”, ?, 100)’, [200]) ->get(); havingRaw Product::groupBy(‘product_id’)->havingRaw(‘COUNT(*) > 1’)->get(); orderByRaw User::where(‘created_at’, ‘>’, ‘2022-01-01’) ->orderByRaw(‘(updated_at – created_at) desc’) ->get(); Eloquent selectRaw() User::select(“*”) ->selectRaw(‘amount + ? as amount_with_bonus’, [500]) ->get(); Another example User::select(“*”) ->select(‘*’, DB::raw(‘amount + 500 as amount_with_bonus’)) ->get(); I hope […]

Readymade Script For Building Fiverr Like Marketplace

Easily create your online marketplace with our readymade PHP script. Create your Fiverr clone and start earning! ADVANCED MARKETPLACE That’s why we’ve created this Fiverr Clone Script to help you make your freelance marketplace for sellers and buyers. This is a revolutionary online business platform where employers search for top talent and hire freelancers for […]

Features of clean code architecture | Node.js

Goal: Make our code resilient against changes over time A brief introduction to architecture Software architecture is primarily the structure of the software components to be arranged in a purposeful and efficient system. The goal of software architecture is to minimize the human effort required to build and maintain software systems. One of the most […]

Who am I?

WTF? Oh, Shit πŸ’© Yes it’s exactly which you have just read, it’s completely describe such a Shit, but why?, the question should be why is it called shit? In this posts I will share you everything you need to known as a developer, I will tell you exactly as I have felt it without […]

A Detailed Guide on Angular Onpush Change Detection and Component Design

Introduction For all of our favorite projects, we’ve switched to Angular. We understand what Angular has to offer and how we can use it to create fantastic online applications. However, there are a few things to know about Angular that will help us use it more effectively in our projects. Because data flow is at […]

Advanced Typescript | Generics

Learn advanced Typescript features and apply them to practical code exercises Typescript Generics provide a way to write flexible code that can work with various data types rather than a single data type. That allows users of the code to provide their own types. Advanced Typescript | Generics. Learn advanced Typescript features and… | by […]

Simple way to generate random string in PHP

While developing an application, sometimes it requires generating a random but unique string, e.g. Password Generator, CSRF token, and many more. There are so many methods to generate random and unique strings in PHP. For Example: rand(); uniqid(); bin2hex(random_bytes(20)); But I prefer my way to generate a random string by using existing PHP functions and […]

React.js 18: An overview of its new features and updates

React is an open-source JavaScript UI library designed by Facebook, it has gained a lot of popularity in the front-end developer community. React 18 is shifting from alpha to beta and has some exciting features and updates for the React.js development community. All updates are primarily aimed to maintain third-party libraries by introducing out-of-the-box features […]

How I use Notion while learning programming

Notion is pretty popular these days and I’ve had it for almost 2 years now. I’ve been experimenting ever since with several ways to utilize it to my needs. In this blog post, I will specifically explain how I use Notion for programming, especially learning to code. What is Notion? Notion is an application that […]

Building My First Command Line Interface (CLI) withΒ Rust

After telling myself over and over that today is the day I start learning rust. I finally successfully built a (very small) cli for engram. This post will cover some of the things I learned along the way. I mostly from a TypeScript/Node background and will make comparisons between the two where applicable. Inventing Some […]

5 Actionable Steps to Land Your First Software Engineering Role

Originally published on my blog. Landing your first engineering role after getting a degree in computer science (or software engineering) is a challenging process. There are so many software engineering vacancies, but a significant majority of them are for those with at least 2+ years of experience. There are not enough junior positions on the […]

Nodejs And Express CRUD

Now we are going to learn how to create a Nodejs and express CRUD application. A CRUD application is the simplest web application that we can create. The term CRUD comes from “Create,” “Read,” “Update”, and “Delete.” We create CRUDs Applications using the HTTP Verbs. In this tutorial we are also going to learn how […]

Which technologies would you choose for your next web project?

If you were building an application consisting of a user interface and an API, what technology choices would you make and why? I’ll go first. 1. TypeScript I’d choose TypeScript because it’s worth it. If you haven’t used TypeScript before, you may have a temporary productivity loss, but in the end, it’s worth it. I […]

Removing people using UTF-8 πŸ‘©β€πŸ‘©β€πŸ‘¦β€πŸ‘¦

While I was writing my new article I found out about really cool thing I am going to share with you. Check out this emoji containing 4 people πŸ‘©β€πŸ‘©β€πŸ‘¦β€πŸ‘¦. While I was trying to delete πŸ‘©β€πŸ‘©β€πŸ‘¦β€πŸ‘¦ in VSCode using backspace it didn’t disappear, but it just changed to this πŸ‘©β€πŸ‘©β€πŸ‘¦. After hitting another backspace it […]

Getting started with Web Sockets inΒ NodeJS

In the day and age of live streaming, video conferencing, and remote work, one of the primary concerns of any user is latency. A seamless experience is the name of the game. Traditional HTTP, being dependent on client requests, is simply not capable of fulfilling this need. They’re simply too slow. It needs to be […]

Short-Circuiting in JavaScript

In JavaScript, short-circuiting refers to the partial evaluation of expressions to avoid unnecessary computation. This blog post describes the short-circuiting operators and assignments in JavaScript and how to use them. Short-Circuiting Operators: &&, ||, and ?? Short-circuiting operators only evaluate the right side of an expression when necessary. For example, for the logical AND operator […]

Backtracking in JAVA

Backtracking is an algorithmic-technique for solving problems recursively by trying to build a solution incrementally, one piece at a time, removing those solutions that fail to satisfy the constraints of the problem at any point of time (by time, here, is referred to the time elapsed till reaching any level of the search tree) There […]

#Multithreading in Java

Multithreading Multithreading is a Java feature that allows concurrent execution of two or more parts of a program for maximum utilization of CPU. Each part of such program is called a thread. So, threads are light-weight processes within a process. Threads can be created by using two mechanisms : 1.Extending the Thread class 2.Implementing the […]

Sitemap | Terms | Privacy | Cookies | Advertising

Senior Software Developer

Creator of @LzoMedia I am a backend software developer based in London who likes beautiful code and has an adherence to standards & love's open-source.