Connect with users of Wolfram technologies to learn, solve problems and share ideas
Mark as an Answer
9 Total Likes
Follow this post
Share this post:
Capitized first letter functions in Code Gallery examples
Rodrigo Murta, Looqbox
10 years ago
First of all, congratulations to the design team regarding new Wolfram.com. Very beautiful choice.
I enjoyed the new
, nice to show new users a little about WL power, and get new code ideas, the explanation are much better. But one point caught my attention. I always know as a best pratice, to use user defined functions begining with lower case, so you don't conflict with system function. More especific in Wolfram example codes, it makes all the differente, since you can fast distinct between new system functions that you don't know, and on the fly defined functions.
Maybe it would be nice to have this as standard no?
Christopher Carlson, Wolfram Research
10 years ago
Using uncapitalized user-defined functions is a common practice and not a bad convention for the reasons you note. When I develop code, it is often with the aim of incorporating the functions into a package, where capitalized function names are the norm. So I think it depends on whether you regard the examples code as one-shot or potential package material. There's a mixture of styles in the gallery, where the code comes from a variety of sources with a variety of aims.
Reply to this discussion
in reply to
Community posts can be styled and formatted using the
Tag limit exceeded
Note: Only the first five people you tag will receive an email notification; the other tagged names will appear as links to their profiles.
Add a file to this post
Follow this discussion
Be respectful. Review our
to understand your role and responsibilities.
Wolfram|Alpha Notebook Edition
Volume & Site Licensing
Enterprise Private Cloud
Service Plans Benefits
Wolfram Language Documentation
Wolfram Language Introductory Book
Get Started with Wolfram
Fast Introduction for Programmers
Fast Introduction for Math Students
Webinars & Training
Connected Devices Project
Wolfram Data Drop
Wolfram + Raspberry Pi
. All rights reserved.
Learn how »