Re: A rant on an Ideal languages Was: Re: RNG Test: Code to
- Posted by Joel Crook <joel at MAIL.K-A.COM> Feb 17, 2000
- 549 views
At 09:59 PM 02/17/2000 -0500, you wrote: <SNIP!> > >COBOL is pretty non-esoteric. It isn't attracting a lot of new converts as >far as I know. Maybe its all in my way of looking at things. Ever since M$ conquored the compiler market with its belief that its "event driven" concept of visual programming is the way things should be done I've gagged on just about every one of the new language offerings. Java (Visual cafe and J++) is pretty yukky. Why? because the language was only half thought out when it was originally released and keeps changing too fast for its own good. And the other visual offerings detract from what my first attaction to programming was: solving problems. >Most of the complexity really comes from trying to work with other stuff, such >as Windows. Anyone who figures a way to communicate with Windows without the >complexity will be famous. (And make Micro$oft really mad. M$ doesn't want >anyone else writing Windows programs, you know.) I haven't had the opportunity yet to wotk with the win32lib but I'd say the best way to deal with the complexity would be to "hide" it as much a possible. The idea of reuseble code is (and what I've hacked at for years in rusty ol' turbo pascal) is make a working environment once and only change what needs to be changed. Build a win32 library with such things such as "procedure application" which creates a window frame with file open, close, etc. No need to specify anything other than calling the procedure "application." WHAM! no need to deal with windows. I don't care much about what's under the hood and don't want to know as long as it does not slow the final app down. Here is a simple tcl/tk program that creates a window, a button in the window that says "Hello world" and then shrinkwraps the window to the size of the button and will do it in windows, unix, mac and linux... exec wish "$0" "$@" /*this launches the the TCL Window Interpreter SHell*/ button .hello -text "Hello, world" -command { puts stdout "Hello, world"; destroy . } pack .hello But it is not likely the next language you learn will be TCL/Tk because it really was not intended to be a programming language (although I know of a several programs written completely in TCK/Tk - one of them a xml web server) but TCL/Tk was targeted as a scripting language to glue together c programs with a GUI in unix/linux environments. If we could get the equivalent of Tk in Euphoria windowing things would get a whole lot easier. >laugh at me. > >Regards, >Irv Thanks Irv for the kind response, Joel