#angular - I sure hope so, or a lot of people aren't going to be able to pay back their student loans.
#Angular
One does not simply go into the <body/> to add a class. What do you think this is, Mordor?
Last day at #ngconf2023
TODO: create a Tour of Zeros app, which is editable list of all the 0s in mathematics.
Google says there is no recorded cases of crowd surfing at a technical conference. I don't know what the deal is, it is mathematically sound. 15 people can easily carry 1/15 of a person over their head.
♡ 1 ↻ 0
#ngconf2023 An #angular reactive form doesn't have to be a form. (?)🤯
This still works. (I think)
```
<div [formGroup]="form">
<input
type="text"
placeholder="First Name"
class="border-1 border"
formControlName="firstName"
/>
</div>
```
ok, so far the difference is the "onsubmit" event- that doesn't work with a div-as-form. Also, onsubmit refreshes the whole page. click doesn't refresh the page.
♡ 0 ↻ 0
Writing unit tests for an #Angular app reminds me of working in 1998.
- Everything is a 5 minute wait.
- Do things in parallel
- Maximize # of machine on your desk, 1 locked up running tests, 1 locked up linting, 1 locked up compiling, 1 running Kpop
- Add audible ding to end of chores because after that many minutes of wait, you're not paying attention
#angular it takes forever to do an angular build (what does it think it is, c++?!)
If you want to run tests and build for deployment you must recompile everything. (2 slow builds + unit test run time)
This is a good paid course, I'm grinding thru it right now. The teacher has a bunch of free content on Youtube too
#Angular https://x.com/monster_lessons/status/1650167155072090114
#Angular testing styles
- testbed - set up complex dependency chains so you can verify html. Then ignore html anyhow by including CUSTOM_ELEMENTS_SCHEMA**.**
- no-test bed - fast, ignored HTML on purpose, you must be a master of mocking & spies
- cyprus - you gave up on unit testing just doing e2e
- storybook - make a mini-app for each component.
- real-http - Integration tests but not necessarily via a browser, uses real HttpClientModule
So far all of these are various degrees of pain.
#Angular says please don't silence errors with NO_ERRORS_SCHEMA because turning off error logging doesn't actually make the bugs go away. Instead turn off error logging with CUSTOM_ELEMENTS_SCHEMA because it ... something something names with dashes ... shiny! better! incoherent docs! nothing make sense!
Who cares if the app works or test pass, we're all going to die, alone in our skulls, nothing matters.
https://angular.io/api/core/NO_ERRORS_SCHEMA
https://angular.io/api/core/CUSTOM_ELEMENTS_SCHEMA
Here, #Angular is isn't that complicated, you just need to watch this 17.5 hour intro for getting started
I've been watching a lot of this guy & now my brain has decided #Angular documentation must be read in a heavy German accent. Rules are rules.
IDEA: dependency injection resolution that just searches Stackoverflow for
"No provider for" [Angular] on StackoverFlow and just take the human out of the middle.
https://stackoverflow.com/search?q=%22no+provider+for%22+%5BAngular%5D
#Angular devs who know how to do unit tests.... would you like to work remote for a really large organization? Meaningful work. You'd be on my team, so I can field any questions about it.
https://artemisconsultinginc.com/list-of-positions/
We hire US residents from many states
#fedijob #jobs #hiring
#Angular devs who know how to do unit tests.... would you like to work remote for a really large organization? Meaningful work. You'd be on my team, so I can field any questions about it.
https://artemisconsultinginc.com/list-of-positions/
We hire US residents from many states for a client in DC
`Warning: component.scss exceeded maximum budget. Budget 20.00 kB was not met by 29.22 kB with a total of 49.22 kB.`
Okay #Angular - want to know something else? I can't do anything about that, might as well log to screen that the idealism, hope and ambition we had as a six year old evaporated in time and been replaced by utilitarian bourgeois values.
Seems like everyone wants swap out every tool that comes with #angular
--
protractor -> cypress - we use testNG tho
karma -> jest - done
npm -> pnpm (only for 13! :(
ng -> nx - still in idea state
tslint -> eslint - done
How to npm install & ng build. I mean what else are you going to do with that time?
`google-chrome https://www.google.com/search?q=speed+up+npm+install && npm install`
`google-chrome https://www.google.com/search?q=speed+up+ng+build && ng build`
Why does #angular prepend "unsafe: " to "https://example.com" URLs? Stackoverflow says, "turn off the safety feature" -- if that is the only solution, why make everyone turn off santization all the time when binding to href? And aren't URLs, like, fundamental to websites?
Some BS from angular source code
"It is not required to bypass security if the value is safe, e.g. a URL that does not start with a suspicious protocol" <-- why would https be suspicious♡ 0 ↻ 0
Is #angular 's #karma and #protractor testing mature enough that I won't spend 90% of my time fixing brittle tests?