Claude Code tips that have made my life easier:
(Add these to your CLAUDE .md file)
1. "Before writing any code, describe your approach and wait for approval. Always ask clarifying questions before writing any code if requirements are ambiguous."
2. "If a task requires changes to more than 3 files, stop and break it into smaller tasks first."
3. "After writing code, list what could break and suggest tests to cover it."
4. "When there’s a bug, start by writing a test that reproduces it, then fix it until the test passes."
5. "Every time I correct you, add a new rule to the CLAUDE .md file so it never happens again."
The wording in the file is much more detailed than what I wrote above, but hopefully these show the spirit.
One of the big pains with reactive forms has been the scenario when we needed to make a field required based on the value of another field
With # Angular signal forms, everything is reactive, so everything is easy 😉
@schroeder_k Vielleicht mal als Gute Nacht Geschichte "Die Wolke" von Gudrun Pausewang lesen? (Alternativ auch "Noch lange danach" von selbiger). Eignet sich auch als Familienlektüre🙄
There's an epidemic of people building software that doesn't work.
Testing has become a lost art. We are now in the era of "impressive demos," and that's all that matters.
I was raised with an old-school mentality:
1. By default, we assumed whatever we built didn't work
2. We proved it worked by writing tests
3. We only delivered when those tests were successful
I grew up in a time when computers always did what we wanted them to. This has changed with AI models.
With Large Language Models, you can't ensure the outcomes are the ones you'd expect. These models are unreliable. They are hard to control.
This makes testing and evaluation more important than ever.
I think there will be a reckoning. Some of the demoware today will go nowhere, and people will stop trusting software.
We need to get back to the fundamental principles of working software.
@suprahet99@CanGueleryuez@MissSchugge Den QR-Code gibts seit 1997, und ab 2010 wurde dieser wirklich schon ziemlich gehypt (Eigene IT Erfahrung, besonders Banken, FinTechs wollten ganz hipp sein). Gibt da auch einen Fachbeitrag von Viola Voss (4/2011 - https://t.co/Ose6OhaB2h ).
I'm a design addict.
I spend 8 hours a day looking at UIs — and this is the best designed app I've ever seen.
Here's a full breakdown of @family, why it's the best-designed app out there & what you can learn from it 🧵:
⚠️ #Angular / RxJs bad practice alert: nesting subscriptions
Nesting subscriptions is considered a bad practice due to:
- decreased readability
- the need to handle each subscription one by one
- breaks reactive flow
Why do you think that nesting subscriptions is a bad practice?
How to do it better? 💡
See second picture :)
Exciting News for Developers! 🎉
Your favorite coding editor, @code, just got even better! We're excited to announce the latest release of the #MSSQL extension, with powerful new UI features to enhance your database development experience with Azure SQL.
(1/6)
@dokhollidays@BrigidVioletta Für euch unfreiwillig getestet. 05/2024, Flug 2.5 Std, neben mir (freier Mittelsitz, Reihe 1) stark hustende u. rotzende Person, FFP3 (fast!) durchgängig auf, bis auf 45min Essensservice (ja habe mit mir gehadert), 48Std später positiv.
@linden_blatt@Leseerlaubnis Noch technischer: Wechsel- in Gleichspannung gewandelt im Netzteil, teilweise billige Chips mit Toleranz von +/-10%. Da im PL via LED die Abstrahlung gemessen wird (sehr genau) werden die Linien zackig wenn bsp 4.9V, 5V, 5.1V als Referenzbezug verwendet werden statt immer 5V.
@linden_blatt@Leseerlaubnis Das mitgelieferte Netzteil scheint nicht so toll zu sein, so dass bsp. In älteren Elektroinst. hier Schwankungen in Spannung oder Störungen einspielen. Bei mir mit neuer Elektrik sehen die Linien trotz dem Netzteil sehr gerade aus, die Powerbank glättet jedoch noch sauberer.
I've seen some discussion on `detectChanges`
I want to say that it's rarely a good idea. If you have some third-party lib that is triggering lots of change detection cycles, use `runOutsideAngular`:
Did you know that in v18.2 we've added a schematic to constructor DI to use the inject function? 🔥
Try it with ⬇️
ng generate @angular/core:inject-migration
More here: https://t.co/11EL1l3dWA
OLD vs NEW way of creating
#Angular components
Implementation is 1:1
Exact same case side by side
- computed
- model
- new Input
- new Output
- viewChild
- content Children
- let template variable
Simple example.
Easy to follow.
How do you like new approach :) ?