New answers tagged javascript
1
vote
are magic strings as event names okay
There is nothing wrong with having string event name like "click". It is not any more magic than the method name onClick.
The aversion towards strings is a bit of cargo-cult imported from ...
2
votes
are magic strings as event names okay
There is a simple test: If you misspell it, is there some mechanism that tells you, or do things just mysteriously not work? If something tells you visibly that you got it wrong then you are fine.
1
vote
Accepted
Using JS and CSS parent selector to replace media queries: is it a good practice?
I do think you have something very valuable in your hands. The idea to have CSS to handle state having as base HTML properties is very useful, and if combined with accessibility, it can help you both ...
1
vote
flow control solutions in Node.js - use async.waterfall?
pipe of async functions can be done in a really clean way:
npm install js-awe
This is how the solution of your problem looks like:
import {plan, repeat} from 'js-awe'
const createCollection = plan()....
Top 50 recent answers are included
Related Tags
javascript × 2109web-development × 177
node.js × 144
html × 141
jquery × 121
design-patterns × 110
php × 107
web-applications × 92
design × 80
architecture × 75
css × 75
java × 72
html5 × 66
ajax × 65
object-oriented × 61
angularjs × 60
c# × 57
python × 56
unit-testing × 48
functional-programming × 47
coding-style × 45
programming-practices × 43
programming-languages × 42
api × 41
security × 41