Giter Club home page Giter Club logo

angular-project-draft's People

Contributors

daftmonk avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

angular-project-draft's Issues

Services and Filters folders

We want at least the client/app/routes and client/app/components folders, but theres arguments against having services and filters folders.

It's hard to think of filters and services as components by themselves. They're globally available across the app, and might be used across many different components. And in large apps you may have a very large number of services and filters that would bloat the components folder and make it hard to find things.

The services and filters folders would be used for services and filters that are used across the app, not just by a specific component. Component folders could contain services and filters specific to that component.

The alternative would be to put services and filters inside category folders inside of components. For example:

components/apiRepository/user.service.js
components/apiRepository/item.service.js
components/nameFilters/name.filter.js
components/dateFilters/user-age.filter.js
components/dateFilters/time-posted.filter.js

Thoughts on which method would be preferred?

I don't like "public" as a directory name

I'm uneasy about the word "public" as a directory name. It seems to imply that whatever is not contained in it is "private" - either requiring authentication or remaining on the server side. If there's a "public" directory, I expect there to be a "private" directory next to it, but there isn't. Also, a lot of people use the word "public" in place of "client" and in contrast to a directory named "server". So that's confusing too.

"public" as a directory name just seems like a relic from the past when an app server rendered things server side and static things were handled by a separate server. To me, the word "public" doesn't distinguish clearly what should go here from what should not.

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.