Giter Site home page Giter Site logo

Comments (4)

greystar93 avatar greystar93 commented on September 28, 2024

@crispy8888 Chris LP and I independently decided awhile back during one of the books that it should be UIThings, and that's what I've done since then. But it does always stick out in copy and bug me.

Here's what Apple says:

Code font in text
[...]
Don’t mix fonts within a single word. Rewrite to avoid forming the plural of a word in code font.
Correct: values of type integer
Incorrect: integers

Of course, Apple says to do many things that we don't do, like put variables in text in italics. But this advice does seem sound to me. Though, probably it's a rare reader who cares if UIThings is technically incorrect.

Let's ask @gregheo, @wlinc and @rwenderlich what they think.

from english-style-guide.

gregheo avatar gregheo commented on September 28, 2024

I hate the look of UIThings. While it looks particularly horrible here on GitHub issues, it's not too bad on the site and books.

It's extra wordy, but I try to write "UIThing objects" or "Int values" or "NSWhatever instances" as appropriate. I'm not always consistent at editing these out but I do it sometimes.

Some authors like to name types a lot, which means you run into this plural thing a lot:

In your UIViewControllers it's important to have references to other UIViewControllers to then draw to their UIViews inside all of their frames.

Personally, I think too many shifts to code style is distracting. A UITableView is a "table view" and unless spelling out the exact class name is important, I'd rather write "table view".

In your UIViewController objects, it's important to have references to other view controllers to then draw to their views inside their frames.

from english-style-guide.

ceo-nada avatar ceo-nada commented on September 28, 2024

Agree with the sentiment that it looks odd, and I think it looks odd no matter the medium. Hence, I typically edit "pluralized" code out through strategic rewording for the sake of clarity, and so as not to assault the readers' eyes. (Or at least mine.)

I wish I knew when things are objects, values and instances, but I suppose I could make an educated guess and flag it with a TODO for the FPE. Would that be a process we could all agree upon?

Sent from my iPad

On Aug 21, 2015, at 5:48 PM, Greg Heo [email protected] wrote:

I hate the look of UIThings. While it looks particularly horrible here on GitHub issues, it's not too bad on the site and books.

It's extra wordy, but I try to write "UIThing objects" or "Int values" or "NSWhatever instances" as appropriate. I'm not always consistent at editing these out but I do it sometimes.

Some authors like to name types a lot, which means you run into this plural thing a lot:

In your UIViewControllers it's important to have references to other UIViewControllers to then draw to their UIViews inside all of their frames.

Personally, I think too many shifts to code style is distracting. A UITableView is a "table view" and unless the spelling out the exact class name is important, I'd rather write "table view".

In your UIViewController objects, it's important to have references to other view controllers to then draw to their views inside their frames.

β€”
Reply to this email directly or view it on GitHub.

from english-style-guide.

greystar93 avatar greystar93 commented on September 28, 2024

I could definitely agree with that process. If we're not sure how to rearrange, leave a TO-DO. We can also ask tech editors to keep an eye out for this.

from english-style-guide.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.