Click here to Skip to main content
14,457,064 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: Order of element processing Pin
Member 798912217-Oct-19 11:22
MemberMember 798912217-Oct-19 11:22 
GeneralRe: Order of element processing Pin
Dar Brett17-Oct-19 18:12
MemberDar Brett17-Oct-19 18:12 
GeneralRe: Order of element processing Pin
Member 798912217-Oct-19 20:30
MemberMember 798912217-Oct-19 20:30 
GeneralRe: Order of element processing Pin
Stuart Dootson18-Oct-19 1:48
professionalStuart Dootson18-Oct-19 1:48 
GeneralRe: Order of element processing Pin
giulicard17-Oct-19 22:41
Membergiulicard17-Oct-19 22:41 
GeneralRe: Order of element processing Pin
Gerry Schmitz18-Oct-19 4:03
mveGerry Schmitz18-Oct-19 4:03 
QuestionRe: Order of element processing Pin
Mark Smeltzer18-Oct-19 21:38
MemberMark Smeltzer18-Oct-19 21:38 
GeneralRe: Order of element processing Pin
obermd18-Oct-19 4:15
Memberobermd18-Oct-19 4:15 
The problem reported by the Daily news applies to all computer languages. While most computer languages honor simple algebraic operation orders => 1+2*3+4 becomes 1 + (2*3) + 4, no computer language can honor order of operations at a high level when it is fed those operations discreetly and asked for a result before receiving the next set of data and operations.

I've seen this type of issue occur in Excel, SQL Server, Scheme (Lisp), Prolog, Java, C++, C#.

In the case of this Python script, it was being asked to process the contents of each file as a unit and generate an intermediate result, which was then passed to the processing of the next file. The flaw in the script was assuming that all operating systems sort file enumerations in the same manner.

Lisp, by the way, is the only language I can think of that doesn't honor algebraic ordering, but it doesn't need to because of a syntax that forces the programmer to specify the desired order of operations.

GeneralRe: Order of element processing Pin
Member 798912218-Oct-19 4:21
MemberMember 798912218-Oct-19 4:21 
GeneralThought of the Day Pin
OriginalGriff17-Oct-19 5:51
communityengineerOriginalGriff17-Oct-19 5:51 
GeneralRe: Thought of the Day Pin
W Balboos17-Oct-19 6:21
mveW Balboos17-Oct-19 6:21 
GeneralRe: Thought of the Day Pin
RickZeeland17-Oct-19 7:17
communityengineerRickZeeland17-Oct-19 7:17 
GeneralRe: Thought of the Day Pin
Gary Wheeler17-Oct-19 7:39
MemberGary Wheeler17-Oct-19 7:39 
GeneralRe: Thought of the Day Pin
Daniel Pfeffer17-Oct-19 10:12
professionalDaniel Pfeffer17-Oct-19 10:12 
GeneralRe: Thought of the Day Pin
digimanus17-Oct-19 10:48
Memberdigimanus17-Oct-19 10:48 
GeneralRe: Thought of the Day Pin
Member 798912217-Oct-19 13:21
MemberMember 798912217-Oct-19 13:21 
GeneralRe: Thought of the Day Pin
Daniel Pfeffer18-Oct-19 1:03
professionalDaniel Pfeffer18-Oct-19 1:03 
GeneralAn arm and a leg might have been a fair price! Pin
CodeWraith17-Oct-19 1:24
MemberCodeWraith17-Oct-19 1:24 
GeneralRe: An arm and a leg might have been a fair price! Pin
OriginalGriff17-Oct-19 2:51
communityengineerOriginalGriff17-Oct-19 2:51 
GeneralRe: An arm and a leg might have been a fair price! Pin
CodeWraith17-Oct-19 3:00
MemberCodeWraith17-Oct-19 3:00 
GeneralRe: An arm and a leg might have been a fair price! Pin
OriginalGriff17-Oct-19 3:11
communityengineerOriginalGriff17-Oct-19 3:11 
GeneralRe: An arm and a leg might have been a fair price! Pin
CodeWraith17-Oct-19 3:22
MemberCodeWraith17-Oct-19 3:22 
GeneralRe: An arm and a leg might have been a fair price! Pin
dandy7220-Oct-19 5:19
Memberdandy7220-Oct-19 5:19 
RantI'm calling this a fail... Pin
Sander Rossel17-Oct-19 1:07
professionalSander Rossel17-Oct-19 1:07 
GeneralRe: I'm calling this a fail... Pin
den2k8817-Oct-19 1:59
professionalden2k8817-Oct-19 1:59 

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.