3,581 karma · joined October 4, 2011
http://www.drinchev.com
[ my public key: https://keybase.io/drinchev; my proof: https://keybase.io/drinchev/sigs/DoNkf0DJhCHcuXXwrX-M5M-qqQV3NqJQJO518YFb8zY ]
I have lots of labels for each service that I use. They all include unicode symbol character, to visually separate it from untagged mails. For example " DHL", " UPS", " fitbit", "︎ Uber", "︎ Austrian Airlines", " O2" and others.
The logic is all e-mails coming from the specified domain e.g. dhl.com goes to the DHL label. Then another filter that takes newsletter@dhl.com which goes to newsletters and skips the inbox. This way I was able to handle the e-mail clutter and not rely on 3rd party service that I might be afraid will reduce my privacy concerns.
P.S. Ha. Bummer HN trimmed my unicode symbols anyway here is a screenshot : https://imgur.com/fpX8OLH
Of course you can write your own code, but you will be in a bubble then and "works for me" will be something that you say very often.
On the other hand maintaining this code means that you need to have quite solid tests for it, which means that it would be easier to just separated in a module.
Modules are published on npm. Yeah there are lots of them.
Anyway, why they stick to RoR these days is probably because they have invested too much into it ( same reason as of why FB is kinda stuck with PHP ).
This article doesn't make a lot of sense btw, since "they" ( hundreds+ people org ) did not choose anything as the reality is probably that one person ( Dmitriy Zaporozhets ) woke up one day and said "Hey let's see how far I can go with this."
Some use cases :
- Coding interview
- Stack Overflow answers playground
- Instead of "node -pe ..."
If we can't have non-corrupted politicians. Who should we blame then? Maybe the people that get most benefits from that fact. Like the top management level of those corps.
1 : https://www.reuters.com/article/us-germany-politics-glyphosa...
1: https://www.reddit.com/r/linux/comments/2qd564/why_no_smooth...
Namely they voted for encapsulation / hard-private [#33] as well as comparing private properties of two classes [2], which as a result makes the only possible syntax the one with the `#`.
Unfortunately this comes at the price that once browsers implement this it will become history ( same as the `with` statements [3] and `labels` with `continue` [4] ). Because of backwards compatibility these will never be removed.
Maybe in 2022 TC39 will decide that "use static-type;" will be a mode, such as strict mode, where you can write statically typed JS ( great idea, btw ), where this proposal will make no sense. Another "use class-inheritance;" mode would also finally end the abuse of prototype inheritance with syntax sugar. In this future the `#` will be just a huge annoyance.
#33 : https://github.com/tc39/proposal-private-fields/issues/33
2 : https://github.com/tc39/proposal-class-fields/blob/master/PR...
3 : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
4 : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
IMHO "No solution" would be better than "bad solution" in this case.
1 : https://github.com/tc39/proposal-class-fields/issues/100
For those who don't know private class fields add the weird "#" character for defining them inside the `class {}` block.
class IncreasingCounter {
#count = 0;
get value() {
console.log('Getting the current value!');
return this.#count;
}
increment() {
this.#count++;
}
}
This looks way worse than having what TypeScript did by introducing `public` / `private` keywords. Is there any body
which votes for es-next features such as this one? I wonder how the "#" private field popped up in Chrome specs.1 : https://developers.google.com/web/updates/2018/12/class-fiel...
2 : https://developers.google.com/web/updates/2018/12/class-fiel...
Doing this would be far more safe in terms of having at least some method for controlling what the engine will look like other than "hope Google don't, hope Google do..."
The only way that I can feel a bit safe when a browser engine dominates ~90% of browser base.
Although these days you have Airtable [2] and Ninox [3] they are having different user base than good old FoxPro.
Nobody would use make instead of maven [1] with Java for example. Ruby uses Rakefile instead of Makefiles. You will probably confuse lots of developers that work on your project if you do that.
On top of that Makefiles are known to be generated these days ( CMake ).
1 : https://stackoverflow.com/questions/2209827/why-is-no-one-us...
I've seen lots of questions about Angular on StackOverflow which should be classified as TypeScript questions, since they have nothing to do with Angular itself. I guess that's the confusing and non-attractive part of Angular.
TypeScript is awesome and I love to use it, but some of my clients ( freelancing ) don't want me to write TS code, since they are afraid that it will be harder to find a substitute and will increase complexity - both are reasonable arguments.
I've always been fond of "premature optimisation is the root of all evil" [1], but still... wasting resources makes me feel bad. I feel like the guy that buys 10 plastic bottles of 0.5l water instead of 2x2.5 litres.
The guys building ( owning ) Slack, cryptocurrencies, e-commerce websites are on the other end though. I hardly can count a day when my MacBook's fan doesn't spin like crazy, because I'm just visiting an HTML page to read the text.
In other words. Yeah ... you can save some precious time to optimise that, because you don't want to be the person that starts the fans of colleagues' Macs ( having a docker image with your app running on my Mac ). Energy is what you are saving and that's priceless in today's polluted world.
- Libraries that makes it efficient ;
- Plenty of styleguides / do / don't rules which makes it tidy ;
- TypeScript, where JS becomes statically typed ;
- Find beginners in any other languages, although "full of beginners" is actually positive, rather than negative.
- You can feel like a real pro if you write C / C++, but you will rarely be hired to make a REST API with that stack and you will not be hired to create a web app with it. So your statement might be more accurate if you say "Web development is downplayed as a newb", which is obviously wrong. Sure I would not recommend to write a database based on NodeJS or a search engine, or a space shuttle program, or a ... you name it, but you can't write with anything else ( at least serious ) than JavaScript or something that compiles to JS, for web development.
- Cool is also relative. I was writing Perl for 6 years, before I run out of job prospects and switched to NodeJS.
Can't reusability come via abstract components, instead of hooks?
- website explaining as a pitch what is better about your software
- ready to use examples and templates to support your claim
- branding with a logo that makes you look more professional
- issue tracker
- github repository ( even mirror of yours )
- bugfree software ready for production from day one.
And many more which I probably miss.
Writing something “cool” nowadays is not enough to be taken from the folks seriously.
Instead of `SELECT isValid from tokens where token="<TOKEN>"`, why not `SELECT user from sessions where session="<COOKIE-SESSION>"`?
How can you invalidate my server now?
> You cannot invalidate individual JWT tokens And there are more security problems. Unlike sessions - which can be invalidated by the server whenever it feels like it - individual stateless JWT tokens cannot be invalidated. By design, they will be valid until they expire, no matter what happens. This means that you cannot, for example, invalidate the session of an attacker after detecting a compromise. You also cannot invalidate old sessions when a user changes their password.
> You are essentially powerless, and cannot 'kill' a session without building complex (and stateful!) infrastructure to explicitly detect and reject them, defeating the entire point of using stateless JWT tokens to begin with.
- Autocomplete for most used items ( emails, users, etc. )
- Some real time tagging / categorising feature
- Confirmation blockers on dangerous actions
- Undo button for almost any action
- Fine-grain privacy related functionality
- Text editor with features, which renders whatever you type nicely formatted
- Tons of helpers, video playback functionality, photo gallery, photo uploads, etc.
- All of the above free and because of that, tons of analytics included in the page, which show you a relevant advertisement.
Yeah if you don't like all this you can replace Gmail with Mac's mail app or any other program that sends / reads mails.
You can also replace facebook website with the app on your phone.
But you can't have all those features run fast on slow computers and a slow computer for me these days is something < 16GB RAM or < i7.
Serena Auñón-Chancellor
Alexander Gerst
Sergey Prokopyev