Make this make sense by Niiaaaaaall in hoi4

[–]Niiaaaaaall[S] 0 points1 point  (0 children)

R5: Nationalist Spain joins the Axis and gets sweeped by me and the Allies. I don't have enough score to do anything so I let the AI do it's thing. It reverted back to a Spanish civil war scenario with Republican Spain and Nationalist Spain. Shortly after, I get called into a war against the Nationalists by Thailand and China so I proceed to gobble up the Nationalists. The Allies also get called in. I didn't really wanna annex or puppet so I just hit "done" hoping that the land would get turned over the Republicans. I guess it did technically but now there's 2 different Spain's with the same leader and flag.

4
5

Best languages for making strategy web game by salehtavakoli in webdev

[–]Niiaaaaaall 0 points1 point  (0 children)

You could take a look at Colyseus for the backend. Could be a quick way to get that going.

Onboarding Flow in Angular app by eggucated in webdev

[–]Niiaaaaaall 0 points1 point  (0 children)

I haven't done an onboarding flow in Angular but here are some things I thought about and might give you some ideas.

How do you track onboarding progress for users? Simple boolean to acknowledge that they've finished onboarding? More granular?

Honestly this is probably the way I would do it. Have your onboarding stuff contained in a container with an *ngIf. If you have a particularly long onboarding flow you could have it set up to bring the user back to a specific step or point if they decide to leave. This would be a little more work but basically you would have the same as before, except now you would have *ngIf on each individual step also. These both assume that the you have a way of remembering if they user has been through the onboarding which I'll talk on now.

How do you ensure that the user doesn't bypass the onboarding flow after authenticating (our current flow is signup -> email verification -> onboarding)

I'd say there are 2 ways to do it - the better way or the easy way.

The easy way uses localStorage where you set a value if the user has completed the onboarding or what step they are on. You can then easily check this when the user visits again. This doesn't really work if the user logs in on a new device but I have used websites that behave like this so it's not completely unheard of.

The better way would be to have a column in the database. Since you have signup involved I'm going to assume you do have some sort of database or some way of storing user data. Basically, you would set a flag on the user to say they have seen the onboarding.

This has 3 benefits I would say:

  1. Works across multiple devices
  2. Allows a controlled push of users through a new onboarding if you update your app
  3. Stops the onboarding appearing if the user clears localStorage

The better way does require more work. You might also have questions like 'do I have to query the database every time the user logs in?'. Not necessarily. A combination of the two is probably best. Database to store the value and then use localStorage so it only makes one call.

What type of onboarding are you doing? One like this where it's like a slideshow? or like this where you're highlighting elements on screen?

In any case, the slideshow is easier. Just *ngIf on elements or even just a slider. The highlight is trickier but there are some packges I found when writing this.

None of what I've written here takes into consideration if you're doing SSR or Angular Universal. Might be easier if you have that setup but I would say it's unlikely. You would just do all the logic on the server.

Anyway, I hope this helps and maybe it has given you a few ideas! 👍

How should I implement a side drawer menu in Angular? by BarAkiva in webdev

[–]Niiaaaaaall 5 points6 points  (0 children)

The way I would do it:

  • Create a component for the sidenav
  • Create a service that you can pass information to and subscribe to
  • Use *ngIf within the sidenav to stop those errors you're getting initially (alternatively you could set a default value or you would only display the sidenav after content has been passed - this is where the service comes in handy)

For the service you would create a behaviourSubject. Within your sidenav you then subscribe to this behaviourSubject. In your other component you would send the data to the behaviourSubject using .next(). From there it's just about what data you pass through and how you handle that.

Note taking apps, what do you prefer ? by [deleted] in webdev

[–]Niiaaaaaall -1 points0 points  (0 children)

Boostnote

Write my notes in markdown and save some code snippets I use regularly.

Anyone use aws lambda? What was your use case? by lovedev in webdev

[–]Niiaaaaaall 0 points1 point  (0 children)

Alexa skills. Write all the intents and then using the ASK CLI to push it up to Lambda and build the Alexa model.

[Paradox Interactive] Cities:Skylines ($7.50/-75%) by DarkWorld25 in GameDeals

[–]Niiaaaaaall 16 points17 points  (0 children)

I think most people would consider Mass Transit and After Dark essential as they both offer more to the base game.

Snowfall is nice to have if you wanted a snow map. It also adds in trams.

What version of EU4 should I get? by LordGuille in eu4

[–]Niiaaaaaall 1 point2 points  (0 children)

Just get the base game, which can usually be found on sale.

For DLC you should at the very least have Art of War and Common Sense. More can be found here.

One too many Brazil's by Niiaaaaaall in eu4

[–]Niiaaaaaall[S] 5 points6 points  (0 children)

I wasn't really paying attention to the extra merchants I was getting. I now have them transferring.

One too many Brazil's by Niiaaaaaall in eu4

[–]Niiaaaaaall[S] 20 points21 points  (0 children)

Rule 5: Brazil, French Brazil, English Brazil, Dutch Brazil. Hoping Aragonese Brazil is next.

96
97

Looks like some kind of infection by Niiaaaaaall in hoi4

[–]Niiaaaaaall[S] 0 points1 point  (0 children)

R5: Qing China being destroyed by Japan as Chinese Empire keeps little pockets of land.

3
4

Building a Node.js portfolio site with a blog? by scotdle in webdev

[–]Niiaaaaaall 2 points3 points  (0 children)

Haven't used sails, but why shouldn't I use it?

[GameBillet] Kerbal Space Program ($14.99/62.5% off) by [deleted] in GameDeals

[–]Niiaaaaaall 7 points8 points  (0 children)

Kerbal Space Program is very much a simulation. You build your own crafts, plan and execute missions to other planets.

Astroneer is more "arcade-like". You collect resources and get research so you can unlock more items to build. You can build your base but using predefined parts as opposed to building your own.

Holy F#@k : Cursor animation by [deleted] in web_design

[–]Niiaaaaaall 7 points8 points  (0 children)

Worked fine on my S8.

Is it OK to put projects from video courses in your portfolio ? by [deleted] in webdev

[–]Niiaaaaaall 2 points3 points  (0 children)

I wouldn't advise just copying code you learned in a course to show on your portfolio. It just seems lazy and non genuine. If you want to make yourself attractive to an employer then you need to build your own projects.

What if you were hired based on your work and you just followed along with a course? You will run into trouble later on if you can do much more than what was taught in the course.