1,690 karma · joined April 1, 2013
Very inspiring, thanks for sharing.
JavaScript libraries may use the custom data attributes, as they are considered to be part of the page on which they are used. Authors of libraries that are reused by many authors are encouraged to include their name in the attribute names, to reduce the risk of clashes. Where it makes sense, library authors are also encouraged to make the exact name used in the attribute names customizable, so that libraries whose authors unknowingly picked the same name can be used on the same page, and so that multiple versions of a particular library can be used on the same page even when those versions are not mutually compatible.
This is saying that if you have `data-thing`, then putting your own name in there is better, like `data-mylib-thing` to tell it apart from `data-yourlib-thing`, but the ultimate in flexibility and compatibility is if the end-user of your library can configure this part so they can safely tell `data-yourlib-v3-thing` apart from `data-yourlib-v4-thing` etc.But if you invent and use invalid attributes, any browser could do something with that, any day, for any reason, and it wouldn't be a bug - you're the one that would have chosen to build on top of undocumented and non-standard behaviour. Does that sound like a reasonable approach to you when the safe and future-proof approach is so clearly marked and cheap and easy to do?
Our workflows should have us practice writing _valid_ code, which our tools can then take and transform into other _valid_ code. Any workflow where the humans practice doing the _invalid_ thing so the tool can magically fix it later is a bad idea IMO. Practice writing good code and use tools to make it even better!
If you want to build something that's nice for humans and machines, look up best practices for this sort of thing - plenty of information is widely available on how to build things in usable and accessible ways (and it's simpler to do it correctly than to use these 'hack'-like workarounds anyway!)
I don't know why people who make frameworks either prefer invalid HTML, or if they do allow people to write valid HTML they seem to show the invalid code in the docs
You are not allowed to invent any old attributes you want and add them to any element and have it be valid HTML, but you can invent any attribute you want so long as it begins with `data-`.
https://html.spec.whatwg.org/multipage/dom.html#embedding-cu...
(anecdotally, I've discovered some people have very strong reactions to the word 'temple' being used for certain buildings, and I am curious to know why - haven't figured out why for the people I know yet, but be aware it's not going to be a conflict-free term either)
IE was 2 browser families ago from Microsoft.
- HTML is worked on by WHATWG
- CSS is worked on by CSSWG
- JavaScript is worked on by TC39
And IE wasn't killed by features moving too fast, Microsoft made Edge browser and still does. Mozilla hasn't been killed by Google or competition, it's been kept alive in large part by Google (I think in some years as much as 90% or more of its total income coming from Google) so they get hundreds of millions—the problem at Mozilla is bad management for the last decade.
I'm not sure how well this vision represents reality as it already is today.
My theory is if you want to see something tomorrow, the best insurance you have it is to make it profitable for the people doing it today, so giving my money to musicians means a better chance there will be more music in the future <3
I will only work on 100% distributed teams where the entire organization is communicating as though they're all remote, even on days when a couple of them may be meeting at the office or working from the same place by choice.
1. It is a different vibe compared to working with co-workers, so instead you find collaborators who may not work for the same company, or perhaps you code with your friends that aren't working on the same project. I had a membership at a workspace filled with other go-getting, fun-loving entrepreneurial mostly young professionals and it was that same amazing social + work setting, but 100% divorced from my employment/client. If I lost a client that wonderful work community and environment wouldn't have gone anywhere.
2. It is harder to overhear things at the watercooler if there's no watercooler - if you're remote in a non-remote company you will be missing out, but in a remote-first company you're forced to find other ways to communicate. It's up to each person to open those channels and pursue it, but in 100% distributed teams this happens naturally (when there is no office). You do have to be a little proactive sending some emails though "So I hear you like cats" "So I heard in the meeting you're travelling to South America now, how is that?", etc.
I think what we'll see is the idea that your employer must get all your butts into chairs under the same roof is not the best way to do things for a few reasons:
- it's costly to the employer to shelter and provide for employees in real estate and so many other ways if they simply don't need to have a building
- it limits the talent pool they can hire from geographically for little good reason - a distributed team can hire anybody anywhere in the world and that definitely gives you a competitive advantage at finding talent!
After going this work-from-my-own-setting for almost a decade I feel like it's inevitable, and I think companies who don't use a 100% distributed model today will be competing harder than they need to and paying more than they should to do it.
I'm glad COVID has accelerated the schedule for all this happening, but I really hope most offices don't go back.
Here are some tips I've found for making the most of working from your own surroundings:
- DO customize the environment to your comfort: lights, sounds, smells, privacy, seating - if you could design the perfect environment for being at your best in that moment, take those liberties. It pays off in productivity
- DO get up and move around often throughout the day, or move from place to place. It seems sometimes you get into a funk and all you have to do to leave that dim cloud is just physically relocate and you'll be refreshed mentally. Get up and go make a coffee, go water the lawn as a break, go check the mail. These little breaks will help you keep up the pace and give you stamina.
- DO get out of the house (COVID-willing), if there are cafés or outdoor places with electricity and bathrooms and tables and chairs it can be good and here's a secret -> set goals when you leave the house for what you must accomplish before you return home. If a café has hours and closes down for the night you have tricked yourself with a very real deadline and sense of urgency that otherwise wouldn't be there. By setting goals for myself and using real time deadlines like this I can stay focused on what I'm supposed to be doing
In short, I envision that in 10+ years and for a long time we it will be normal for us to design offices at home, or share rent of work studios with our family and friends, and what used to be coworkers and office drama will just be the people you choose to live and work with, and you can get hired and lose your job and this social group of people you work around doesn't need to change. Overall I think it will be better!