I'm wondering if is there a naming convention to namespacing events with AngularJS?  jQuery defines its convention as event.namespace (with namespace at the end, and dot separator)  I've seen some articles (example) where events are named lik...
Context  I read a JavaScript code example written by Google. It used:   Single lowercase letters for naming variables Single uppercase letters for naming functions   So the code was illegible.  Questions   Why this naming? What tools are using to do...
I'm adopting a large mish-mash of Javascript / jQuery code. I'd like to move it to Backbone.js but as an intermediary, I'm trying to namespace it so that it is sligthtly more modular.  I am wondering if there is a standard for namespaces...
Should files be named something-with-hyphens.js, camelCased.js, or something else?  I didn't find the answer to this question here....
I've been re-reading Spencer Tipping's excellent Javascript in Ten Minutes and for the life of me can't figure out what is going on in this example of using lazy scoping to create syntactic macros:  var f = function () {return $0 + $1};...
Is there a convention for naming mutable and predicate functions in Javascript?  For example, in Ruby, Lisp, etc., functions that mutate their contents, like gsub!, usually have an exclamation point as a convention to denote that the function is dang...
I am trying to find the best naming convention for components in a React.js app. This is how I have currently been doing it...  Imagine I have a searchBar component that I want to render in my table component.  search-bar.js  var React = require('...
I would like to know the popular ways of naming files in JavaScript and PHP development. I am working on a JS+PHP system, and I do not know how to name my files.  Currently I do for JS:  framework/ framework/widget/ framework/widget/TextField.js (Fra...
When having to format or transform some function parameters in JavaScript, I usually create homonymous private variables (private variables with the same names as the function parameters):  function myFunction(param) {   var param = Math.floor(param...
I've seen it in a number of JavaScript libraries (eg. transducers-js, routex and redux). I'm supposing it's a form of namespacing, but I couldn't find an explanation or at least a comment about it anywhere....

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.