New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Commenting CSS #28
Comments
That or humans.txt. :-) |
I think it is only useful if everyone tracks exactly what they did to a site after the original author did the site in this file. Because these days, we can easily see who made the original site in in version history. So I personally don't see the point if its only tracking initial developer. But whatever the team wants to do is fine with me. I try to make most my comments as // so they don't appear in the production file. I believe though /*! will keep your comment from minifying. |
In the compressed css file, all comments are taken out. In scss /* comments are just multi line comments. They will only come out in the compiled css file if set to in the compiler. TB compiler is set to extract that unless it changed in the past 4 months or so. |
I want everyone that goes to the site to see the author. Including those who have access to version history and those who do not. I want traffic and management to easily go to any site that we built and quickly identify the person who built it. If we need to know who made a change and have to dig, we can go into version history and dig around. This will really help us when assigning projects and various reporting and researching task. Maybe even a link to the original build request JIRA ticket. Brock - can we test your non minifying comment solution? Example /*! |
@stephendelancey Non-minifying comments work. Always have. Built into Sass. I'm paranoid about spam, so I always use [at] in place of @, but whatever you guys want. :-) I use this on tmp to show our font licensing copyright, etc. /*! I don't think location is necessary, We want this to be as easy for devs to drop in or update as is possible. Is creation the launch date? |
Creation should be when the site is either started by the original dev or at latest sent to QA. If its launch date that could be a year from actual creation. Also is there any real reason to have the emails? Name alone should work fine as it is intended really for internal use it sounds like. |
I usually add the Author information on the TB1.0 sites that includes my On Mon, Sep 12, 2016 at 9:58 AM, michaelspellacy notifications@github.com
|
Yeah, I agree. Email can be optional. Okay on date. |
@lenawan I don't get a ton of spam, so perhaps [at] is a decent deterrent. If you do include email, just use that replacement, instead. It might help. |
That's a good idea! Sent from my iPhone
|
It sounds like adding a comment block to scss won't help solve Dave's problem. Scss is less visible then version history is. Spell, just for clarity sake this is where my brain is for comments: @* comments are razor/c# comments there for only server side. |
@stephendelancey try
|
I added this comments to my current project: On Tue, Sep 13, 2016 at 6:59 AM, Brock Barnett notifications@github.com
|
Including your JIRA handle not something I considered. Good idea. :-)
|
We can track everything with ticket number. Then we can shorten the (1) (2) On Tue, Sep 13, 2016 at 9:54 AM, michaelspellacy notifications@github.com
|
but the changing history should be appended after that On Tue, Sep 13, 2016 at 10:09 AM, contactport contactport@gmail.com wrote:
|
http://stackoverflow.com/questions/16844408/which-output-styles-remove-multiline-line-comments Answer to scss compiling |
@lenawan That is fine, you just have to add the ! to the comment, as indicated above in various comments. This is so it is not stripped and can be easily accessed by all. |
Again, in making this simple, I think all we need here is: /*! Email addresses are optional. Since Creation is more a date range, do we even need to include? Ticket enough to provide that detail, I think. This is just quick overview of info. |
Yes, perfect! Dave 812-989-9993 On Sep 13, 2016, at 12:15 PM, michaelspellacy <notifications@github.commailto:notifications@github.com> wrote: Again, in making this simple, I think all we need here is: /*! Email addresses are optional. Since Creation is more a date range, do we even need to include? Ticket enough to provide that detail, I think. This is just quick overview of info. You are receiving this because you were mentioned. |
oh yes. On Tue, Sep 13, 2016 at 12:02 PM, michaelspellacy notifications@github.com
|
you guys should probably take me off this email thread. I'm not the On 16-09-13 10:42 AM, lenawan wrote:
|
@bbarnett Ha! ha! Sorry about that! |
So I think I am going to go with this for my site. As it seems easiest on my eyes to read. I am dropping the email and only doing the jira tag.
I know its already been stated that this is only for creation but we keep running into the problem of trying to figure out who last edited what and why those changes haven't been pushed yet. So maybe we should look back into comments from the Product Support Devs. I am talking about any edits that are made after the original dev makes the site because some sites have tons of changes before launch.
|
I'm down with this, but I don't think Author is required as it is implied. For contact method, feel free to add JIRA handle, but use whatever the best way to contact you may be. Here is the thing, though. When it comes to changes to a site, we do more than just edit CSS, right? It would be really nice if we could come up with a process for implementing a changelog. Something like jobs.sitename.com/changelog |
Format similar to this: http://keepachangelog.com/en/0.3.0/ |
We would need to create it, per site, naturally, but would really need to get people into the habit of maintaining it. Hard to do, but perhaps no more difficult than getting folks to update the comments in the CSS. I mean, as good developer habits go, it behooves you to keep a log no matter where it may be. |
@dmechlin Asked me what my thoughts were in having UI's add their name/comment to the Sass/CSS, especially the lead on a project, so that we can easily reach out to each other if there are any issue on any given site. I do it out of habit for that reason and because an artist should ALWAYS sign their work. :-) Thoughts? I always found it convenient.
The text was updated successfully, but these errors were encountered: