Git Product home page Git Product logo

Comments (1)

sovata8 avatar sovata8 commented on August 15, 2024

Thanks for raising this issue.

I agree that there are many reasons why the currently chosen names (uiView_mainContent etc.) are not great.

  • too long
  • contain underscores
  • start with redundant information (the type of the property)
  • do not follow 'natural word order' (e.g. 'view left' vs. 'left view')
  • not consistent with UIKIt / Cocoa Touch.

However for my projects I have come to prefer this style of naming, for various reasons, including the fact that all my IBOutlets (or subview properties) sort together by type in auto-complete lists and in interface builder. I have my justification for the underscore and the overly descriptive names too, but not sure if I should go into all these details in this message.

I understand I should strive to follow conventions and naming styles and why that's important. And I do it most of the time, unless there is a situation where I feel the benefits of 'breaking' the established style outweigh the drawbacks. This is one such situation.

Of course I am always open to changing my mind on this (being persuaded otherwise), but for now I will close the issue.

from revealingtableviewcell.

Related Issues (11)

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.