Hacker Timesnew | past | comments | ask | show | jobs | submit | d2kx's commentslogin

You're literally commenting on the article that announces its general purpose availability. ...


When using AWS, the GraphQL client in AWS' Amplify library is also nice if one doesn't need offline/caching support.


Angular supports this for quite some time.


It does, but emulated by default, you have to explicitly add ViewEncapsulation.NATIVE to your component decorator, or NONE if you wish/are forced to disable it.


Chrome Dev Tools let you simulate shit internet connection (2G, slow 3G, fast 3G, etc.) and Google encourages to this for development for the reasons you've mentioned.


It's awesome it exists, but useless if nobody uses it. I think the Google homepage is the only Google product I'm aware of that loads fast, minimal CSS and still loads without JS. Even on a modern computer, some websites have become completely unacceptable to run in the background (i.e. Facebook).

Installing NoScript and blocking external CSS was the best decision I ever made. Now use <25% of the RAM and <10% of the CPU I used to for the same number of tabs (in Firefox) - with a better experience because the browser isn't constantly trying to die.

The UK Government site team is my go to for a good web design philosophy: https://www.gov.uk/guidance/government-design-principles (Hell, if they could run the actual Government like this we would be in a lot better shape!)


I started taking Modafinil about 4-5 years ago and my only regret is that I didn't start earlier.

I live in Europe so you can forget about amphetamines/adderall basically, only thing you'll get here is Ritalin and even that not as easy as you might think. Modafinil is easy to get on the internet though. If I lived in the US, I would likely be on Adderall I'd guess.

It helped me so much that I wouldn't have completed studies and got my current job if I wasn't on it. I know, because I still remember the struggles I've had before (and over time learned that I am not alone, that many, many people suffer from ADHD-PI or ADHD-like symptoms and all think it's just them...).

Also, fuck everyone trying to tell people that "eat better, sleep more and do sports" will fix ADHD-PI. You should totally do all of these if you aren't already, but it's not fixing shit. Medication works.


I feel like comments like yours are one reason doctors don't like prescribing it.

I'm glad you are able to be happy on modafinil, but think about what you just commented: (1) alternatives are hard to get, (2) you have to get your substitution from the Internet without a prescription, (3) once you are on the gear you are able to notice the same deficiency in others, (4) you attribute your success to it and (5) "fuck everyone" trying to speak people into drug-free alternatives.

I haven't been to med school, but I can imagine this being a slide they would put into an example profile to stray people from prescribing Adderall et al.


The reason doctors don't like prescribing it is because it's not FDA-approved for ADHD. It's not FDA-approved for ADHD because of bureaucratic/economic reasons, AFAIK.


>"fuck everyone" trying to speak people into drug-free alternatives.

It's actually really annoying being told that you don't need drugs to fix your condition when, based on your own experience, you really do


You need to be careful about movement disorders if you're going hard on the Modafinil.

I often it found it quite stimulating in an amphetamine-like way even though it's a wakefulness agent.


As a Sueddeutsche Zeitung subscriber, yeah I am happy with them.


Welcome to React.

"I use React over Angular because it is so small! Also here are my 2 MB of 3rd party modules that are loaded directly on the home view, that the other frameworks come with and lazy load when needed".


> Welcome to React.

Looks like less than 200kb of JS. And the initial page load is less than 30kb HTML/CSS.


That's what you get with the @angular/language-service. Enabled by defaut in WebStorm, and an official extension for VSCode: https://marketplace.visualstudio.com/items?itemName=Angular....


I love it.

It is small if I want to, but it has lots of features if I need them.

I don't have to worry about 3rd party libraries, because the official router, forms modules, http client, material components, flex layout etc. are all high-quality.

The CLI not only helps with new projects, but also makes testing, linting, building, serving, generating new components/services/etc. easy.

Implementing lazy loading with the router was easy, so that only the modules that I need for a certain route get loaded and my home site isn't 500kb+ for no good reason.

It has a predictable release schedule.


Has testing components become any easier? I remember having to write a lot of boilerplate code every time that I wanted to test a component.


Not really. Testing components is still really a pain: there's lots of boilerplate and the tests are extremely slow. In a medium-size project, they're far too slow to treat as unit tests: I break out all the TestBed stuff into a separate karma integration test config.

Angular is in desperate need of something like Enzyme.


Well if you use the Angular CLI it will generate the boilerplate test code for you, I don’t find them slow to run personally (my dev machine is pretty well specced though)


> It is small if I want to

Did they finally fix it to be actually possible to make it small? I remember them quoting some ridiculous number, and none of my colleagues, nor I, could get it below a megabyte using the suggested methods, nor below a few hundred k for a hello world.


It's been possible for quite some time. Hard to say why you weren't able to without more information.


To be fair the situation has changed drastically over the past 12 months.

After 2.0, AOT got enabled by default, drastically reducing size, then 4.0 drastically reduced size, then the build-optimizer (default with 5.0) drastically reduced size.


There was no clear way on how to do this if you wanted to use universal though. The CLI never supported it for ages. Does it support it now?


It does, there is a wiki page on it.


I hate CLIs that do too much. Just give me a sane starter generator and I`ll take it from there. And please don`t hide webpack from me like angular cli does. And this part "generating new components/services/etc. easy" I always find strange. Creating a component or whatever takes like 1-2 shortcuts in a normal IDE. And you can also use templates to expand various reusable/common parts. Why would I ever want to learn some cli command that would create ordinary file for me which I can create as usual with the tool I already use. Heavy CLI tools just add another layer of unnecessary complexity to the project. Why don't just learn webpack which you can use on any project, and you will have much more power at your fingertips.


> Just give me a sane starter generator

ng new my-project

> And please don`t hide webpack from me like angular cli does

ng eject; that gives you the webpack config and basically disables the CLI

> Why would I ever want to learn some cli command that would create ordinary file for me which I can create as usual with the tool I already use.

You don't have to use it, it's optional


That sounds like work. With Angular, it's literally only

ng generate component my-component


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: