dfmcphee / code-style

Coding style and standards!
0 stars 0 forks source link

Points of discussion moving forward #6

Open beefchimi opened 8 years ago

beefchimi commented 8 years ago

The styleguide is lookin' real good, but there are still a number of points we need to discuss as a team. Let's try to come to a consensus on these things so we can get this styleguide completed and pushed out as soon as possible.

ry5n commented 8 years ago

I have a couple of macro concerns. Some of these are informed by my being new.

  1. What are the problems the new style guide is solving?
  2. Who is the audience? FED, or everyone working with the front-end?
  3. Does it make sense for this to be just about CSS?
  4. I have some experience with the original this was forked from. IMO it’s tooooo biiiiiig. Where can we trim some fat? What does the TL;DR look like?
ry5n commented 8 years ago

Some other random thoughts (micro-stuff, mostly):

beefchimi commented 8 years ago

Excellent points @ry5n !

I think overall, we just want to have an updated style guide that is accurate and leaner / easier to parse. There are some key things we want to think about and enforce moving forward, such as what kind of quotes to use, what comments look like, variable name syntax, property order, etc. Putting together a new style guide helps us align our vision.

The audience would be mainly Shopify FEDs, but its of course useful to anyone who has to implement front end code. Until our numbers grow further, there are still non FEDs who have to do FED work - as is the current situation on the Platform team.

I believe we should isolate our style guides to each language. Makes looking things up easier - in my opinion. After all, one of your comments was that this is tooooo biiiiiig. I would say its less intimidating when it stands on its own. I could be wrong though - I don't have particularly strong opinions about putting everything in one spot or having it stand on its own.

I completely agree with your "micro-stuff" points. And yea, I was pretty against sass maps for that exact reason... but in the case of colors, I actually think it is really useful. This is a decent article, but @dfmcphee was working on his own concoction. Worth getting his input on this.

ry5n commented 8 years ago

Thanks for the background on goals and audience. Super helpful!

A Guide for each language actually does make sense, just wanted to confirm – the component-based approach does mean we’re touching on architecture, which I think is fine.

Finally, re: Sass maps and colours… I discussed it briefly with Dom. @beefchimi do you want to discuss that (and all the discussion points) here, create separate issues, or something else?

beefchimi commented 8 years ago

I think it would be cool to split out conversations on individual topics to their own issue - that way we can really drill down on an idea and not pollute this thread, which is more of a general roadmap/ideas thread. Feel free to create an issue to discuss SASS maps or anything else on your mind!

dfmcphee commented 8 years ago

Thanks for the feedback, this is all great. I created a new repo and I will create separate issues for each of these to continue the discussion.