HNHacker News
TopNewBestAskShowJobs

sb8244

1,554 karma · joined December 2, 2013

submissionscomments
sb8244··on Phoenix 1.7 is View-less
Ranging from very basic static form to forms that had dynamic /polymorphic embedded objects in them. Like being able to hit a + button and a new row is added as a child of the form that has it's own validations based on a type attribute.
sb8244··on Phoenix 1.7 is View-less
I'm also not sure. I think it's an interesting point that you bring up.

My comment on value is mainly one of "all or nothing". I think a manual typing at the edge is probably sufficient for most people.

That said, you could implement all of your forms and events as structs or schemas and rig up a piece of the dev process to convert them into types. I think many in Elixir would view it as overkill so it hasn't been done afaik. But I also think it could be implemented very easily and then you'd have end to end typing.

sb8244··on Phoenix 1.7 is View-less
Correct.

You could rig something up in probably 2-3 days if that was super important for you.

I did manual typing at the edges and that sufficed for me.

sb8244··on Phoenix 1.7 is View-less
I'm hoping to see more patterns in the forms space. I spent 18 months building a product in LiveView (didn't work out in the end) and complex forms were one of the most difficult things.

I got really good at creating them in the end, but it was all homegrown patterns that I don't think I'd want to push on others.

My favorite (and fairly simple) pattern was emitting an event from server to client to get the client to send it's entire form state to the server. That was my escape hatch because it worked inside of any component structure.

sb8244··on After 20 years the Dwarf Fortress devs have to get used to being millionaires
Getting 4% right now at a normal bank (no high rate shenanigans)

I bet I'll see 5% within next 2 months. Obviously interest rate changes drastically over time.

sb8244··on Elixir – HUGE Release Coming Soon
It doesn't mean that the thing will be in the Elixir language. Nx was teased in a similar way and ended up being an external library.
sb8244··on How We Built Fly Postgres
I saw this earlier and thoroughly didn't understand what is going on with that. I can't make any sense of why that would be so high.

Feels like a better test would be for the healthcheck to time the query RTT and report that back. Completely remove the web request from the equation.

sb8244··on How We Built Fly Postgres
I recently setup fly -> ec2 -> rds using their wireguard + pgbouncer template.

I'm getting 7ms RTT on us-east-1. Of course I messed up my setup the first time and had RDS in Ohio... That was 30ms.

You would probably get sub 5ms if you did public RDS connection. Don't know if that would ever pass an audit though.

sb8244··on Engineers should do customer support and success
Yes, I came to reflect this sentiment.

In startups there's a push for founder-led sales because it's the best way to learn from your target customers.

It's the same for engineers. The quickest way to validate your assumptions, see where the rough edges are, identify an easy bug, etc. is directly from the customer.

I found that doing it myself with a support rotation was the best way to do this. That said, it's not "throw engineers into the deep end". It was managed by support team to optimize my time and their benefit. We were able to mutually teach each other a ton.

sb8244··on Backend for Front-end
> In the case of [backend for frontend] we’re adding one extra hop before the client gets their data.

> You either have the client call 20 service/data?client_type=ios or you have the frontend backend call 20 different service/data?client_type=ios

The article touches on this point, and it mirrors what I've seen as well. The time from client -> backend can be significant. For reasons completely outside of your control.

By using this pattern, you have 1 slow hop that's outside of your control followed by 20 hops that are in your control. You could decide to implement caching a certain way, batch API calls efficiently, etc.

You could do that on the frontend as well, but I've found it more complex in practice.

Also a note: I'm not really a BFF advocate or anything, just pointing out the network hops aren't equal. I did a spike on a BFF server implemented with GraphQL and it looked really promising.

sb8244··on UBS, Wealthfront Cancel $1.4B Deal
Just to be very clear for anyone else who comes across:

Fee-only simply means they are paid an agreed on price from you and they don't get kickbacks, commissions, any type of reward for where you put your money. Fee-only fiduciaries will also have a link on their website to a PDF that very clearly describes the relationship and pricing.

There are hourly fees and AUM fees. I have only seen hourly fees apply for the creation of a financial plan. I did not see any offering in my area of someone managing a portfolio for less than 1% AUM.

The cost of a financial plan was quoted to me at least $6500, so not cheap.

I talked to a "normal" financial advisor as well—they get kickbacks. They tried to put me in super aggressive setups, life insurance, etc. It was not discussed upfront what their cuts are and it was very clear that it wasn't best for me. Be very very cautious if you ever go down this route.

sb8244··on UBS, Wealthfront Cancel $1.4B Deal
I looked into fee only advisors in my area for investing and 100% of them charge a minimum of 1% AUM in order to "do their thing" with it. It was pretty crazy experience to go through. Most of these advisors are creating a portfolio using ETF index funds, so it is a pretty outrageous price to pay.

I did find one that sold hourly consultations and she was really helpful at confirming my plan and that another situation I may have gotten myself into was not a good deal for me.

I say all of this because $500-1000 for a fee-only advisor is something I literally could not find. Additionally, advisors I researched have minimums in the hundreds of thousands range.

I ended up following bogleheads methodology and I think I'll be happy. It's still pretty new so no real data yet.

sb8244··on UBS, Wealthfront Cancel $1.4B Deal
It becomes worth it if you want someone to tell you things you don't know. For example, auditing your retirement contributions, cash flow, planning for future cash flow, etc. It can be really comforting to have someone that knows the landscape give you advice or confirmation.

For actual investments, I am basically bought into the "bogleheads" methodology. So, I don't think it's worth it to pay for an advisor.

BTW, Wealthfront minimum fee is 0.25% annually. I only say this because if you have more than 500$ in WF then your fee should be higher than $.11

sb8244··on Ask HN: So, what's up with Phoenix (web framework)?
I've worked on a variety of different size apps, but I haven't run into many issues with state synchronization yet. Generally, I try to keep data as close to its source of truth as I can. So if I need to synchronize state between actors, it would be to achieve a task and not to have duplicated data.

This could be an artifact of how I build systems. I have heard of some people that build really small actors and do a lot of data exchange. Without knowing details, I'd lean towards that being an anti-pattern.

sb8244··on Ask HN: So, what's up with Phoenix (web framework)?
Here's an analogy that I've been using lately that talks about why I love elixir.

When I wrote apps in other languages in the past, I felt like I was building a big skyscraper. Everything was sorta connected and it was difficult to add new doors into the project. I was sometimes limited to building something I wanted because the runtime just wouldn't allow it.

When I'm writing Elixir, it's like I'm building a city. Everything works in concert, but I could build a small building next to a skyscraper next to another building.

This is because of the runtime, not the language. It's easy to build self contained "apps" that are deployed with everything else but isolated. It let's me build the app I want rather than forcing me into a very specific way of building.

And just to be clear I'm not talking microservice, that would be like building multiple cities connected only by little roads.

I'm work shopping this analogy since it's not as clear and concise as I'd like :)

PS. I'm pretty active in the community and other private communities and didn't know about the survey. I would have a hard time imagining large scale survey orchestration given that.

sb8244··on Bolt Financial's loans come due
I have seen RSU granted at non public companies. But I think it was a one time thing when I saw it, after a private equity event occurred.
sb8244··on Bolt Financial's loans come due
The info I've seen for RSU indicates tax on vest, even if the stock is not liquid (private company).

Is it really true that tax is only if the asset is liquid? Does the IRS make a distinction between liquid and illiquid here?

sb8244··on Ecto's uniqueness constraint vs. Rails' uniqueness validation
Yea this has gotten me too. What I do now is specify the field I want the error on first in the constraint function, then manually set the index name.

It will still work exactly as expected if you provide the index name manually, even if it's not the same order as the constraint in the DB.

sb8244··on I sold 640 copies of my book in one year
Pragmatic may be worth exploring. The 50% cut is really high compared to rest of publishers, and I believe that 80% of my sales came from their reputation and marketing.
sb8244··on Okta’s Investigation of the January 2022 Compromise
The article specifically addresses this, right? They log every interaction from support engineers and are going to report to the affected customers what actions were performed.

As others have mentioned, the slack access is potentially more concerning.

sb8244··on Nvidia Grace CPU
I bought the 16GB air for 1000 and it's easily the best laptop I've ever owned. Fantastic value
sb8244··on Server-Sent Events: an alternative to WebSockets
I can’t find any downsides of SSE presented. My experience is that they’re nice in theory but the devils in the details. The biggest issue being that you basically need http/2 to make them practical.
sb8244··on Back-end languages are coming to the front-end
I believe the BEAM only interrupts after "reduction" limit is reached, and is after function calls end. The big difference is that everything is a function call, so there's frequent opportunity to be interrupted. There's no functionless for-loop iteration, for example. I think having that would be a big sticking point for scheduling
sb8244··on The WebSocket Handbook
You could totally do this with BEAM, via hot swapping. The WebSocket processes don't really change, it's the implementation of what happens when messages comes in that changes. So you'd setup your hot swap with this in mind. (The connection processes stay connected and the behavior module is swapped out?)

However, hot swapping is not super common in practice. Mainly because it's added complexity that most people can live without.

sb8244··on Woe be unto you for using a WebSocket
I wrote Real-Time Phoenix and it goes into pretty much everything that I hit when shipping decently large real-time Channel application into production. Like, the basics of "I don't know what a Channel is" into the nuance of how it's a PITA to deploy WS-based applications due to load balancers and long-lived connections.

The new LiveView book is great if you're interested in going fully into Elixir (server/client basically). I use LiveView for my product and it's great.

sb8244··on Woe be unto you for using a WebSocket
Channels are really just a protocol, but that protocol is implemented in Elixir (Phoenix) and so isn't available elsewhere.

I think that the important question is "why does this protocol exist?" Most likely, you'll end up solving similar problems as to why Channels exist in the first place. So from a protocol perspective, it's nice that some problems are solved for you.

sb8244··on Build an Elixir Redis Server that’s faster than HTTP
It's 1000 iterations in 2 seconds. That may be including connection setup time as well, I didn't dive into whether there's keepalive or not.
sb8244··on SpinLaunch completes first test flight with rocket-flinging launch system
One mock up images shows it at an angle.
sb8244··on Ask HN: How to negotiate stock options?
Wow. Thanks a ton for those links. Definitely something I want to share with others in the future.
sb8244··on Ask HN: How to negotiate stock options?
I'm confused here because my understanding is that 83b is specifically for shares and not options.
← PreviousPage 6 of 21Next →