TweetFollow Us on Twitter

Apr 96 Dialog Box
Volume Number:12
Issue Number:4
Column Tag:Dialog Box

Dialog Box

By Matt Neuburg, letters@mactech.com

Pascal Forever

The following exchange is reprinted with permission from TidBITS #305 (27-Nov-95 - email info@tidbits.com for more information). In that issue, Adam Engst interviews Peter N Lewis, author of Anarchie, FTPd, and other well-known shareware tools. We thought our readers might be interested in this excerpt, where Peter speaks about languages:

Adam: You and Quinn are known for being major Pascal supporters in a development world that has largely gone over to C and C++. You even had anti-C t-shirts at the last few World-Wide Developer’s Conferences. Without getting too technical, why do you continue to stick with Pascal, and does that cause problems at times?

Peter: The normal C argument goes like this: “Everyone else is using C, so therefore it must be good.” Every Mac user should recognize that statement in a slightly different form, “Everyone else is using PCs, so therefore they must be good.”

Basically, I continue to use Pascal because I’m more productive in it. I consider using Pascal to be a strategic advantage, doubly so when compared to C++. I’ve been reading a C++ book recently (know thine enemy), and every time I turn the page I see new ways to make tiny errors that are catastrophic and impossible to debug. I’m amazed that anyone can produce a working C++ program.

However, programming in Pascal does cause occasional problems. The Apple interfaces tend to be quite broken. I wanted to try out QuickDraw GX, and it took a year of new versions before they finally got one that I could hack to work with Pascal. By then I’d given up on GX. In some ways this is actually a good thing for me: I have way too many projects and not enough time to do them all, so not being able to work with GX or OpenDoc is helpful for limiting my options.

Please Don’t Kill The Umpire, He Is Doing His Best

There has been, of late, mild criticism of the premises of the programmer’s challenge, and now (Don Winston in November’s Dialog Box) of the style.

I am only an amateur on the Mac, yet I find your magazine stimulating, thought-provoking and - hell, that’s enough praise for the moment. My views cannot in this case reflect those of the majority of your readers, but may correspond to those of a significant minority.

The demands have been: (1) to play down optimisation, arguing that hardware will catch up (the Microsoft approach), and now (2) the rejection of the use of “goto” in a winning answer; plus (3) that the programmer’s challenge become more practical or open itself up to more languages.

That MacTech published these comments could mean two things (and most probably more): (1) it is an open forum for constructive criticism, including criticism of itself; (2) that it is preparing the minds of readers for changes in certain items.

And it is this second possibility that worries me the most.

The PC rules demand “correctness, speed, size and elegance (in that order of importance)”. While the first is obvious, the others are essential to the spirit of your magazine. Speed and size implies that you are looking at real joes working in front of real machines - we can’t all just run out and buy PowerPC dream machines. Each time I have to launch W*rd 6 on our 660AV, I wince, scream and plead - I don’t want all software evolving into this.

Elegance is subjective; it is in part what Don Winston is protesting about. He complains that “old notions of ‘efficiency’ are passé”. No, the Programmer’s Challenge is a mindfest that makes one jump up and shout, “Yes, of course, it’s so obvious now!” It is one of those nuggets that I, as an amateur who would never consider entering the challenge, cherish. And to change these subtle criteria would diminish your magazine as a whole.

Increasing the number of language platforms for the challenge has already been argued as impractical by the column’s flame-keeper in order for him to respect deadlines. Fine. Although I would be interested in the possibility to occasionally study just the winning algorithms, perhaps in pseudo code, rather than their implementations in a specific language, the crux of the challenge lies in the participants feeling/knowing the limits of the language, and then finding the best solution.

That particular readers are not happy with specific subjects chosen for the challenge will always exist, but if you try to render it more “practical” for one group, another will protest that it is still further from their sphere of interest, and when one looks back over a year’s challenges it is a mighty varied lot: a little for everyone, and a lot for most.

Keep up the good work.

jonathan munn
format@dialup.francenet.fr

Bob Boonstra Replies...

Jonathan,

Rest assured that we have no intention of changing the primary focus of the Programmer’s Challenge from efficiency to anything else.

The letter from Don Winston makes the valid point that improvements in technology have allowed software professionals to give other factors (usability, portability, encapsulation, reliability, etc.) greater consideration, at the expense of efficiency. But, as you point out, one need only look at the performance of some popular office automation applications to see that vendors are still able to generate sluggish code, despite the improvements in hardware. In fact, I believe that the demands on software will always exceed what the technology can support. The Challenge is intended to address techniques for those time-critical functions. It doesn’t pretend to be a balanced approach to teaching every aspect of software development. I think efficiency is still relevant - less universally so, but still relevant.

It is gratifying to hear that you find most of the subjects chosen for the Challenge to be interesting. We strive to find a variety of problems that are interesting to readers, interesting to participants, sometimes useful, solvable in the limited time available, and scoreable in even less time. Suggestions from readers are always welcome.

Thank you for your comments, and remember that anyone - including a self-described amateur - is invited to enter the Programmer’s Challenge.

Bob Boonstra
bob_boonstra@mactech.com

Hooray for the Umpire, the Players, and Everyone

I just want to commend Bob on such an interesting challenge. [But which one is he talking about? Probably January’s “Sliding Tiles”, we figure. - man] This is one of the few that I didn’t even know how to solve, let alone how to solve it efficiently. Hats off to anyone who breaks the brute-force barrier and applies some finesse to this one.

The test code was excellent and invaluable.

While I’m at it I’d also like to congratulate Eric Lengyel for such a clean solution to the Enclosing Bounds problem. I started working on it myself, but all of the various conditions (odd boundaries, different pixel sizes) made a simple-sounding problem too complex for the time I had. Eric, however, cut through the complexity and delivered some excellent code.

Xan Gregg

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

CleanMyMac X 4.5.4.4 - Delete files that...
CleanMyMac makes space for the things you love. Sporting a range of ingenious new features, CleanMyMac lets you safely and intelligently scan and clean your entire system, delete large, unused files... Read more
EtreCheck Pro 6.1.6 - For troubleshootin...
EtreCheck is an app that displays the important details of your system configuration and allow you to copy that information to the Clipboard. It is meant to be used with Apple Support Communities to... Read more
BlueStacks 4.140.12 - Run Android applic...
BlueStacks App Player lets you run your Android apps fast and fullscreen on your Mac. Feature comparison chart Version 4.140.12: Highlights/Bug Fixes: You may now switch tabs without experiencing a... Read more
ESET Cyber Security 6.8.300.0 - Basic in...
ESET Cyber Security for Mac provides powerful protection against phishing, viruses, worms, and spyware. Offering similar functionality to ESET NOD32 Antivirus for Windows, ESET Cyber Security for... Read more
Wireshark 3.0.7 - Network protocol analy...
Wireshark is one of the world's foremost network protocol analyzers, and is the standard in many parts of the industry. It is the continuation of a project that started in 1998. Hundreds of... Read more
Brackets 1.14.1 - Open Source Web design...
Brackets is an Open-Source editor for Web design and development built on top of Web technologies such as HTML, CSS, and JavaScript. The project was created and is maintained by Adobe, and is... Read more
BBEdit 13.0.3 - Powerful text and HTML e...
BBEdit is the leading professional HTML and text editor for the Mac. Specifically crafted in response to the needs of Web authors and software developers, this award-winning product provides a... Read more
DEVONthink Pro 3.0.3 - Knowledge base, i...
DEVONthink is DEVONtechnologies' document and information management solution. It supports a large variety of file formats and stores them in a database enhanced by artificial intelligence (AI). Many... Read more
Firefox 71.0 - Fast, safe Web browser.
Firefox offers a fast, safe Web browsing experience. Browse quickly, securely, and effortlessly. With its industry-leading features, Firefox is the choice of Web development professionals and casual... Read more
Thunderbird 68.3.0 - Email client from M...
As of July 2012, Thunderbird has transitioned to a new governance model, with new features being developed by the broader free software and open source community, and security fixes and improvements... Read more

Latest Forum Discussions

See All

Dragon Raja is an upcoming MMORPG that b...
Dragon Raja is an upcoming MMORPG from Zulong Games. It’s proven to be an extremely popular title over in China. It’s set in a very cool-looking Cyberpunk world that oozes style. It’s now available for pre-register on Android. [Read more] | Read more »
Dream Detective is an object hunting gam...
Dream Detective is a very beautiful looking object hunting game from FunPlus and Game Century. I’m generally not massively fond of these types of games but this one certainly has an art style you don’t see often that really helps it stand out. It’... | Read more »
Fighting with colonialism in Queen'...
Sometimes it’s hard to stick with a game, even if you enjoy playing it. Perhaps it’s just too stressful, perhaps it disturbs you, or—as is the case with Queen’s Wish: The Conqueror—you might not be down with its narrative conceit. | Read more »
Play Sea Turtle Rescue and help save rea...
For most of us playing a mobile game is just a harmless way to kill some time, fight boredom or get a nice quick adrenaline fix. We don’t expect this to have any influence whatsoever on any other creature in the world. | Read more »
16-bit fun awaits in Super Arcade Racing...
Old is the new ‘new’, if the popularity of retro games is anything to go by, and nostalgia junkies now have one more reason to get excited. OutOfTheBit studio has just launched a top-down racing game that pays homage to those arcade favourites of... | Read more »
Go buy Xenowerk Tactics right now
Over the Thanksgiving break, a bunch of games went on sale, but one in particular is worth talking about. Xenowerk Tactics, in addition to falling to $3, got a huge content update alongside it’s price drop. Even though the game is back up to full... | Read more »
Intense VR first-person shooter Colonicl...
Our latest VR obsession is Colonicle, an intense VR FPS, recently released on Oculus and Google Play, courtesy of From Fake Eyes and Goboogie Games. It's a pulse-pounding multiplayer shooter which should appeal to genre fanatics and newcomers alike... | Read more »
Mario Kart Tour drifts onto the streets...
Mario Kart Tour will start its latest season in a new location next week, continuing its tour around the big cities of the world after already visiting Paris, Tokyo and New York. The next destination will be London and it will also be joined by a... | Read more »
Cut The Rope's Om Nom returns in a...
Cut the Rope's little green glutton Om Nom has returned to iOS and Android for another game. Instead of a puzzle game though Om Nom: Merge is an idle game that's centred around fusing various creatures to create new species. [Read more] | Read more »
Figment: Journey Into the Mind is a surr...
Figment: Journey Into the Mind is the latest game from Bedtime Digital Games, a company with a love for the surreal and dream-like settings. Figment is no different and has puzzles designed around the concept of the left and right sides of the... | Read more »

Price Scanner via MacPrices.net

21″ 3.6GHz Quad-Core 4K iMac now on sale for...
B&H Photo has the 2019 21″ 3.6GHz Quad-Core 4K iMac in stock today and on sale for $1149 as part of their Cyber Week 2019 sale, including free next day shipping to many locations in the US. That’... Read more
Get a 128GB 10.2″ iPad for $50-$60 off Apple’...
B&H Photo dropped prices this afternoon on 128GB 10.2″ WiFi iPads to $50-$60 off Apple’s MSRP. Prices start at $369, and overnight shipping is free to many addresses in the US. B&H’s prices... Read more
Cyber Week sale: B&H offers $150-$300 dis...
B&H Photo has new 2019 13″ 2.4GHz 4-Core Touch Bar MacBook Pros on sale today for up to $300 off Apple’s MSRP as part of their Cyber Week 2019 sale. B&H is offering free overnight shipping to... Read more
Miss out on Black Friday/Cyber Monday iPad Pr...
Apple has Certified Refurbished 11″ iPad Pros available on their online store for up to $220 off the cost of new models. Prices start at $679. Each iPad comes with a standard Apple one-year warranty... Read more
Save up to $250 on 12.9″ iPad Pros with these...
Apple has Certified Refurbished 12.9″ iPad Pros available on their online store for up to $250 off the cost of new models. Prices start at $849. Each iPad comes with a standard Apple one-year... Read more
Back in stock! 4-core and 6-core 2018 Mac min...
Apple has restocked Certified Refurbished 2018 Mac minis on their online store for $120-$170 off the cost of new models. Each mini comes with a new outer case plus a standard Apple one-year warranty... Read more
Cyber Week 2019 sale: 13″ MacBook Airs for up...
Amazon has new 2019 13″ MacBook Airs on sale for up to $200 off Apple’s MSRP as part of their Cyber Week 2019 sale, with prices starting at $899, each including free shipping. These are the same... Read more
Roundup of current Cyber Week 2019 deals on A...
Apple resellers are offering discounts ranging up to $44 off MSRP on AirPods for Cyber Week 2019. Here are where to find the best deals today on various AirPods models. See our AirPods Price Tracker... Read more
Save on a new 16″ MacBook Pro with these Cybe...
Apple resellers are offering discounts on new 16″ MacBook Pros ranging up to $200 off MSRP for Cyber Week 2019. Other savings include free overnight delivery and no sales tax in 48 states. Here are... Read more
Cyber Week sale: Base 13″ 1.4GHz MacBook Pro...
Apple resellers have base 13″ 1.4GHz MacBook Pros on sale today for $150 off Apple’s MSRP, only $1149, as part of their Cyber Week 2019 sales. B&H will include free overnight delivery to many... Read more

Jobs Board

Services Business Development Manager - *App...
Services Business Development Manager - Apple Tempe, AZ, USAtlanta, GA, USPlano, TX, USHerndon, VA, USColumbus, OH, USNashville, TN, USTampa, FL, USCharlotte, NC, Read more
*Apple* Mobility Sales Professional - Best B...
**748480BR** **Job Title:** Apple Mobility Sales Professional **Job Category:** Store Associates **Store NUmber or Department:** 001194-Greeley-Store **Job Read more
QA Manager, *Apple* - ViacomCBS (United Sta...
…on over 15 platforms. This role will specifically be responsible for overseeing the Apple QA team, which consists of 3-5 people. This candidate will work with Read more
*Apple* Mobility Sales Professional - Best B...
**748200BR** **Job Title:** Apple Mobility Sales Professional **Job Category:** Store Associates **Store NUmber or Department:** 000807-Hoover-Store **Job Read more
*Apple* iOS XCode Software Developer - eiWor...
…Solutions, LLC is currently looking for a consultant for the following role. Apple iOS XCode Software Developer Tasks the role will be performing: ? Mobile Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.