Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #32008
| From | $Bill <news@todbe.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Naming conventions, functions |
| Date | 2016-12-27 22:23 -0800 |
| Organization | A noiseless patient Spider |
| Message-ID | <o3vlme$tnq$2@dont-email.me> (permalink) |
| References | <82ce9366-59bc-4b10-81a7-fadb8d81e9cc@googlegroups.com> <6f7d993e-1dbf-4720-bc7d-5834468f063d@googlegroups.com> |
On 12-27-16 20:26, jonas.thornvall@gmail.com wrote: > Den onsdag 28 december 2016 kl. 05:12:25 UTC+1 skrev jonas.t...@gmail.com: >> I usually write my javascript directly into a single HTML file, but that is really not ideal for bigger programming projects. >> >> Now i've started to break down the code into JS files, but i do not really get howto know in which JS file the actual function that is called reside? >> >> I do not use any special software that create an oversight in which JS file each function reside? >> >> I only use texteditors and Yaldex free javascript editor for some debugging. >> I was thinking put digits upon the files and functions to see where they reside. >> Because it is not easy if you have 20 files and reading a function call to remember in which file the actual function reside. >> >> How do one deal with this, i see two solutions put digits/characters before file and function name, get an editor that list the functions in each file but is there such where it is easy to see where the function resides. >> >> JT > > How about this? > > Files 1xxxxx.js > Functions xxxxxx_1() How about grouping them into similar code and coming up with 2 letters to name the code grouping and start each function with those 2 letters. eg: RE.js contains all reg exp functions and each starts with RE or RE_
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Naming conventions, functions jonas.thornvall@gmail.com - 2016-12-27 20:12 -0800
Re: Naming conventions, functions jonas.thornvall@gmail.com - 2016-12-27 20:26 -0800
Re: Naming conventions, functions $Bill <news@todbe.com> - 2016-12-27 22:23 -0800
Re: Naming conventions, functions "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-12-28 07:37 -0800
csiph-web