Comments (2)
@urbany well, you're not the first one who suggests renaming. I agree that the name 'elem' might seem confusing. 'What is that 'elem' about? An HTML element?' — would be the first thought in mind of a person who's barely known with the BEM methodology. Names for BEM entities (block, element, modifier) were chosen poorly for my taste, because at least block and element have different meanings in HTML.
So, what was I thinking about when I named this helper 'elem'? Something like that way. If I give it name like 'bem', no one will guess that the helper generates exactly an element class name (not block name). 'bem-elem' looks much better, but it's four characters longer than just 'elem'. So I chose 'elem' name as a compromise between length and explicity.
If helper name seems too implicit, you can re-export helper with any name and contating the following code:
// app/helpers/bem-elem.js
export { default } from 'ember-cli-bem/helpers/elem';
And you will not have to wait until I rename it.
But once again, elem
name seemed fine for me, not anyone else. If there's 99% developers who prefer 'bem', I will rename it. Please if you have the same point of view as @urbany does, please vote up or leave a comment here so I can estimate the importance of the renaming. Thanks all.
from ember-cli-bem.
Adding a modifier through an helper called elem
causes cognitive dissonance. It is better to use the bem
name.
// app/helpers/bem-elem.js
export { default } from 'ember-cli-bem/helpers/elem';
It doesn't work in 1.0.0-beta.3
version
from ember-cli-bem.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-cli-bem.