Is anyone else interested in earning the Reader badge?

Definitely understand, but I think you still get the core stuff. Partly the issue is that Mosh is so detailed in his explanations that it becomes really tied to the particular state of the code he was teaching with (and code changes quickly).

I actually valued the practice updating legacy code. The only part I could not translate was the redux bit since the library got abandoned and has not been updated to current versions of Angular. The main ideas are still valid, but the particular library he was using is useless.

4 Likes

Wow so you are a mod now!

Yeah I think there is a note somewhere in the course saying it is outdated, I will just skip it I don’t think I need it for my project!

I know right? Only one more badge before I have all of the mod powers, but presumably that one takes even longer to be granted.

3 Likes

Yes, he said he copied it from his other Angular course for reference and I think it was based on something like Angular 2 (so very early Angular).

2 Likes

Yup so just skipping it haha

Which badge are you missing ?

This one: Leader badge on Code with Mosh Forum

2 Likes

wow amazing indeed,
I’ll do 2 other consecutive random replies, as I won’t be available for like 8 days, hope it helps you reaching your goal! :slight_smile:

(random post 1) I am currently trying to do the Firebase section, but everything has changed too so I am reading documentation

rd post 2: Mosh is such a good teacher, good explanations!

Hi,
TLDR and there is only 30 replies at the moment I write this comment.
We’re not gonna get there soon. Unless… we use the flooding spell.

The thing is the community in here seems pretty small to me. And I must admit I find it relaxing. Compared to SO I like to be here best.

Cheers.

2 Likes

Thanks for keeping the dream alive!

3 Likes

Yeah, I mostly decided I would just watch Mosh rather than following along for the Firebase part specifically. I did look through the Firebase documentation to see what sorts of changes there were and it was not that bad. Mostly, I did not want to go and setup an actual Firebase project which I will almost certainly forget and then abandon at the end of the course.

2 Likes

Too true. Honestly, I have used many different online courses in the past and I can definitely say his material is better than most of the others I have seen. I did like Udacity back when it was free to use, but I would prefer Mosh if I were starting out at the beginning again.

The biggest “complaint” I keep seeing here is people getting upset that the content is out of date. I see that Mosh puts more effort into producing more new content rather than continually going back to update his old content. It would be interesting if they ever added errata links which explained the new syntax to help students who are struggling to adapt their code to the new styles.

3 Likes

And now it is 36. The number actually goes up pretty fast if there is any back and forth bantar.

2 Likes

Yeah, I have to admit I am upset sometimes because all the code changes (even though the idea remains the same), makes me lose a lot of time (even now, waisting 4 or 5 hours trying to debug my firebase code and now struggling because of a type error I cannot manage to solve), but it’s part of the learning process too.

Rather than thinking of it as wasted time, think of it as “practice debugging” since we spend a sizeable amount of time debugging “real” code. It may also be worth figuring out how to write tests for this since that is usually the easiest way to debug this kind of code.

3 Likes

So if by any chance you have an idea it would be greatly appreciated, otherwise I will try to debug this again when going back from vacations (type error):

Here is my app.components.ts file

import { Observable } from './../../node_modules/@firebase/util/dist/node-esm/src/subscribe.d';
import { Component } from '@angular/core';
import { AngularFireDatabase } from '@angular/fire/compat/database';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {
  author$: any;
  constructor(db: AngularFireDatabase) {
    this.author$ = db.object('/authors/1').valueChanges();
  }
}

and my app.component.html one:

<ul *ngIf="author$ | async as author">
  <li>{{ author.name }}</li>
  <li>{{ author.students }}</li>
  <li>{{ author.isPremium }}</li>
</ul>

In this configuration, I have this error for each author.*

Error: src/app/app.component.html:17:17 - error TS2571: Object is of type 'unknown'.

17   <li>{{ author.isPremium }}</li>
                   ~~~~~~~~~

  src/app/app.component.ts:7:16
    7   templateUrl: './app.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component AppComponent.

Hmm, might be the return type of author$ that is wrong, so I then replaced

author$: any;

with

author$: Observable<any>;

as suggested in angular - Getting error "TS2571: Object is of type 'unknown'" when trying to display object properties from a Firebase observable - Stack Overflow
But still I have a type error (translated from french)

Impossible to assign type 'Observable<unknown>' to type 'Observable<any>'.
  Types of 'subscribe' property are incompatibles.

Also tried with Observable and an even worse error happened (my local Observable subscribe method is different from db.object.valueChanges() one)

If you have any ressource which could help or could teach me with a relevant ressource how to debug such things, it’d be greatly appreciated ^^
Young student here still having a lot to learn!

1 Like

Yes indeed! I already learned a lot since starting this course and actually started reading about types, even though I often end with typing “any” because of errors like the one I just sent, and I really don’t know how to debug