![]() But this is extremely slow and tedious, so most likely you'll just end up going with the first thing that's close enough. ![]() When the quick search fails you end up paging down through the list of functions, scanning over the names and maybe the first couple sentences of the descriptions, trying to find a good fit. But often what you're looking for doesn't come up, or else what comes up is only one of the many functions that could potentially do what you want, and the first one you find isn't actually best option. Then you need to control-f to try to find a tool that does roughly what you're looking for. That 'page' might actually be dozens or hundreds of pages long. And for most relatively minor problems, it's usually faster to just write a new function rather than trying to find out if a better solution already exists.įirst you need to do a Google search to find the right page in the documentation. The problem is that when you're not an expert at a given language then it's not obvious what functionality is already built in. 1 How can we do this? One strategy is just to use the built-in tools of the language whenever possible rather than writing our own code that duplicates functionality. After all, the most readable line of code is always the one that isn't there. The most obvious solution is simply by programming less. That is, given that it's no longer feasible to be an expert in all the tools we're required to use on a daily basis, how can we possibly produce code that's not just good enough some of the time, but that's consistently well commented, easy to read, efficient, and reusable? The question, then, is how can we possibly produce high quality code? Learning to program has always been challenging for beginners, but these days there are so many disparate pieces that even the best programmers are regularly called upon to write code in languages that they don't fully understand. These days building even the simplest website requires knowing at least half a dozen separate technologies, almost double if you want your site to be scalable and modular.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |