Click here to Skip to main content
15,900,667 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Building a new proper left-to-right executing programming language Pin
Nikunj_Bhatt16-May-19 17:39
professionalNikunj_Bhatt16-May-19 17:39 
GeneralRe: Building a new proper left-to-right executing programming language Pin
Mark_Wallace16-May-19 8:44
Mark_Wallace16-May-19 8:44 
GeneralRe: Building a new proper left-to-right executing programming language Pin
Nikunj_Bhatt16-May-19 17:43
professionalNikunj_Bhatt16-May-19 17:43 
GeneralRe: Building a new proper left-to-right executing programming language Pin
Member 916705716-May-19 21:11
Member 916705716-May-19 21:11 
GeneralRe: Building a new proper left-to-right executing programming language Pin
mischasan17-May-19 7:14
mischasan17-May-19 7:14 
PraiseRe: Building a new proper left-to-right executing programming language Pin
Nikunj_Bhatt20-May-19 1:24
professionalNikunj_Bhatt20-May-19 1:24 
GeneralRe: Building a new proper left-to-right executing programming language Pin
englebart17-May-19 8:13
professionalenglebart17-May-19 8:13 
GeneralRe: Building a new proper left-to-right executing programming language Pin
Nikunj_Bhatt20-May-19 0:51
professionalNikunj_Bhatt20-May-19 0:51 
englebart wrote:
x is assigned a added to 12
You wrote in English. It is like passive voice. Instead of "I have done this" you are writing "It has been done by me".

If we write x = a + 12, it can be understood like this: (1) create a variable "x" (allocate memory), (2) add value of the variable "a" to 12 (store the sum somewhere in memory), (3) store the sum in variable "x".

If we write a + 12 = x (OR a + 12 -> x), it can be understood like this: (1) add the value of variable "a" to 12 (store the sum somewhere in memory), (3) Create a variable "x" (allocate memory), (4) store the sum in variable "x".

In the first approach, it is like - the system is allocating memory first without knowing the result. In the second approach, it is like - the system is first determining the result and then allocating memory according to the result. This second approach looks more logical way of executing and writing code.

I think, the 1st approach is suitable to programming languages of .NET, C based, Java, etc. where variables needed to be defined before assigning values; while the 2nd approach is suitable for languages like JavaScript, PHP, etc. where variables can be defined/initialized anywhere in the code.
GeneralRe: Building a new proper left-to-right executing programming language Pin
Dan Sutton17-May-19 8:24
Dan Sutton17-May-19 8:24 
GeneralRe: Building a new proper left-to-right executing programming language Pin
BillWoodruff18-May-19 21:21
professionalBillWoodruff18-May-19 21:21 
GeneralRe: Building a new proper left-to-right executing programming language Pin
Greg Lovekamp31-May-19 4:33
professionalGreg Lovekamp31-May-19 4:33 
GeneralThere is no statute of limitation for War Criminals Pin
Bram van Kampen15-May-19 12:54
Bram van Kampen15-May-19 12:54 
GeneralRe: There is no statute of limitation for War Criminals Pin
PIEBALDconsult15-May-19 13:02
mvePIEBALDconsult15-May-19 13:02 
GeneralRe: There is no statute of limitation for War Criminals PinPopular
Pete O'Hanlon15-May-19 21:00
mvePete O'Hanlon15-May-19 21:00 
GeneralRe: There is no statute of limitation for War Criminals Pin
Munchies_Matt16-May-19 1:45
Munchies_Matt16-May-19 1:45 
GeneralRe: There is no statute of limitation for War Criminals Pin
ZurdoDev16-May-19 2:03
professionalZurdoDev16-May-19 2:03 
GeneralRe: There is no statute of limitation for War Criminals Pin
Mark_Wallace16-May-19 8:55
Mark_Wallace16-May-19 8:55 
GeneralI am so elephanting mad at Microsoft right now I think I'll just...... Pin
Ron Anders15-May-19 10:28
Ron Anders15-May-19 10:28 
GeneralRe: I am so elephanting mad at Microsoft right now I think I'll just...... Pin
Joe Woodbury15-May-19 10:40
professionalJoe Woodbury15-May-19 10:40 
GeneralRe: I am so elephanting mad at Microsoft right now I think I'll just...... Pin
the goat in your machine15-May-19 18:00
the goat in your machine15-May-19 18:00 
GeneralRe: I am so elephanting mad at Microsoft right now I think I'll just...... Pin
Joe Woodbury15-May-19 20:47
professionalJoe Woodbury15-May-19 20:47 
GeneralRe: I am so elephanting mad at Microsoft right now I think I'll just...... Pin
Mark_Wallace16-May-19 8:58
Mark_Wallace16-May-19 8:58 
GeneralRe: I am so elephanting mad at Microsoft right now I think I'll just...... Pin
megaadam15-May-19 10:45
professionalmegaadam15-May-19 10:45 
GeneralRe: I am so elephanting mad at Microsoft right now I think I'll just...... Pin
kmoorevs15-May-19 12:59
kmoorevs15-May-19 12:59 
GeneralRe: I am so elephanting mad at Microsoft right now I think I'll just...... Pin
dandy7215-May-19 13:33
dandy7215-May-19 13:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   492 votes