Hello, welcome, and thank you for visiting my humble cyber space. As you could guess by now,
I am Syed Ibrahim, and a quick glimpse at this site would also reveal that I am an avid
computer programmer, amongst other things. The truth of the matter is, I have been a lifelong
coder, staring at pixels and clanking on keyboards for the past forty years, way before the days of chasing
mice. That's a long time, and that reminds me that time is a fleeting commodity. It is also a reminder that
life is short, having passed me by without so much as an anecdotal explanation.
This website was built as an online canvas for my various expressions, from code to quotes, guides,
and even outright ramblings on a hodgepodge of topics. I had decided to record them for posterity,
sharing them in cyberspace — and to the world. The content is mainly on coding and existence, both
of which might one day prove to be interconnected, with the discovery that life is nothing but some programmed
simulation.
A rose by any other name smells as sweet. Indeed, a befitting and accurate adage to dispel
this ridiculous dispute. Coders are programmers, and programmers are software developers.
Despite splintered opinions, the fact remains that these are merely fancy labels that have
evolved through the years, when someone, somewhere down the line, had decided to doctor the
semantics to mean more than what they actually are. Perhaps I am a software engineer, and I
don't even know it.[2br]
That silliness aside, let's dive into the nitty-gritty of the subject at hand, starting with
a basic definition. What exactly is coding?
Prophecies, Predictions, and Predestination...
Life on rails...
;PureBasic version 5.7[2br]
i = 2[2br]
If i = 1
[2sp]Debug "i has a value of 1"
Else
[2sp]Debug "i has a value greater than 1"
EndIf[2br]
Select i
[2sp]Case 1
[tab]Debug "i has a value of 1"
[2sp]Case 2
[tab]Debug "i has a value of 2"
[2sp]Case 3
[tab]Debug "i has a value of 3"
EndSelect[2br]
int i = 2;[2br]
if (i == 1) {
[2sp]printf("i has a value of 1 \n");
} else {
[2sp]printf("i has a value greater than 1 \n");
}[2br]
printf((i == 1) ? "i has a value of 1 \n" : "i has a value greater than 1 \n");[2br]
switch (i) {
[2sp]case 1:
[tab]printf("i has a value of 1");
[tab]break;
[2sp]case 2:
[tab]printf("i has a value of 2");
[tab]break;
[2sp]case 3:
[tab]printf("i has a value of 3");
[tab]break;
}[2br]
int i = 2;[2br]
if (i == 1) {
[2sp]printf("i has a value of 1 \n");
} else {
[2sp]printf("i has a value greater than 1 \n");
}[2br]
printf((i == 1) ? "i has a value of 1 \n" : "i has a value greater than 1 \n");[2br]
switch (i) {
[2sp]case 1:
[tab]printf("i has a value of 1");
[tab]break;
[2sp]case 2:
[tab]printf("i has a value of 2");
[tab]break;
[2sp]case 3:
[tab]printf("i has a value of 3");
[tab]break;
}[2br]
int i = 2;[2br]
if (i == 1) {
[2sp]System.out.println("i has a value of 1");
} else {
[2sp]System.out.println("i has a value greater than 1");
}[2br]
System.out.println((i == 1) ? "i has a value of 1" : "i has a value greater than 1");[2br]
switch (i) {
[2sp]case 1:
[tab]System.out.println("i has a value of 1");
[tab]break;
[2sp]case 2:
[tab]System.out.println("i has a value of 2");
[tab]break;
[2sp]case 3:
[tab]System.out.println("i has a value of 3");
[tab]break;
}[2br]
int i = 2;[2br]
if (i == 1) {
[2sp]Console.WriteLine("i has a value of 1");
} else {
[2sp]Console.WriteLine("i has a value greater than 1");
}[2br]
Console.WriteLine((i == 1) ? "i has a value of 1" : "i has a value greater than 1");[2br]
switch (i) {
[2sp]case 1:
[tab]Console.WriteLine("i has a value of 1");
[tab]break;
[2sp]case 2:
[tab]Console.WriteLine("i has a value of 2");
[tab]break;
[2sp]case 3:
[tab]Console.WriteLine("i has a value of 3");
[tab]break;
}[2br]
var i = 2;[2br]
if (i == 1) {
[2sp]print("i has a value of 1");
} else {
[2sp]print("i has a value greater than 1");
}[2br]
print((i == 1) ? "i has a value of 1" : "i has a value greater than 1");[2br]
switch (i) {
[2sp]case 1:
[tab]print("i has a value of 1");
[tab]break;
[2sp]case 2:
[tab]print("i has a value of 2");
[tab]break;
[2sp]case 3:
[tab]print("i has a value of 3");
[tab]break;
[2sp]default:()
}[2br]
var i = 2;[2br]
if (i == 1) {
[2sp]println("i has a value of 1");
} else {
[2sp]println("i has a value greater than 1");
}[2br]
println(if (i == 1) "i has a value of 1" else "i has a value greater than 1");[2br]
when (i) {
[2sp]1 -> println("i has a value of 1")
[2sp]2 -> println("i has a value of 2")
[2sp]3 -> println("i has a value of 3")
}[2br]
var i = 2;[2br]
if (i == 1) {
[2sp]console.log("i has a value of 1");
} else {
[2sp]console.log("i has a value greater than 1");
}[2br]
console.log((i == 1) ? "i has a value of 1" : "i has a value greater than 1");[2br]
switch (i) {
[2sp]case 1:
[tab]console.log("i has a value of 1");
[tab]break;
[2sp]case 2:
[tab]console.log("i has a value of 2");
[tab]break;
[2sp]case 3:
[tab]console.log("i has a value of 3");
[tab]break;
}[2br]
$i = 2;[2br]
if ($i == 1) {
[2sp]echo("i has a value of 1 [
]");
} else {
[2sp]echo("i has a value greater than 1 [
]");
}[2br]
echo(($i == 1) ? "i has a value of 1 [
]" : "i has a value greater than 1 [
]");[2br]
switch ($i) {
[2sp]case 1:
[tab]echo("i has a value of 1");
[tab]break;
[2sp]case 2:
[tab]echo("i has a value of 2");
[tab]break;
[2sp]case 3:
[tab]echo("i has a value of 3");
[tab]break;
}[2br]
;PureBasic version 5.7[2br]
; writing data to file
OpenFile(0, "myData.txt")
WriteStringN(0, "This is my program data...")
CloseFile(0)[2br]
Debug "Data written to file."
; reading data from file
ReadFile(0, "myData.txt")
Debug ReadString(0)
CloseFile(0)[2br]
#include stdio.h[2br]
int main() {[2br]
[2sp]char fileData;
[2sp]FILE *fileHandle = fopen("D:\\myData.txt", "w");[2br]
[2sp]if (fileHandle != NULL) {[2br]
[tab]// writing data to file
[tab]fprintf(fileHandle, "This is my program data...");
[tab]fclose(fileHandle);
[tab]printf("Data written to file.\n");[2br]
[tab]// reading data from file
[tab]if ((fileHandle = fopen("D:\\myData.txt", "r")) != NULL) {
[2sp][tab]while ((fileData = fgetc(fileHandle)) != EOF)
[2sp][tab]printf("%c", fileData);
[2sp][tab]fclose(fileHandle);
[tab]}[2br]
[2sp]}[2br]
[2sp]return 0;[2br]
}[2br]
#import Foundation/Foundation.h[2br]
int main() {[2br]
[2sp]char fileData;
[2sp]FILE *fileHandle = fopen("D:\\myData.txt", "w");[2br]
[2sp]if (fileHandle != NULL) {[2br]
[tab]// writing data to file
[tab]fprintf(fileHandle, "This is my program data...");
[tab]fclose(fileHandle);
[tab]printf("Data written to file.\n");[2br]
[tab]// reading data from file
[tab]if ((fileHandle = fopen("D:\\myData.txt", "r")) != NULL) {
[2sp][tab]while ((fileData = fgetc(fileHandle)) != EOF)
[2sp][tab]printf("%c", fileData);
[2sp][tab]fclose(fileHandle);
[tab]}[2br]
[2sp]}[2br]
[2sp]return 0;[2br]
}[2br]
;PureBasic version 5.7[2br]
Procedure add(a.i, b.i)
[2sp]result = a + b
[2sp]ProcedureReturn result
EndProcedure[2br]
Debug add(1, 2) [3sp];outputs 3
Debug add(3, 3) [3sp];outputs 6
Debug add(13, 12) [sp];outputs 25[2br]
#include stdio.h[2br]
int add(int a, int b) {
[2sp]int result = a + b;
[2sp]return result;
}[2br]
int main() {
[2sp]printf("%d \n", add(1, 2)); [2sp]//outputs 3
[2sp]printf("%d \n", add(3, 3)); [2sp]//outputs 6
[2sp]printf("%d \n", add(13, 12)); //outputs 25
[2sp]return 0;
}[2br]
#import []Foundation/Foundation.h[][2br]
int add(int a, int b) {
[2sp]int result = a + b;
[2sp]return result;
}[2br]
int main () {
[2sp]printf("%i\n", add(1, 2)); [2sp]//outputs 3
[2sp]printf("%i\n", add(3, 3)); [2sp]//outputs 6
[2sp]printf("%i\n", add(13, 12)); //outputs 25
[2sp]return 0;
}[2br]
public class functionExample {[2br]
[2sp]public static void main(String []args) {
[tab]System.out.println(add(1, 2)); [2sp]//outputs 3
[tab]System.out.println(add(3, 3)); [2sp]//outputs 6
[tab]System.out.println(add(13, 12)); //outputs 25
[2sp]}[2br]
[2sp]static int add(int a, int b) {
[tab]int result = a + b;
[tab]return result;
[2sp]}[2br]
}[2br]
using System;[2br]
class functionExample {[2br]
[2sp]static void Main() {
[tab]Console.WriteLine(add(1, 2)); [2sp]//outputs 3
[tab]Console.WriteLine(add(3, 3)); [2sp]//outputs 6
[tab]Console.WriteLine(add(13, 12)); //outputs 25
[2sp]}[2br]
[2sp]static int add(int a, int b) {
[tab]int result = a + b;
[tab]return result;
[2sp]}[2br]
}[2br]
import Foundation[2br]
func add(_ a: Int, _ b: Int) -> Int {
[2sp]var result = a + b
[2sp]return result
}[2br]
print(add(1, 2)) [2sp]//outputs 3
print(add(3, 3)) [2sp]//outputs 6
print(add(13, 12)) //outputs 25[2br]
fun main() {
[2sp]println(add(1, 2)) [2sp]//outputs 3
[2sp]println(add(3, 3)) [2sp]//outputs 6
[2sp]println(add(13, 12)) //outputs 25
}[2br]
fun add(a: Int, b: Int): Int {
[2sp]var result = a + b
[2sp]return result
}[2br]
function add(a, b) {
[2sp]var result = a + b;
[2sp]return result;
}[2br]
console.log(add(1, 2)); [2sp]//outputs 3
console.log(add(3, 3)); [2sp]//outputs 6
console.log(add(13, 12)); //outputs 25
function add($a, $b) {
[2sp]$result = $a + $b;
[2sp]return $result;
}[2br]
echo(add(1, 2)."[
]"); [2sp]//outputs 3
echo(add(3, 3)."[
]"); [2sp]//outputs 6
echo(add(13, 12)."[
]"); //outputs 25
;PureBasic version 5.7[2br]
For i = 0 To 10
[2sp]Debug Str(i)
Next i[2br]
i = 0
Repeat
[2sp]Debug Str(i)
[2sp]i + 1
Until i > 10[2br]
i = 0
While i <= 10
[2sp]Debug Str(i)
[2sp]i + 1
Wend[2br]
;each loop outputs the numbers 0 to 10
for (int i = 0; i <= 10; i++) {
[2sp]printf("%d\n", i);
}[2br]
int i = 0;
do {
[2sp]printf("%d\n", i);
[2sp]i++;
} while (i <= 10);[2br]
i = 0;
while (i <= 10) {
[2sp]printf("%d\n", i);
[2sp]i++;
}[2br]
// each function call outputs the numbers 0 to 10[2br]
int i = 0;[2br]
for (i = 0; i <= 10; i++) {
[2sp]printf("%d\n", i);
}[2br]
i = 0;
do {
[2sp]printf("%d\n", i);
[2sp]i++;
} while (i <= 10);[2br]
i = 0;
while (i <= 10) {
[2sp]printf("%d\n", i);
[2sp]i++;
}[2br]
// each function call outputs the numbers 0 to 10[2br]
for (int i = 0; i <= 10; i++) {
[2sp]System.out.println(i);
}[2br]
int i = 0;
do {
[2sp]System.out.println(i);
[2sp]i++;
} while (i <= 10);[2br]
i = 0;
while (i <= 10) {
[2sp]System.out.println(i);
[2sp]i++;
}[2br]
// each function call outputs the numbers 0 to 10[2br]
for (int i = 0; i < 11; i++) {
[2sp]Console.WriteLine(i);
}[2br]
int j = 0;
do {
[2sp]Console.WriteLine(j);
[2sp]j++;
} while (j <= 10);[2br]
j = 0;
while (j <= 10) {
[2sp]Console.WriteLine(j);
[2sp]j++;
}[2br]
// each function call outputs the numbers 0 to 10[2br]
for i in 0...10 {
[2sp]print(i)
}[2br]
var i = 0
repeat {
[2sp]print(i)
[2sp]i += 1
} while (i <= 10)[2br]
i = 0
while (i <= 10) {
[2sp]print(i)
[2sp]i += 1
}[2br]
// each function call outputs the numbers 0 to 10[2br]
for (i in 0..10) {
[2sp]println(i);
}[2br]
var i = 0;
do {
[2sp]println(i);
[2sp]i++;
} while (i <= 10);[2br]
i = 0;
while (i <= 10) {
[2sp]println(i);
[2sp]i++;
}[2br]
for (var i = 0; i <= 10; i++) {
[2sp]console.log(i);
}[2br]
var i = 0;
do {
[2sp]console.log(i);
[2sp]i++;
} while (i <= 10);[2br]
i = 0;
while (i <= 10) {
[2sp]console.log(i);
[2sp]i++;
}[2br]
for ($i = 0; $i <= 10; $i++) {
[2sp]echo($i).PHP_EOL;
}[2br]
$i = 0;
do {
[2sp]echo($i).PHP_EOL;
[2sp]$i++;
} while ($i <= 10);[2br]
$i = 0;
while ($i <= 10) {
[2sp]echo($i).PHP_EOL;
[2sp]$i++;
}[2br]
;PureBasic version 5.7[2br]
Define myInteger.i
Define myDouble.d
Define myString.s[2br]
myInteger = 123
myDouble = 123.456
myString = "Hello World!"[2br]
Debug myInteger ;outputs 123
Debug myDouble ;outputs 123.456
Debug myString ;outputs "Hello World!"[2br]
int myInteger;
double myDouble;
char myString[] = "Hello World!";[2br]
myInteger = 123;
myDouble = 123.456;[2br]
printf("%d\n", myInteger); [2sp]//outputs 123
printf("%f\n", myDouble); [3sp]//outputs 123.456
printf("%s\n", myString); [3sp]//outputs "Hello World!"[2br]
int myInteger;
double myDouble;
NSString *myString;[2br]
myInteger = 123;
myDouble = 123.456;
myString = @"Hello World!";[2br]
printf("%d\n", myInteger); [2sp]//outputs 123
printf("%f\n", myDouble); [3sp]//outputs 123.456
printf("%s\n",
[3sp][myString UTF8String]); [2sp]//outputs "Hello World!"[2br]
int myInteger;
double myDouble;
String myString;[2br]
myInteger = 123;
myDouble = 123.456;
myString = "Hello World!";[2br]
System.out.println(myInteger); [2sp] //outputs 123
System.out.println(myDouble); [3sp] //outputs 123.456
System.out.println(myString); [3sp] //outputs "Hello World!"[2br]
int myInteger;
double myDouble;
string myString;[2br]
myInteger = 123;
myDouble = 123.456;
myString = "Hello World!";[2br]
Console.WriteLine(myInteger); [2sp]//outputs 123
Console.WriteLine(myDouble); [3sp]//outputs 123.456
Console.WriteLine(myString); [3sp]//outputs "Hello World!"[2br]
var myInteger: Int
var myDouble: Double
var myString: String[2br]
myInteger = 123
myDouble = 123.456
myString = "Hello World!"[2br]
print(myInteger) [2sp]//outputs 123
print(myDouble) [3sp]//outputs 123.456
print(myString) [3sp]//outputs "Hello World!"[2br]
var myInteger: Int
var myDouble: Double
var myString: String[2br]
myInteger = 123
myDouble = 123.456
myString = "Hello World!"[2br]
println(myInteger) [2sp]//outputs 123
println(myDouble) [3sp]//outputs 123.456
println(myString) [3sp]//outputs "Hello World!"[2br]
var myInteger;
var myDouble;
var myString;[2br]
myInteger = 123;
myDouble = 123.456;
myString = "Hello World!";[2br]
console.log(myInteger); [2sp]//outputs 123
console.log(myDouble); [3sp]//outputs 123.456
console.log(myString); [3sp]//outputs "Hello World!"[2br]
$myInteger = 123;
$myDouble = 123.456;
$myString = "Hello World!";[2br]
echo $myInteger; [2sp]//outputs 123
echo $myDouble; [3sp]//outputs 123.456
echo $myString; [3sp]//outputs "Hello World!"[2br]
The Analytical Engine
The Abacus
The Pascaline
Dr Ernest Shurtleff Holmes
Neville Lancelot Goddard
Thomas Troward
Alan Wilson Watts
A rose by any other name smells as sweet.
William Shakespeare
One cannot fully appreciate the warmth and light of the Sun until the bitter cold of darkness has plagued us.
Syed Ibrahim
All the gold on earth cannot buy virtue.
Plato
I think, therefore I am.
Descartes
The only constant in life is change.
Heraclitus
Desire will in due time externalise itself as concrete fact.
Thomas Troward
Be the change that you wish to see in the world.
Mahatma Gandhi
There is nothing either good or bad, but thinking makes it so.
William Shakespeare
Never let your sense of morals prevent you from doing what is right.
Isaac Asimov
Trying to define yourself is like trying to bite your own teeth.
Alan Watts
The day the power of love overrules the love of power, the world will know peace.
Mahatma Gandhi
Time is a game played beautifully by children.
Heraclitus
The flame that burns twice as bright burns half as long.
Lao Tzu
The noblest pleasure is the joy of understanding.
Da Vinci
The eye sees only what the mind is prepared to comprehend.
Robertson Davies
Know thyself.
Plato
Seek happiness. The rest will follow.
M S Jaffar
I cannot believe that the God who has endowed us with sense, reason, and intellect has intended us to forgo their use.
Galileo
Doing nothing is better than being busy doing nothing.
Lao Tzu
Only that day dawns to which we are awake.
Henry David Thoreau
He who is not satisfied with a little is satisfied with nothing.
Epicurus
This place is a dream. Only a sleeper considers it real.
Rumi
All is mystery; but he is a slave who will not struggle to penetrate the dark veil.
Benjamin Disraeli
Religion is often on the lips, but seldom in the life.
Khalil Gibran
There is no greater sorrow than to recall happiness in times of misery.
Dante Alighieri
I only know that I know nothing.
Socrates
He who conquers himself is the mightiest warrior.
Confucius
Man is free when he wants to be.
Voltaire
In wealth I am poor. In poverty I am rich.
Esperanza
Call no man happy until he is dead.
Solon
Life is a mirror and will reflect back to the thinker what he thinks into it.
Ernest Holmes
Do not do to others that which angers you when they do it to you.
Isocrates
The greatest untold story is the evolution of God.
Gurdjieff
What you think, you become.
Buddha
No man is crushed by misfortune unless he has first been deceived by prosperity.
Seneca
Lady Luck...
When you are courting a nice girl, an hour seems like a second. When you sit on a red-hot cinder, a second seems like an hour. That's relativity.
Albert Einstein
Beauty is the purgation of superfluities.
Michelangelo
I can resist everything except temptation.
Oscar Wilde
People say nothing is impossible, but I do it every day.
A A Milne
Never put off till tomorrow what you can do the day after tomorrow just as well.
Mark Twain
Beware the fine line between perfection and perfectionism.
Syed Ibrahim
With your brains and your feet, you are the one who decides where you go.
Dr Seuss
Failure is the condiment that gives success its flavour.
Truman Capote
Learning does not make one learned.
Alexandre Dumas
A mind is like a parachute. It doesn't work if it is not open.
Frank Zappa
Three may keep a secret, but only if two of them are dead.
Benjamin Franklin
He who does not punish evil, commands it to be done.
Da Vinci
Contentment is natural wealth, luxury is artificial poverty.
Socrates
Mathematics is the language with which God has written the universe.
Galileo
Today is the tomorrow you worried about yesterday.
Dale Carnegie
Better to remain silent and be thought a fool than to speak out and remove all doubt.
Abraham Lincoln
If you want people to listen, try whispering to someone else.
Ann Landers
Just be yourself, because those who mind don't matter, and those who matter won't mind.
Bernard Baruch
A day without laughter is a day wasted.
Charlie Chaplin
True strength is realising that we have power only over ourselves.
Marcus Aurelius
When a man realises that his father was right, he will have a son who thinks he's wrong.
Charles Wadsworth
To err is human, to forgive divine.
Alexander Pope
The gents are usually on the left, because the ladies are always right.
Syed Ibrahim
Every man is guilty of all the good he did not do.
Voltaire
The hottest places in hell are reserved for those who remain silent in the face of evil.
Dante
Common sense is the collection of prejudices acquired with age.
Albert Einstein
If I have seen further than others, it is by standing upon the shoulders of giants.
Isaac Newton
Two things are infinite: the universe and human stupidity.
Albert Einstein
The secret of getting ahead is getting started.
Mark Twain
Don't cry because it's over. Smile because it happened.
Dr Seuss
The pixel is worth a thousand words.
Syed Ibrahim
Ernest Holmes, the author of The Science of Mind, famously said that thoughts are things.
These elements that we so freely and neglectfully churn out every moment of every day,
are apparently not as insignificant as we think they are. But then, that's just another
thought.[2br]
In all seriousness, what exactly are thoughts, and how do they come about? A simple
and effortless function, we don't even know their true origins. Some thoughts appear
out of nowhere, and most unexpectedly, yet we simply accept them as products of our own
biological brains or subconscious minds.[2br]
Like the fantastical dreams that we live through every night as we slumber, the shapes
and forms of our active thoughts remain a fascinating mystery. Through the ages, these
phenomenon has received many distinct monikers, from insight and vision, to inspiration
and even divination.[2br]
Words form the very foundation of human communications. There is the written form, which
is merely the visual, symbolic representation, and the spoken form, which is its audible
articulation. The duo has advanced humanity by leaps and bounds, and has become inextricable
from human life. Without those humble scribbles and sounds, knowledge and expression would
be stifled, and intellectual growth stunted.[2br]
Indeed they are a precious gift, highly exalted, but sadly, abused as well. But then, like
everything else in life, the good cannot be fully appreciated without having experienced the bad.[2br]
Copyright © 2009-2020, Syed Ibrahim
#SocMed
#SocMed