Best practices for using Snippets?

This forum is for all Flare issues not related to any of the other categories.
Post Reply
ccardimon
Propellus Maximus
Posts: 1571
Joined: Fri Jan 11, 2008 1:30 pm
Location: Horsham, Pennsylvania

Best practices for using Snippets?

Post by ccardimon »

I have started using Snippets, and I was wondering if there are best practices for using or organizing them?
Craig

Lost in Disturbia
Nita Beck
Senior Propellus Maximus
Posts: 3672
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: Best practices for using Snippets?

Post by Nita Beck »

I'll get the ball rolling...

I like to organize my snippets into subfolders by content and to use a prefix for the snippets' filenames to identify what they contain. These two strategies make it easy for me to find snippets to insert into topics.

Code: Select all

Snippets
   HWControls
      hwd_backlight.flsnp
      hwd_rotary.flsnp
      hdw_emergency_stop.flsnp
   Notes
      note_re_login_reqs.flsnp
   TaskSteps
      step_click_OK.flsnp
      step_click_edit.flsnp
      step_position_marker.flsnp
   UIControls
      btn_reset.flsnp
      btn_trace.flsnp
      fld_actual.flsnp
      fld_radius.flsnp
      fld_username.flsnp
   Warnings
      wrn_re_danger_of_skin_damage.flsnp
      wrn_re_danger_of_pinching.flsnp
Nita
Image
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
i-tietz
Propellus Maximus
Posts: 1219
Joined: Wed Oct 24, 2007 4:13 am
Location: Fürth, Germany

Re: Best practices for using Snippets?

Post by i-tietz »

We have snippets 1. for reuse and 2. for patterns.
The snippets of the first sort have names that start with f_
and
they are stored in a place that is close to where they are reused.
I.e. if I use the snippet in four topics in the same folder that's also the place for the snippet. If I need it in another folder beside that one, the snippet goes up one level. And if there's more than one snippet I create a folder for them.

The snippets wue use for patterns are stored in one central place in the project - in subfolders that give the user a hint about their content.
Inge____________________________
"I need input! - Have you got input?"
kwag_myers
Propellus Maximus
Posts: 810
Joined: Wed Jul 25, 2012 11:36 am
Location: Ann Arbor, MI

Re: Best practices for using Snippets?

Post by kwag_myers »

I haven't had to do this since I started using Flare, but with previous projects I put my snippets into one or more topics which allowed me to actually display the content on a web page with the file name as the title, like a glossary. I suppose in Flare you might need to make that a separate project with an HTML output. If you can get by with descriptive file names like the others have suggested, this is probably overkill, especially for single writers. But the older I get, the more often I have to remind myself of what I wrote.
"I'm tryin' to think, but nothin' happens!" - Curly Joe Howard
Post Reply