Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nickjj
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
78 ms
·
841.
▲
by
nickjj
4y ago
Ah, I'm surprised Slack doesn't support Ruby, but to be fair they are pretty tight on official support with only Python, Node and Java. Fortunately there's https://github.com/slack-ruby/slack-ruby-client
842.
▲
by
nickjj
4y ago
If you're only interested in the total number of hosts within a CIDR block for IPv4 addresses you can do this Python 1 liner: python3 -c "import ipaddress; print(ipaddress.ip_network('10.0.0.0/16').num_address
843.
▲
by
nickjj
4y ago
> I think the general challenge of "how do we get a sustainable, supported, mature/polished open source ecosystem of software that we can use that works together" is kind something we don't really understand I think o
844.
▲
by
nickjj
4y ago
> Every time a new language comes out we have to recreate millions of baseline libraries and it just sucks. As a dev I want to be able to make use of great libraries oblivious to what they are created with. Technically this tool mostly d
845.
▲
by
nickjj
4y ago
The blog post mentions Elixir and while Elixir has its own mini-Rails with a lot less opinions, you'll still run into the same problems as Clojure around things like wanting a Stripe supported library, or PayPal, or Braintree, or Paddl
846.
▲
by
nickjj
4y ago
Thanks, that's a good idea -- especially for standalone courses that are kind of pre-made and done. I guess it's a bit tricky to balance with "screencasts vs courses" which I suppose is a different conversation than a SA
847.
▲
by
nickjj
4y ago
> I don’t see what’s SAAS about a content subscription but yes, I prefer that. Yeah that's a fair point. I boiled this down to paying per month or a 1 time purchase. It was coming from a more general angle where it could be content,
848.
▲
by
nickjj
4y ago
For technical learning material do you prefer a SAAS model where you pay $10-20 / month for all-in access to short isolated videos in a related subject (potentially ~4 new videos a month) or dropping $50-150 one time for a course that
849.
▲
by
nickjj
4y ago
> Sure, but that still leaves open the possibility that the brain is just a transceiver and the actual locus of your self is somewhere else I never thought of that but I don't know. This sounds like you're remote controlling yo
850.
▲
by
nickjj
4y ago
> So? My memory has gaps that can't be accounted for while I was awake. Yeah, I can't tell you what I was doing at any specific minute of time 15 years ago but I can say I was alive back then, at least to a degree of what we ge
851.
▲
by
nickjj
4y ago
> So if your identity can be restored after sleep and anesthesia, why not after death as well? I don't know the low level details about how the brain works but... When you're sleeping and are under anesthesia your brain is stil
852.
▲
by
nickjj
4y ago
> No need to add clauses to SQL WHERE statements for users/groups. ORMs have support to add in these conditions automatically, you only have to define the condition in 1 function. This gives you the best of both worlds. You can use
853.
▲
by
nickjj
4y ago
I don't see retirement as not doing anything. I see it a synonym to being financially secure. It's being able to choose to do whatever you want.
854.
▲
by
nickjj
4y ago
Do you ever think back and wonder if maybe you did make the right decision? After factoring in ~10x 15-20% jumps over 25 years, compounding interest and more maybe that translates to being 100% financially secure 10 years sooner. I didn
855.
▲
by
nickjj
4y ago
Oh yeah I remember your reply (not word for word but the approach of using it). If you search around for using process dictionary it seems to go against the grain of Elixir since it introduces mutable state which is fundamentally against wh
856.
▲
by
nickjj
4y ago
> IP.subnet.is_in is a guard, so there are different constraints. You could still use the `in` keyword. Does that mean you can do something to make it transparently support IPv4 and IPv6 even though the docs mentions it only supports IPv
857.
▲
by
nickjj
4y ago
> Did you try asking on the forums? Nope, I only looked up the Elixir solution for the sake of my reply here. I haven't worked with Elixir in like 9 months. Based on the docs it says IP.Subnet.is_in only supports IPv4. The Python an
858.
▲
by
nickjj
4y ago
This is very true but there's still is a very big difference between knowing languages like JS, Python, Ruby or Go but then jumping into a place that uses Elixir or a niche language that's different than a lot of other popular lan
859.
▲
by
nickjj
4y ago
The AWS SLA compensation is also very much rigged against you beyond percent based outage durations. For example a couple of months ago AWS had an outage that caused all of our customer facing domains to go down in us-west-2. It meant going
860.
▲
by
nickjj
4y ago
If you use Basecamp you can climb with hill charts: https://basecamp.com/features/hill-charts
861.
▲
by
nickjj
4y ago
Up until yesterday I didn't know Zendesk was written in Rails. They had a talk at RailsConf 2022[0] where they went over how they handle a billion requests a day with mostly a Rails monolith. I wonder why they're not brought up mo
862.
▲
by
nickjj
4y ago
From the article: > Those ramifications for merchants include losses that can be up to double the original transaction amount and increase a merchant’s chargeback ratio, which can impact their business and their bottom line. I wish it
863.
▲
by
nickjj
4y ago
Finally, somewhere that I fully agree with. Being on-call while you do not get called upon is 24 / 7 work because you have to live your entire life around being available. Like the blog post mentions, grocery shopping has implications
864.
▲
by
nickjj
4y ago
Makes sense. There's probably some benefits around blacklists too. For example if a user uploaded questionable content to assets.example.com/uploads, such as pirated content then someone could submit that to search engines and oth
865.
▲
by
nickjj
4y ago
Is this also another case for hosting your main site on www.example.com instead of example.com? This way you could have cookies only on www.example.com while hosting user generated content on assets.example.com or whatever sub-domain you wa
866.
▲
by
nickjj
4y ago
> You shouldn't need to use lock files if you're using semver properly. I think this issue is unrelated to semver. I've had so many issues over the years with Python packages, even very polished libraries like Flask and Ce
867.
▲
by
nickjj
4y ago
> I can't fathom optional parenthesis. I think this kind of falls in line with the idea of Ruby giving you sharp knives[0]. Like you I used to have a love / hate relationship with this because it feels inconsistent to sometimes
868.
▲
by
nickjj
4y ago
> Any Pythonistas/Rubyists here that could point out some Ruby shortcuts that make you more productive? It depends on what you want to do. If it's building web apps there's Ruby on Rails, which is written in Ruby. In my op
869.
▲
by
nickjj
4y ago
Indeed! If you're using the fzf.vim plugin[0] you can run `:Commits` to do something similar to your command too. It adds a bit more detail such as when the commit was made in relative format and color codes the git diff. [0]: https:&
870.
▲
by
nickjj
4y ago
> could I achieve that with fzf? I've been sporting this alias for a while now: alias pf="fzf --preview='less {}' --bind shift-up:preview-page-up,shift-down:preview-page-down" You can run `pf` (preview f
More ›