Forum > Other

My confession - I am a Pascal sinner . Reply to this with your own Pascal sins.

(1/5) > >>

Ten_Mile_Hike:
I never use "Try Except Finally"  in my code and I
don't read the documentation unless my code fails
compilation.

Go ahead and roast me...I can take it.
I will ask Niklaus Wirth for forgiveness in my prayers tonight.

kapibara:
I have stored rows of text without commenting them out in the space after the units end.

circular:
I have written procedures that span over countless screens.

Thaddy:
Despite Wirth's intentions, I confess I often write bad code....(not THAT often)
In my days as an assistent teacher at university in 1981 (USCD PASCAL, APPLE II, but also Algol Vax/Vms) I seem to have been more careful? Dunno why, but I got some of it back...

MarkMLl:
I sometimes use GOTO inside a CASE to simulate C-style behaviour:


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} --- case ParamCount() of  1: begin// Special handling here for the one-parameter case, e.g. --help and --version.oneParam:        option(ParamStr(1))      end;  2: begintwoParam:// Special handling here for the two-parameter case.        option(ParamStr(2))        goto oneParam      end;... 
MarkMLl

Navigation

[0] Message Index

[#] Next page

Go to full version