Re: [RFC] Reclassifying engine warnings

From: Date: Wed, 28 Aug 2019 20:01:32 +0000
Subject: Re: [RFC] Reclassifying engine warnings
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-106771@lists.php.net to get a copy of this message
Hi! > Javascript has treated undefined variables as a catchable exceptions since > (I think?) forever. Which seems to be why I open a random Javascript file in our codebase and see this: var wikibase = wikibase || {}; wikibase.queryService = wikibase.queryService || {}; wikibase.queryService.ui = wikibase.queryService.ui || {}; wikibase.queryService.ui.toolbar = wikibase.queryService.toolbar || {}; wikibase.queryService.ui.toolbar.Actionbar = ... (not my code but I've seen it a lot) IMHO, this is language getting in a way and people writing boilerplate to avoid "service" that is not actually needed. > much work. This means its developers often don't improve much either, which I don't think PHP should be a language that "builds character" by forcing people to do more work than it's necessary for them, in order for them to "improve". I think it should be as easy as possible, and if somebody wants to learn how the bits move, one can always pick up a good book or go to a Coursera course, etc. -- Stas Malyshev smalyshev@gmail.com

« previous php.internals (#106771) next »