Click here to Skip to main content
15,900,973 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
kalberts17-Oct-19 10:22
kalberts17-Oct-19 10:22 
GeneralRe: Order of element processing Pin
Dar Brett17-Oct-19 17:12
Dar Brett17-Oct-19 17:12 
GeneralRe: Order of element processing Pin
kalberts17-Oct-19 19:30
kalberts17-Oct-19 19:30 
GeneralRe: Order of element processing Pin
Stuart Dootson18-Oct-19 0:48
professionalStuart Dootson18-Oct-19 0:48 
GeneralRe: Order of element processing Pin
giulicard17-Oct-19 21:41
giulicard17-Oct-19 21:41 
GeneralRe: Order of element processing Pin
Gerry Schmitz18-Oct-19 3:03
mveGerry Schmitz18-Oct-19 3:03 
QuestionRe: Order of element processing Pin
Mark Smeltzer18-Oct-19 20:38
Mark Smeltzer18-Oct-19 20:38 
GeneralRe: Order of element processing Pin
obermd18-Oct-19 3:15
obermd18-Oct-19 3: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
kalberts18-Oct-19 3:21
kalberts18-Oct-19 3:21 
GeneralThought of the Day Pin
OriginalGriff17-Oct-19 4:51
mveOriginalGriff17-Oct-19 4:51 
GeneralRe: Thought of the Day Pin
W Balboos, GHB17-Oct-19 5:21
W Balboos, GHB17-Oct-19 5:21 
GeneralRe: Thought of the Day Pin
RickZeeland17-Oct-19 6:17
mveRickZeeland17-Oct-19 6:17 
GeneralRe: Thought of the Day Pin
Gary Wheeler17-Oct-19 6:39
Gary Wheeler17-Oct-19 6:39 
GeneralRe: Thought of the Day Pin
Daniel Pfeffer17-Oct-19 9:12
professionalDaniel Pfeffer17-Oct-19 9:12 
GeneralRe: Thought of the Day Pin
Herman<T>.Instance17-Oct-19 9:48
Herman<T>.Instance17-Oct-19 9:48 
GeneralRe: Thought of the Day Pin
kalberts17-Oct-19 12:21
kalberts17-Oct-19 12:21 
GeneralRe: Thought of the Day Pin
Daniel Pfeffer18-Oct-19 0:03
professionalDaniel Pfeffer18-Oct-19 0:03 
GeneralAn arm and a leg might have been a fair price! PinPopular
CodeWraith17-Oct-19 0:24
CodeWraith17-Oct-19 0:24 
GeneralRe: An arm and a leg might have been a fair price! Pin
OriginalGriff17-Oct-19 1:51
mveOriginalGriff17-Oct-19 1:51 
GeneralRe: An arm and a leg might have been a fair price! Pin
CodeWraith17-Oct-19 2:00
CodeWraith17-Oct-19 2:00 
GeneralRe: An arm and a leg might have been a fair price! Pin
OriginalGriff17-Oct-19 2:11
mveOriginalGriff17-Oct-19 2:11 
GeneralRe: An arm and a leg might have been a fair price! Pin
CodeWraith17-Oct-19 2:22
CodeWraith17-Oct-19 2:22 
GeneralRe: An arm and a leg might have been a fair price! Pin
dandy7220-Oct-19 4:19
dandy7220-Oct-19 4:19 
RantI'm calling this a fail... Pin
Sander Rossel17-Oct-19 0:07
professionalSander Rossel17-Oct-19 0:07 
GeneralRe: I'm calling this a fail... Pin
den2k8817-Oct-19 0:59
professionalden2k8817-Oct-19 0: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.


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   497 votes