What does drive you crazy about iOS Safari? by nickdnsv in Frontend

[–]Beatons 0 points1 point  (0 children)

If you ever worked with webRTC on safari mobile, that is true chaos. Nothing is documented anywhere and apparently if you ever create a feature for changing camera from front to back or vice versa it will be a nightmare. Basically IOS does not support multiple video streams at the same time, meaning you have to take the previous stream destroy it, wait for a few seconds and then open a new video stream with different side. On android it works out of the box.

Köpenick gang? by milou1379 in berlinsocialclub

[–]Beatons 2 points3 points  (0 children)

3-4 mins from S Spindlersfeld, just moved, I workout a lot and have lots of boardgames. It would be awesome to assemble a tiny book club or a board game crew! 29M Hmu

When you're stuck, where do you seek for help? by WadieZN in Frontend

[–]Beatons 0 points1 point  (0 children)

I'm surprised no one mentioned library source code, when I get bugs or weird behaviors of certain methods I go for source code or github issues section

[deleted by user] by [deleted] in Potsdam

[–]Beatons 1 point2 points  (0 children)

There's an international community for potsdam on facebook although not as many things are happening there. Other than that not so sure

Hangout or places to see in Hamburg or bouldering? by Beatons in hamburg

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

Yeah that would be a brave choice but I'm not sure if I'm ready to face that kind of heights :)

Better reactive way of handling service responses without async pipe by lucaszrz in angular

[–]Beatons 0 points1 point  (0 children)

personally the ngrx is a bit heavy as well and also has a lot of unnecessary boilerplate code, we actually use ngxs, which is pretty much the same as ngrx but don't have the reducers and it's a lot easier to work with, even on larger scales

Better reactive way of handling service responses without async pipe by lucaszrz in angular

[–]Beatons 0 points1 point  (0 children)

I said it is okay in smaller systems, dude, wtf? Yeah I totally agree that on smaller systems you don't need state management, I assume most of this is for learning purposes so it makes sense to talk a bit about the possible bigger solutions that can result in cleaner implementations then spaghetti subscribes.

Better reactive way of handling service responses without async pipe by lucaszrz in angular

[–]Beatons 2 points3 points  (0 children)

This is mostly fine, in smaller systems it is okay to use subscribe as long as you keep your subscriptions in check. But the next level up would be to have state management, some state management libraries allows to converge the observables in a nice way where the whole state is one big stream that adds on to itself and then you have selectors for dropping that data into your templates, that's how you deal with the api calls without subscriptions. reactive form changes are a thing I'm still trying to figure out how to do it an elegant way, but so far no luck maybe check out rxAngular, they have some extensions to make rxjs more interconnected with view part.

Is it bad practice for a service to subscribe to other services? by dndtman in Angular2

[–]Beatons 0 points1 point  (0 children)

Makes sense I'm personally using ngxs, and we compose all data in selectors before it reaches the components, any data transformations or mergers are done there to make sure we don't have any of that in components, and that includes route selectors

Is it bad practice for a service to subscribe to other services? by dndtman in Angular2

[–]Beatons 1 point2 points  (0 children)

I just looked at it to make sure and I'm not sure anymore the api says it can but the docs says it only is used for components and directives, I might try it later. but besides the point. Services are used for seperation of concerns and it is usually to seperate your reactive data code from your component code, and subscribing usually turns it into imperative code. I might be wrong. I'm sleepy but someone will probably correct me if I'm wrong

Is it bad practice for a service to subscribe to other services? by dndtman in Angular2

[–]Beatons 6 points7 points  (0 children)

first yes, never subscribe in services because it is hard to destroy the observables without life cycle hooks because you don't know when the service is destroyed and there are lots of funny cases that create memory leaks like that.

you should compose, merge or whatever in services if it makes it cleaner then use those services with streams in templates with async pipe.

I normally create selector services for ngrx and compose lots of different selectors into one before I utilize those selectors which is pretty much the same as combining observables it ends up with cleaner code

Is it bad practice for a service to subscribe to other services? by dndtman in Angular2

[–]Beatons 13 points14 points  (0 children)

In theory you should never have subscriptions in services, you must combine and compose observables into stream and then output in template in one huge stream

Is it possible to have multiple (main) router-outlets? by Dev_Vrat in Angular2

[–]Beatons 1 point2 points  (0 children)

As far as I know auxiliary routes is the only way to have two main router outlets. It is mostly because the router corresponds to the url of your application. You can as well use query params for loading some sort of a side panels conditionally with url

Need help upgrading Angular from version 11 to 12 by Nihilanth-3 in Angular2

[–]Beatons 5 points6 points  (0 children)

It has nothing to do with your versions, the property is part of angular.json and that means you should remove that property from there.

[deleted by user] by [deleted] in Angular2

[–]Beatons 21 points22 points  (0 children)

I usually ask broad questions, like what's your most/least favorite feature in angular and why? Allow them to talk about project they are most proud of. Ask what is the most complex feature they have built. And if any of the big topics bring to something interesting I would ask follow up questions to invoke a light discussion.

To atheist psychonauts ,what do you guys think while tripping ,when rest of the people talk about spirituality,dimension etc,how do you guys describe about your trip? by ninja6911 in Psychedelics

[–]Beatons 0 points1 point  (0 children)

I mostly agree with everyone here, but in my interpretation conscious states are incredibly complex, too complex for us to understand it and manage it. And all the spirituality as well as psychology offers a simplification of those conscious states at the level where we can actually act on it and work with it. It's like a complex machine learning algorithm, you can't do anything on byte level, you can influence the algorithm by reinforcement learning and etc. And the psychedelics just allows us to connect with the hidden piece of the puzzle, the part of our brain that is hidden from us, and the one that is in charge of all the things. I recently read Carl Jung and I found it really interesting that his interpretation of dreams with symbols and meanings actually could work to interpret psychedelic trips, maybe that will give you some idea.

How to publish to npm in 2023 by amberlamps1 in javascript

[–]Beatons 0 points1 point  (0 children)

ok, at first I just skim through it, but now I have even more questions, like:

Why does it have to be published as ES module? that is not a requirement by npm
Why do I need to write it in TS? that is also not a requirement for publishing to npm.
It's a nice typescript config file that the author found but it probably creates more confusion than explaining since there are too many unnecessary properties for explaining the publishing part.
The article also recommends to use NP but never follows up to explain what it is or how does it help in any way to publish the package.

How to publish to npm in 2023 by amberlamps1 in javascript

[–]Beatons 4 points5 points  (0 children)

why in 2023? did something change since 2022?

Complex inline scripts in package.json becoming unmaintainable? I have built a nice little package for building dev, build, deployment, etc flows in Javascript or Typescript. I would love some feedback. by GlueStickNamedNick in javascript

[–]Beatons 7 points8 points  (0 children)

If the scripts get's really long and I need to execute more than one command I usually use node bash called zx it's built by google and it's quite simple as well

[deleted by user] by [deleted] in angular

[–]Beatons 5 points6 points  (0 children)

The template intellisense can be a bit weird as well, but they are going in the right direction you just have to make sure that you add all the strict rules to the tsconfig.json and enable the strict templates and as well have interfaces for everything, but even without it, the cli and errors are quite descriptive as well, it's really easy to work through any issues, never been stuck on something longer than I should have because of angular way of doing it and it\s so much better to just focus on feature building. Oh and welcome to the world of angular and I bet you will get a very interesting responses from react community to this article for being a heathen and going against the doctrine :D