Blog
Product Updates

Managing Collections and Snippets

Coding best practices at your fingertips during code reviews

Dec 16, 2021
#
min read
Share
X

Table of contents

Happy December everyone.

We wish you a wonderful end of the year and hope you get some well-deserved rest.

So thankful to all of you for joining on this journey, and so excited about what’s ahead.

The team is pleased to announce enhanced ways to manage Snippets — coding best practices at your fingertips during code reviews.

We now have over 5,000 Snippets in more than 150 Collections for you to use.

Creating Custom Snippets While You Code

We heard you: while conducting code reviews, users want to add Snippets that can be reused in other reviews. You also told us that the User Interface needed to be magnifico.

Here’s what we’ve built.

While writing up a comment, users can click on ‘Save to My Snippets collection’.

When you click ‘Comment,’ a model will open where you add a title and labels if you would like:

If you are re-using an idea that came from someone else, please click ‘Not your original work’ and fill out the Author’s details. It gives credit to great coders and thinkers, and it helps you and others remember the source for future inspiration.

Collections Searching and Filtering

Now that there are so many Collections of Snippets (see below!), users have asked for more ways to find the right Collections to use.

There are now two ways to manage Collections.

First, on the Collections home page, you will see filters that enable you to select Collections based on certain languages or code review types (such as reviewing algorithms vs. coding style).

Second, in the top right of the Snippets home page, you can toggle to a List view instead.

Now Over 5,000 Snippets

Our team has been adding Collections of Snippets for you to use.

We are now at 150 Collections with over 5,000 Snippets, and counting.

We’re focusing on building comprehensive sets of Collections for the most common languages first… with users getting to cut the line for their favorites. ;0

Some recently added Collections include:

A Five-Minute Introduction to Python’s Style Guide: PEP 8

Advanced Tips & Tricks to Optimize your Terraform Code by Slalom

AOSP Java Code Style for Contributors

One of my personal favorite Snippets came from Nat Torkington’s Twitter post. He wrote about the importance of starting with the data:

Nat graciously gave us permission to include this Snippet in the Philosophies collection:

What’s next?

Keep your ideas coming for insights you’d like to see included. Whether individual or groups of best practices, we’re looking to expand our already-growing library and would love your help to do so.

As always, grateful for your input.

Have a marvelous end of the year.

Matt
Your Friendly Neighborhood CEO-Type Person

No items found.
Want to learn more?
Learn more about AI Code Monitor with a Demo

Are you ready?

Sema is now accepting pre-orders for GBOMs as part of the AI Code Monitor.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.