04 Jan 2026 – A Fast-Paced Day
04 Jan 2026 Today my day was very fast-paced. This diary is my journal—to reflect each day’s perspectives, outcomes, emotions, and similar things, so that I can know myself better. Today I was doing things worthfully, trying to stay busy. Applied oil to my skin Folded clothes neatly Ate fully, though the budget went a bit high because it was Sunday Prayed two times today Slept in the evening Walked slightly Exercised in the morning I initiated a project called “Self Craft” with purpose....
Python Day 1 Learning Document
📘 Python Day 1 Learning Document ✅ Topics Practiced Variables & Data Types Basic Functions Lists Dictionaries Nested Data Access Control Flow (if-else) 🧠 Session Summary and Corrections 🔹 Variables & Strings name = "ajmal" # ✅ Valid string assignment age = 28 # ✅ Integer assignment ajn = '2a' # ✅ String with alphanumeric content ❌ Mistakes: name = "ajmal # ❌ Missing closing quote — causes `SyntaxError: EOL while scanning string literal` ajn = 2a # ❌ Invalid syntax — 2a is not a valid variable assignment 🔹 Printing and Types print(name) # ajmal print(type(name)) # <type 'str'> (Python 2....
Day 05
Cover up the best on this week 1. Coding of the day : None 2. JS of the day : ** Indexed collections and Keyed Collections** Indexed Collections : JavaScript does not have an explicit array data type. const arr = [45] creates array with one element, Where const arr = Array(45) creates array with no elements but the length of the array. At the implementation level, JavaScript’s arrays actually store their elements as standard object properties, using the array index as the property name....
Week 01
Better than a Yesterday 1. Universal Laws of Communication : Either you having a conversation or you are telling a story or you are issuing a warning or you are not communicating. You are always communicating your creadiabilit, whether you know it or not. All learning involves doing. If your are not in accord with your audiences values, you are not communicating. 2. Golden rule of Communication : Anything thatdistracts people from the message is a problem....
Day 04
Becoming Lazy 1. Coding of the day : None 2. JS of the day : Dates/Times and Regular Expressions Dates and Times : JavaScript does not have a date data type. However, you can use the Date object and its methods to work with dates and times in your applications. The Date object has a large number of methods for setting, getting, and manipulating dates. It does not have any properties....
Day 03
Under the pressure 1. Coding of the day : None 2. JS of the day : Expressions / Operations and Numbers / Strings Expressions and Operations : An expression is a valid unit of code that resolves to a value. There are two types of expressions: those that have side effects (such as assigning values) and those that purely evaluate. Nullish coalescing assignment (??=), also known as the logical nullish assignment operator, only evaluates the right operand and assigns to the left if the left operand is nullish (null or undefined)....
Day 02
Thought Hard Day 1. Coding of the day : Merge Sort Can’t understand the code, but i tried to learn the logic. Merge sort is Divide and Conquer method algorithm. Advantage is in performs well even on large datasets. But it takes large space and it is slower than quick sort because of Not in-place. Not in-place is it requires additional memory to store the sorted data. 2. JS of the day : Loops and Functions Loops and Iterations : Labeled statements are an identifier that lets you refer to it elsewhere in your program....
Day 01
A Starting Journey of 2025 Goals 1. Coding of the day : Selection Sort function selectionSort(array) { int n = array.size(); for(int i = 0; i<n-1;++i) { int minVal = i; for(int j=i+j;j<n;++j) { if(array[j]<array[minVal]) { minVal = j; } } swap(array[i],array[minVal]); } } Advantage of Selection sort is the Memory writes which is better than the Insertion sort and Bubble sort, It makes at most N-1 swaps. Memory Writes is a value overwritten in memory, and Swap operation changes the positions of the elements....
Array in PHP
Conversions: - 1. Array to String Where: Use when you need a simple, readable format, such as displaying list items (implode). Example : Generating a URL query string. $params = ["name" => "Aja", "role" => "Developer"]; $queryString = http_build_query($params); echo "https://example.com/?" . $queryString; // Outputs: https://example.com/?name=Aja&role=Developer Query string 2. Array to Object Where: Use when you need to access elements as properties, particularly in object-oriented programming. Example : Converting configuration arrays in an API response....
Array in PHP
1. array() Example: $arr = array('1', '2', null, array('a', 'b')); // Mixing types Output: // Output: ['1', '2', null, ['a', 'b']] Explanation: While PHP allows mixed types within an array, this can lead to unexpected results when manipulating or accessing elements, particularly if expecting uniform data types. 2. array_fill() Example: $arr = array_fill(0, -3, 'A'); Output: // Output: Warning: array_fill(): Number of elements must be positive in ... // Result: [] Explanation: The function expects num to be a positive integer....