I am an OpenEdge (aka Progress) developer that loves clean code and good looking applications that are easy to use. My main pet project is the Progress DataDigger
FUNCTION manhattan RETURNS INTEGER
( x1 AS INTEGER, y1 AS INTEGER
, x2 AS INTEGER, y2 AS INTEGER):
RETURN ABS(x2 - x1) + ABS(y2 - y1).
END FUNCTION.
MESSAGE manhattan(5,2,7,3)
VIEW-AS ALERT-BOX INFORMATION BUTTONS OK.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Progress 4GL (aka OpenEdge ABL)