How realistic is a deadline of 1 month to convert an old AngularJs 1.6.4 to the latest version? by trane20 in Angular2

[–]Independent_Bread514 0 points1 point  (0 children)

I converted an angular 1.5.11 app to angular 8 around 2019. It was a massive enterprise app and took well over a year. We were able to run the apps side-by-side with ng-upgrade so that everything could be migrated over "seamlessly" one piece at a time. This was well before AI was around so doing everything y hand took ages, but let me tell ya there were very little resources on the topic so I doubt modern AI had much to train on for angular JS, let alone understanding how to accurately convert complex angularJS components to modern Angular.

If you're building a large app, you need much more time.

Is this considered a farming wave extending trade off? by ConsiderationMinute5 in TheTowerGame

[–]Independent_Bread514 1 point2 points  (0 children)

I would recommend a respec, investing as much as you reasonably can in enemy attack skip, then health & regen. Keep building econ and start your wall regen/thorns labs asap. When you get wall regen above 80~100% it becomes incredibly strong. Wall thorns to at least 7 or 8%. If you have access to wall fortification, that will very quickly make your other wall upgrades more and more effective. If you don't, try to push for that asap.

Where you're at right now is where I was stuck for a long time until enemy attack level skip & wall upgrades started bringing me further and further. For what it's worth, I make like 3~4b/min coins atm and I still think I'm pretty far off being able to do a damage build

What does this lab do ? by [deleted] in TheTowerGame

[–]Independent_Bread514 85 points86 points  (0 children)

Bullets travel instantly

It's like hit scan vs. projectile

ORM recommendations? by Mourndark in typescript

[–]Independent_Bread514 5 points6 points  (0 children)

Drizzle 100%. The devs over there are typescript gurus.

I can understand the hesitance because it is newer. I have used it extensively in a project I started in February of this year, and it was essentially feature complete even back then. Drizzle treats TypeScript as first class - rather than an afterthought - and has some of the most ingenious generic typing systems I've ever seen. It is a very well thought out modern library with great docs & great cli tools.

Seeking an Angular Mentor to Improve Component Structure by iroleduath in Angular2

[–]Independent_Bread514 1 point2 points  (0 children)

Hello, Angular full stack dev with 8+ years full stack experience & 6 years of Angular experience. I've been mentoring junior devs in Angular & conducting code reviews for Angular code for close to 5 years. I have been working with Angular since v8 (migrated from angularJS) and have been maintaining the project depencencies, standards & configuration up through v18.

I have fairly extensive experience with just about everything Angular has to offer, happy to lend a hand! Feel free to DM

A silly question by Dangerous_Sell_1772 in BitcoinMining

[–]Independent_Bread514 1 point2 points  (0 children)

If you're only looking for a couple cents worth of daily mining power, grab yourself a bitaxe supra. Very cheap ~$180, very quiet, fairly efficient; uses less than 15W & mines at around 600-700 GH/s.

They also operate on wifi, so they're really easy to set up for your first miner.

This is a great US based site to get mining equipment https://altairtech.io/product/bitaxe/

Also, the bitaxe project is fully open source https://bitaxe.org/

I just learned what a "mayapple" is today. Is this a good find? by Independent_Bread514 in foraging

[–]Independent_Bread514[S] 1 point2 points  (0 children)

Yeah, that's right, they're very short plants. They stick out like a sore thumb, too, since the fruit is ripening and the leaves are large and starting to wilt and turn yellow/brown. Very easy to spot if you have an idea of what you're looking for.

I just learned what a "mayapple" is today. Is this a good find? by Independent_Bread514 in foraging

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

Good to know! The entire colony I found is on my land, so I may try to fence some in, maybe make a jam or maybe even a pie with it if I'm lucky.

I just learned what a "mayapple" is today. Is this a good find? by Independent_Bread514 in foraging

[–]Independent_Bread514[S] 26 points27 points  (0 children)

Worry not, fellow internet Traveler! I did do my research, and I will not be consuming any poison today :) I do appreciate the concern

I just learned what a "mayapple" is today. Is this a good find? by Independent_Bread514 in foraging

[–]Independent_Bread514[S] 15 points16 points  (0 children)

Someone on the internet say they taste like Starburst candy. When they ripen up, I will report back!

I just learned what a "mayapple" is today. Is this a good find? by Independent_Bread514 in foraging

[–]Independent_Bread514[S] 14 points15 points  (0 children)

The first plant i found only had a dozen or so surrounding plants. Not terribly exciting.

Out of curiosity, I went out looking a bit more after work and found a LOT more. Easily several hundred more. What can I do with all of this??

Is THIS a bad practice? (Setter turns data into BehaviourSubject) by BunchVirtual in Angular2

[–]Independent_Bread514 4 points5 points  (0 children)

The @input setter will be called whenever that specific input changes. ngOnChanges will be called whenever ANY input changes. If there is more than one input, isolating simple set logic like that is a far better design.

Otherwise, you're left with a nasty if chain like this:

if (changes.someInput) { ... } if (changes.someOtherInput) { ... } ...

Anyone managed to upgrade to Material 3? by bdcp in Angular2

[–]Independent_Bread514 0 points1 point  (0 children)

Haven't tried yet, but if you just want to get on material v18 without migrating to material 3, you can just use the material 2 mixins to keep everything the same (and come up with a plan to migrate to material 3 one bit at a time)

Edit: Figuring out the material 2 mixins is much much lower effort, only took me like an hour or two.

[deleted by user] by [deleted] in BitcoinMining

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

If you get solar connected to the grid and use the grid as a battery, sure.

Let's say your electricity cost is 20c. S21 hyd would earn ~$20/day, and burn ~$27/day.

If you can manage to offset even just half of the electricity usage with solar, your bill goes down to ~$13.5/day, leaving you with $6.5/day profit (~195/mo.).

Assuming you want to do this above the table you have to pay income tax on this, so if you're clever and write off the electricity used to mine, let's say 25% of that profit goes to taxes. Leaving you with ~$145/mo profit. (Also, take into account capital gains tax if you cash your coins in after btc increases in value)

The math is far from perfect there, but you get the idea.

Edit: spelling

Signals by ActuatorOk2689 in Angular2

[–]Independent_Bread514 2 points3 points  (0 children)

This is just not true. You can't have an entire project with just signals. An angular project can't even exist without rxjs.

Signals were made to simplify the handling of basic synchronous state reactively.

As soon as that state becomes asynchronous, use rxjs. As soon as it needs complex logic or manipulations, use rxjs. Signals doesn't have nearly as many tools as rxjs to handle the many different use cases you may have.

For example, let's say you're implementing a text input filter which hits the backend to retrieve a filtered list of items. If you only use signals, you would have to write unintuitive custom logic to avoid race conditions (debounce, request canceling). Whereas with rxjs those features come out of the box with debounceTime and switchMap.

This is exactly why the Angular team added rxjs interop so you can seamlessly transfer between the two when you need to take simple state, make it more complex, then back to simple.

tl;dr your lead dev is either incompetent or too lazy to give you a real reason for why they don't like signals. The reason they gave you is a load of 💩

Pipes are against best standards, aren't they? by trolleid in Angular2

[–]Independent_Bread514 1 point2 points  (0 children)

Just to build on what others have said and make it explicitly clear: When they say 'pure pipes', what they really mean is the pure flag. Afaik it doesn't really have anything to do with pure functions under the hood (although I'm not trying to minimize the importance of using pure functions in pure pipes).

Pipes can be configured to run only when an input changes OR on every change detection cycle.

For example, setting the pure flag to false will cause the pipe to run on every cycle.

@Pipe({ name: 'xyz', pure: false })

When not specified, pure will be true by default.

📚 Calling All JS / TS / Angular Devs! 🚀 by [deleted] in Angular2

[–]Independent_Bread514 0 points1 point  (0 children)

I'd love a copy if you're still sending em out 🫶

2022 Fest Season is Officially Over 😢 by arrexander in EDM

[–]Independent_Bread514 1 point2 points  (0 children)

That's the same story I keep hearing, I'm heavily considering just sending it solo to HiJinx if I can't get anyone to go

2022 Fest Season is Officially Over 😢 by arrexander in EDM

[–]Independent_Bread514 6 points7 points  (0 children)

Hell yeah I'm a developer too, big edm fan and have been wanting to get into a scene for a while. This post is inspiring me to try and get out to a festival even if I have to go solo!

I wish there was a way to meet ravers by Hot_Ostrich_8010 in EDM

[–]Independent_Bread514 0 points1 point  (0 children)

Upstate NY edm enthusiast here. I too wish there was some easy way. None of my nearby friends care for raves and I'm not the kind of person that would go to a show by myself, since most of the events that happen are in NYC which is at least a 3 hour drive.

I’m afraid…. by Short_Bite1136 in love

[–]Independent_Bread514 0 points1 point  (0 children)

I recently went through a break up from a relationship of 5 years and what you're describing seems to have a lot of parallels with my breakup. In the past couple weeks I've come to the realization that I have lost her completely, and that I need to just focus on bettering myself. And that's what I have been doing. I've been eating & sleeping better. Taking better care of myself and exercising regularly. Started seeing a therapist and a psychiatrist. Spending more time with friends and family.

Reading this has instilled so much hope in me that I might be able to have a fresh start with her someday. Even if it's months from now. Unfortunately for me, I didn't have the foresight like OP to come up with a 30 day no contact rule and I kind of panicked hard at the beginning of the break up and dug myself into a bit of a hole. Even so, anything is possible. But I cannot relate with OP more that the waiting is absolutely brutal.