Click here to Skip to main content
15,901,035 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: VB haters, look away Pin
dandy722-Aug-17 9:04
dandy722-Aug-17 9:04 
GeneralRe: VB haters, look away Pin
RedDk2-Aug-17 8:35
RedDk2-Aug-17 8:35 
GeneralRe: VB haters, look away Pin
atverweij2-Aug-17 22:54
atverweij2-Aug-17 22:54 
GeneralRe: VB haters, look away Pin
Bryan Schuler3-Aug-17 5:54
Bryan Schuler3-Aug-17 5:54 
GeneralRe: VB haters, look away Pin
ZurdoDev3-Aug-17 5:59
professionalZurdoDev3-Aug-17 5:59 
GeneralRe: VB haters, look away Pin
ClockMeister3-Aug-17 8:05
professionalClockMeister3-Aug-17 8:05 
GeneralRe: VB haters, look away Pin
ZevSpitz3-Aug-17 8:15
professionalZevSpitz3-Aug-17 8:15 
GeneralRe: VB haters, look away Pin
kalberts4-Aug-17 1:00
kalberts4-Aug-17 1:00 
We still miss some loop constructs that are offered by other languages. One that I miss the most is

for ListElementPointer in ListHead:NextField ....

to traverse a singly linked list, linked through NextField. Then I miss the value set:

for CodeValue in 1, 3, 10..20, 32 do ...

(a total of 14 iterations). And then, another favorite:

for ever do ...

In C, I sometimes "simulate" this by #define ever (;;). Finally, I miss the alternative loop exits, where you specify a different loop tail depending on whether the value set was exhausted or the loop was terminated prematurely because some condition was fulfilled:

for ... do
... code ...
while <contidion for="" looping="" further="">
... maybe more code ...
exitwhile
...code handling premature loop termination...
exitfor
...code handling value set exhausted termination...

An important aspect of the exitfor/exitwhile is that the code is inside the scope or the for statement, so that e.g. variables decalared within the for is available to the tail processing.
If you want to simulate this by setting some termination flag and then break, and after the loop testing: if TerminationCause=exhaustion do <this> else <that>, then what went on in the loop is essentially lost, so this is certainly not a good replacement (and it takes a lot more typing).

Finally, for all sorts of nested constructs: I strongly favor that a label identifies a block, rather than a point. I want to be able to do an: exit InnerLoop; or: exit OuterLoop; or even: exit MyProcedure; without the need for setting all sorts of flags that must be tested after InnerLoop and after OuterLoop and from there take new exit to an outer level.

You could say that this is little more than syntactic sugar. Sure, but syntactic sugar makes programming sweet.
GeneralNASA hiring; your job: “Planetary Protection Officer” Pin
BillWoodruff2-Aug-17 3:37
professionalBillWoodruff2-Aug-17 3:37 
GeneralRe: NASA hiring; your job: “Planetary Protection Officer” Pin
CodeWraith2-Aug-17 3:46
CodeWraith2-Aug-17 3:46 
GeneralRe: NASA hiring; your job: “Planetary Protection Officer” Pin
Tim Carmichael2-Aug-17 3:54
Tim Carmichael2-Aug-17 3:54 
GeneralRe: NASA hiring; your job: “Planetary Protection Officer” Pin
CodeWraith2-Aug-17 4:33
CodeWraith2-Aug-17 4:33 
GeneralRe: NASA hiring; your job: “Planetary Protection Officer” Pin
Jim_Snyder3-Aug-17 2:55
professionalJim_Snyder3-Aug-17 2:55 
GeneralRe: NASA hiring; your job: “Planetary Protection Officer” Pin
Jim_Snyder3-Aug-17 2:57
professionalJim_Snyder3-Aug-17 2:57 
GeneralRe: NASA hiring; your job: “Planetary Protection Officer” Pin
Leng Vang3-Aug-17 7:04
Leng Vang3-Aug-17 7:04 
GeneralRe: NASA hiring; your job: “Planetary Protection Officer” Pin
maze33-Aug-17 22:55
professionalmaze33-Aug-17 22:55 
GeneralRe: NASA hiring; your job: “Planetary Protection Officer” Pin
CodeWraith3-Aug-17 22:59
CodeWraith3-Aug-17 22:59 
GeneralRe: NASA hiring; your job: “Planetary Protection Officer” Pin
User 101325462-Aug-17 3:46
User 101325462-Aug-17 3:46 
GeneralRe: NASA hiring; your job: “Planetary Protection Officer” Pin
CodeWraith2-Aug-17 3:51
CodeWraith2-Aug-17 3:51 
GeneralRe: NASA hiring; your job: “Planetary Protection Officer” Pin
User 101325462-Aug-17 4:34
User 101325462-Aug-17 4:34 
GeneralRe: NASA hiring; your job: “Planetary Protection Officer” Pin
OriginalGriff2-Aug-17 3:52
mveOriginalGriff2-Aug-17 3:52 
GeneralRe: NASA hiring; your job: “Planetary Protection Officer” Pin
PIEBALDconsult2-Aug-17 4:21
mvePIEBALDconsult2-Aug-17 4:21 
GeneralRe: NASA hiring; your job: “Planetary Protection Officer” Pin
Mark Parity2-Aug-17 4:36
Mark Parity2-Aug-17 4:36 
GeneralRe: NASA hiring; your job: “Planetary Protection Officer” Pin
PIEBALDconsult2-Aug-17 6:29
mvePIEBALDconsult2-Aug-17 6:29 
GeneralHow to change Thames and skins in c# desktop application ??? Pin
Member Krishna Shukla2-Aug-17 3:35
Member Krishna Shukla2-Aug-17 3:35 

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