Readit News logoReadit News
JohnCurran commented on How to Do Great Work   paulgraham.com/greatwork.... · Posted by u/razin
matwood · 3 years ago
> I am frustrated that the USA’s money advice largely comes from billionaires.

One of my big issues with the 'follow your passion' advice is it almost always comes from people who are already rich. And, those people are often trying to leverage worker passion to staff their companies.

As a young person, don't follow your passion. Instead, figure out the fastest way to economic security and once there, then figure out a passion.

JohnCurran · 3 years ago
> Instead, figure out the fastest way to economic security and once there, then figure out a passion

This is good advice and I agree with it. I just wish it wasn’t the advice we had to give

JohnCurran commented on How to Do Great Work   paulgraham.com/greatwork.... · Posted by u/razin
JohnCurran · 3 years ago
I respect Paul and everything that he writes, even if I don’t agree with it. It takes some serious stones to publish your thoughts on the internet - whether people agree or not.

In any case. This seems like a continuation of the never ending quest for people to sacrifice themselves for the betterment of a corporate profit they will never see.

I’m not interested in eliminating the ceiling - I want to raise the floor. Having a “side hustle” shouldn’t be a requirement to get by.

I am frustrated that the USA’s money advice largely comes from billionaires. They’re not like us. That’s OK. There’s a lot of room between millions and billions

JohnCurran commented on Life After Language   ribbonfarm.com/2023/05/04... · Posted by u/jger15
JohnCurran · 3 years ago
> the longest regular conversations I’ve had in the last week have been with an AI-powered rubber duck

I think, and am basing this off of nothing objective, but it feels like the vast majority of content today is written by people who spend, frankly, too much time online. I think the fact I’m writing a comment about this says that I, too, spend too much time online.

The bubble that the tech world and this website in particular differs so much so from reality that I don’t know what to make of the articles that front page here.

All the twitter doomsaying, trump will never be president, all entirely wrong. I don’t know what to make of it - maybe I should log off for a while

JohnCurran commented on Angular v16   blog.angular.io/angular-v... · Posted by u/Alex3917
NoNameProvided · 3 years ago
I think the most bad rep for RxJS comes from using it when it is not needed.

Parent comment said:

> But the problems they solve are also unintuitive.

Do you consider calling a JSON API unintuitive or complex? If not, then you may be using the wrong tool. If you need nothing else, you are perfectly fine using a promise.

If you need to await extra requests, transform them, and react to other events then you need RxJS. For a simple call, you do not.

> I would imagine most people’s use case (mine certainly is) for RxJS boils down to “call a JSON API and receive a response”. That shouldn’t be a hard problem

Do you consider the following code hard to understand or are you are making requests in a more complex way?

``` this.network.get('<url>').subscribe(response => <do whatever you want here>) ```

Even if we agree to disagree that the above code snippet is hard to understand, you can just convert it to a promise:

``` const response = await lastValueFrom(this.network.get('<url>')) ```

JohnCurran · 3 years ago
No, that call isn’t difficult. What is more difficult are examples given on things like Angular University, where there are pipe, subscribe, catchError, among others, in a single call chain. It’s not obvious to me at all what the order of execution is in this call chain for instance:

    http$
        .pipe(
            map(res =>     res['payload']),
            catchError(err =>     {
                console.log('caught mapping error and rethrowing', err);
                return throwError(err);
            }),
            finalize(() =>     console.log("first finalize() block executed")),
            catchError(err =>     {
                console.log('caught rethrown error, providing fallback value');
                return of([]);
            }),
             finalize(() => console.log("second finalize() block executed"))
    )
        .subscribe(
            res => console.log('HTTP response', res),
            err =>     console.log('HTTP Error', err),
            () =>     console.log('HTTP request completed.')
    );
Once you see the output it begins to finally make sense but intuitive it is not

JohnCurran commented on Angular v16   blog.angular.io/angular-v... · Posted by u/Alex3917
miiiiiike · 3 years ago
Unintuitive? Yes.

If by unintuitive you mean “Can I look at it without training and know what’s going on.” But the problems they solve are also unintuitive. Only, those issues can be buried under a tangle of nested callbacks that look correct, intuitively.

Once you take the time to really (and I mean really) understand RxJS it’s incredible. Write your own Observables. Write your own operators. Learn what the built in operators are really doing (subscriptions, etc) reimplement them yourself.

JohnCurran · 3 years ago
First: This is not an attack on you

I have such an issue with this response because it just seems like “you’re holding it wrong” a la the iPhone “scandal” where apple attempted to blame an engineering flaw on its users

I would imagine most people’s use case (mine certainly is) for RxJS boils down to “call a JSON API and receive a response”. That shouldn’t be a hard problem

Imagine if someone complained about the complexity of Git and the answer was to “write your own DVCS”

The entire point of abstractions is that I don’t need to understand what’s going on underneath them

JohnCurran commented on Why and how we retired Elm   kevinyank.com/posts/on-en... · Posted by u/elorm
slimsag · 3 years ago
What are your thoughts on the direct descendant, Roc? [0] I know it's pre v0.1 so maybe you don't have any, but as a fellow Elm lover it seems pretty compelling on the surface albeit less directly frontend-dev focused.

[0] https://github.com/roc-lang/roc

JohnCurran · 3 years ago
There is also gren, a fork of Elm being actively developed https://gren-lang.org/
JohnCurran commented on Understanding the .NET ecosystem: The evolution of .NET into .NET 7   andrewlock.net/understand... · Posted by u/alexzeitler
Merad · 3 years ago
Configuration is applied in layers. If you’re using the default setup you get the following layers applied in this order:

1. appsettings.json

2. appsettings.{env}.json

3. user secrets (only in Development environment)

4. environment variables

5. command line args

You can full customize the setup if you desire, there are packages to support things like external secret stores. If you Google ‘Asp.Net core configuration” there’s a MS page that goes into great detail on all of this.

Anyway, your env vars must match the name as you’d structure it in a json object, but with the periods replace with double underscores. So ConnectionStrings.MyConnection becomes CONNECTIONSTRINGS__MYCONNECTION, FeatureFlags.Product.EnableNewIdFormat becomes FEATUREFLAGS__PRODUCT__ENABLENEWIDFORMAT, etc.

JohnCurran · 3 years ago
Thank you - I had read that portion of the docs but for whatever reason that part of it just didn’t click. For some reason it made me think I could only use some special subset of env vars that were prefixed with ASPNET_CORE or similar
JohnCurran commented on Understanding the .NET ecosystem: The evolution of .NET into .NET 7   andrewlock.net/understand... · Posted by u/alexzeitler
cyral · 3 years ago
Been using .NET for years now for backend web development after having taken a break from C#. It is such an improvement over the old .NET framework. When I started building my first backend with it, I was surprised how much was included and "just worked". Need to add authentication? Few lines. OAuth? Also built in. Response caching? Yes. ORM? EF Core is pretty good. Need to use env variables to override your JSON config? You are going to have to build a... just kidding that works with one more line too.

Coming from NodeJS, the amount of stuff that could be added with a single line from an official package was great. No more worrying about hundreds of unvetted dependencies.

JohnCurran · 3 years ago
I have been having a ridiculous time trying to find out just how to override an appsettings json variable (DBConnection string) with an environment variable. Could not find any good answer. What is the right way?
JohnCurran commented on Salary Transparency   xeiaso.net/salary-transpa... · Posted by u/popcalc
andsoitis · 3 years ago
Buffer might lead the way with respect to transparency but at first glance those salaries don’t look very competitive.
JohnCurran · 3 years ago
I feel I must ask where you live / what competitive salaries look like to you, because as far as I know, a software developer salary of $190,000 USD+ in Barcelona, Spain is eye-poppingly high

u/JohnCurran

KarmaCake day245May 1, 2020
About
Elixir, Phoenix, LiveView

Johnelmlabs.con

View Original