An Idea Exchange for SAS software and services

Comments
by Super User
on ‎03-21-2017 03:35 PM

Are you using a service to manage your code, ie Git?

by Contributor rileyd
on ‎03-21-2017 03:42 PM
No, all the code is managed within Enterprise Guide (version 6.1).


by Regular Contributor
on ‎03-21-2017 05:04 PM

Interesting idea. There are some syntax highlighters I've used that will highlight instances of TODO within comments. You can use external text editors to edit your SAS code, then open them in EG for running them. Here's an example of one text editor with customizable syntax highlighting for comments.

 

What @Reeza asked about is version control. This is separate from the IDE or integrated development environment you use to develop code (i.e., SAS Enterprise Guide). Really all software developers should be using some form of version control. Version control software tracks changes in your code, and enables you to quickly go back in the history, and do things like branching.

 

If you are using git, for example, you could make a separate code branch for research code. And through commit messages, you can see exactly when your code was modified and how.

 

There's a lot more that can be said about the benefits of version control. I do recommend the sasCommunity.org page and Git and GitHub in Plain English to learn more. And I'm happy to talk more about the benefits of git :-)

 

As far as notes go, that's the point of comments in general. You can easily search for "todo", "TODO", or "To Do" using CTRL + F. As far as testing, sometimes having separate code for testing is recommended. Your idea of highlighting different types of comments (based on some flag) is interesting. I personally would get confused and like my comments all to be highlighted the same way, but I am very interested to see what others think.

by Contributor rileyd
on ‎03-22-2017 08:49 AM
Hey - thanks for your response! I agree with you about version control but currently we don't have a tool for that. I'm looking forward to when we upgrade to EG 7.1 because I'm interested in checking out its new version control capabilities. Currently I manage versions by making a copy of my existing development programs and moving them to a new process flow labeled production.



As far as formatting the comments - I agree with you on Notes that that's essentially what a comment is and using the find function is easy enough when it comes to searching for To Do and Research items. However, we've had times where items like To Dos or Temporary fixes that needed to be addressed (usually backed out) were missed because they were buried in a mass of green (comments & commented out code that was retired/replaced). In general, we're trying to make sure these items make it on to our backlog so they don't get missed but my thought is being able to format them to identify them as more than just a comment would be helpful.



I'll definitely check out the links you provided. Thanks again!


by Regular Contributor
on ‎03-22-2017 10:25 AM

@rileyd, you mention missing fixes that need to be addressed. One possible change to your workflow is using a Kanban board. You can of course modify it to fit your team/project, and there are software tools available for this. It can be a nice way to easily visualize what still exists - and not have to rely on notes "buried" in code. You can even include a column/area by person.

 

When using a Kanban board, you can maintain a backlog tracking document (for example, a list in a spreadsheet with things like priority) for items not yet on the board/on the backburner.

 

Just a suggestion.

Idea Statuses
Top Liked Authors