jiloconcierge.blogg.se

Sudo make me a sandwich explained
Sudo make me a sandwich explained













sudo make me a sandwich explained
  1. Sudo make me a sandwich explained how to#
  2. Sudo make me a sandwich explained software#

Standard locations vary across different platforms, The first step to working with a file or directory (it’s also easier to convert from a URL to a path than vice versa). In general, the use of URLs is preferred to paths, Often with variations of the same method for both.

Sudo make me a sandwich explained how to#

Which identify files and directories using a relational path.Īnd provide the full location of a resource from the root directory,Īnd show how to get to a resource from a given starting point.įile Manager has methods that accept both paths and URLs. Using a unique identifier separate from any directory structure. Paths are slash-delimited ( /) strings that designate a locationįile URLs are URLs with a file:// scheme in addition to a file path.įile Reference URLs identify the location of a file

  • File URL: file:///Users/NSHipster/Documents/article.md.
  • sudo make me a sandwich explained

  • Path: /Users/NSHipster/Documents/article.md.
  • Objects on the file system can be identified in a few different ways.įor example, each of the following represents The common currency for all of these operations are paths and file URLs. Whether they’re on local or networked drives or iCloud ubiquitous containers. Let’s take a look at the operations you’re most likely to performįile Manager offers a convenient way to create, read, move, copy, and delete We can’t possibly cover everything there is to knowĪbout working with file systems in a single article, This functionality is provided by the Foundation framework The only chance we have at making something that works That’s kind of what it’s like to interact with a file system. Might be read by robots that won’t be built for another 40 years,īy which time peanut butter is packaged in capsules You’re writing instructions for a thousand different robots.Ĭonsider what would happen if multiple robots tried to make a sandwich The lesson of breaking down a complex process into discrete stepsĪnd the malicious compliance from lack of specificityĮchoes the analogy of “programming as wish making”īut let’s take the metaphor a step further,Īnd imagine that instead of commanding a single robot to Takes every instruction as literally as possible,Īsk the robot to “put peanut butter on the bread”,Īnd you may end up with an unopened jar of Jifįorget to specify which part of the bread to put the jelly on?ĭon’t be surprised if it ends up on the outer crust. Is to set out all the ingredients for a peanut butter and jelly sandwichĪnd ask the class give me instructions for assembly My favorite way to introduce the concept of programming There’s nothing like watching a concept like recursion

    Sudo make me a sandwich explained software#

    If you ever grow jaded by how fundamentally broken all software is, One of the most rewarding experiences you can have as a developer















    Sudo make me a sandwich explained