Hacker Newsnew | past | comments | ask | show | jobs | submit | xutopia's commentslogin

Cmd+~ switches windows of a given app in case you didn't know (not disagreeing with you but it is one shortcut I find super useful and it helps switch windows).

My hate for this behavior grows with each passing year as more and more of the "apps" I use become browser windows.

This is why I regard ChromeOS with fear. Because it really does feel like everything is just converging on the browser as the OS, and a browser is not a goddamn OS.

The browser is effectively an OS - and it’s not very productive to cling to the notion that it isn’t one

It's not very productive to build an entire OS on top of and JIT compiled on top of my already mature and functional OS. It's a waste of my time.

And if it is an OS, it's also just not one where I can be very productive.


It is productive though because it’s a universal platform. The economics of it are unavoidable

I have a non-ANSI keyboard so tilde is in a super weird place for that (next to left shift). I swapped the shortcut to Option+Tab, makes much more intuitive sense.

I heavily use this one actually.

On Linux I miss it and create a hybrid super-tilde action that cycles through apps of the same kind as the focused app.

Me too, in fact watching my hands for a moment, it's the only way I switch applications now

For some reason it's currently broken for Firefox on Mac, at least on my end.

Works fine for me

Zed feels way snappier to me than VSCode and I love the vim mode too.

It's been like this for a while. It has been assumed that Congress doesn't have that power anymore but the president does. Here is a letter that President Obama wrote on the subject that explains it a bit (but if you want to hear more about this check 99 Percent Invisible podcast on the latest constitution breakdown series).

https://obamawhitehouse.archives.gov/the-press-office/2016/0...


Location: Montreal, Canada (EST)

Remote: Yes

Willing to relocate: No

Technologies: Ruby on Rails, Hotwire (Turbo, Stimulus), Hotwire Native (iOS & Android), BDD/TDD. I build web + mobile apps from a single Rails codebase using Hotwire Native.

Résumé/CV: https://www.linkedin.com/in/garyharan/ Email: gary.haran@gmail.com

About:Senior Rails engineer / engineering leader (20+ yrs; Shopify, Circle Medical, Mirego; founder with exit experience).

Comfortable as the first engineering hire: translating product ideas into an MVP quickly, especially for non-technical founders, then building and mentoring the team post-MVP. Strong preference for Rails + Hotwire Native and early-stage startups where speed, ownership, and long-term maintainability matter.


Spirulina is not a good source of choline. You'd need about 6 cups of it per day to get it. I think the person commenting is just interested in spirulina itself and is misguided about its benefits.

The studies listed as part of this thread show people taking 3-4 grams per day for 8 weeks... that's less than 1% of choline RDI. Not very relevant to our conversation.


Spirulina is a source of choline, I never stated it was a main source. I fully understand the benefits of the supplement, and have read many studies on it.


People have to stop trying to depend on supplements for what a diet should provide.

Neither spirulina nor chlorella are good sources of choline. For example if you had to take spirulina you'd need about 6 cups per day to reach RDI. Way to risk getting elevated uric acid, vitamin A overload or a slew of other intestinal issues.

Compare with 3-4 eggs... or 90g of beef liver I know what I would take.


I stated the supplement has choline and has helped with my anxiety. I never stated it was a main source of choline.


3 or 4 eggs a day? 90g beef liver? Sign me up for those pills, Bill.

Like 120 eggs a month, 1400 eggs a years. That is what you envision as the healthier alternative?


Ahhh the old "eggs are bad for you" meme. Eggs are demonstrably healthy. Just don't fry them in a gallon of butter and you'll be fine.


As Lenny once said on the Simpsons: "While it has been established that eggs contain cholesterol, it has not yet been proven conclusively that they actually raise the level of serum cholesterol in the human bloodstream."

https://www.youtube.com/watch?v=AHAFMFFQlkI


So, one of those Egg Council creeps got to you too?


It's not that eggs are bad.

It's more that that's a shit ton of eggs. Money aside, this just contributes even more to the incredibly polluting factory farm industry.

A suppliment synthesized in a lab has far less ecological impact. Also it's far cheaper.


It's 400 calories worth of eggs, a very modest meal that would get you to just 1200 calories a day. That is not a shit ton of eggs.

Back when I was in college I would eat 6 eggs plus some fruit for breakfast because I was flat broke and they kept me full all day.


4 eggs a day isnt a shit ton of eggs by any means.


Then demonstrate?

In 2015, the U.S. Dietary Guidelines shifted from implying that one egg a day is “probably a bit much” to saying “one egg a day is fine if you don’t fry it.” This coincided with the removal of the quantitative cap of 300 mg/day on dietary cholesterol (a single egg basically maxes that out).

EDIT: The calorie count used to compute the portion of the comment below were incorrect. I'm leaving it unchanged for posterity, but want to clarify that an egg has about 80 cals.

Four eggs a day is almost 1,000 calories of egg, roughly half of many people’s total daily calorie intake.


Fat and cholesterol don’t hurt you, or make you fat.

Sitting on ass does.

If you are looking to the landing page of any of those major bodies to figure out how to fuel your body, good luck.


I'm sorry, but this just sounds like the "Forbidden Knowledge" Trick (think of it as a cousin to Galileo's Gambit)

(1) In your most authoritative tone, state something as fact without citation.

(2) Say major testing-based orgs are never going to give you the real truth.

We have a system for knowledge. I think it is an absurd mess, but I trust it way more than anything presented in the format you’ve just used.

Maybe this is just a formatting issue and you have credible information to back your claim, but as it is currently presented it does not pass the sniff test.

So, as politely as possible, pass.


Good news: I wasn't trying to sell you anything!

Read other people's experiences, and feel your own body.

Or, politely as possible: don't, I don't care.

It's truly up to you.


Wait, what? Of course you were!

Heck, you still are; "Read other people's experiences and feel your own body." That is a mode of interacting with the external world and processing knowledge. You didn't even suggest I do it; your sentence was a directive. Furthermore, it was packaged in that cool detached "above it all" way that humans sometimes use to convince others.

It's good/okay/whatever to try and sell people on your worldview. I was engaged and conversing that is the social cue to do so. The fact that you didn't convince me is whatever on the internet. But playing it off like you weren't doing that... why?

I'm pretty sure the number of times someone has been convinced on the internet wouldn't even correctly round in IEEE double-precision floating point.


I didn’t try to sell you anything that I would benefit from.

Incentive structures matter.

I'm "above it all" because it's a casual internet comment; I've got nothing on the line.

Reading matters, too...I never said "never", and everything you've been saying since then has been a weird dress down.


What? A jumbo egg is like 70-100 calories.

Like most things I’m sure you can overdo it. But if you’re choosing between cereal and a bagel or a couple of eggs, I think most would be better off with the eggs.


You're 100% right. In the back of my head I had egg at 200+ calories


Maybe they're eating goose eggs.


Liver can be pretty good if you spice it up Jamaican style. I regularly make this for people who tell me they don't like liver and they just love it. Pretty easy - Fresh and whole tumeric, ginger, garlic, onions, thyme, oregano, and as much scotch bonnet as you can handle. Soak the liver in brined water or milk for a few hrs and it will draw out a lot of the strong taste as well (French technique). Stew in some water after sautéing the onions to your liking. Same recipe works for stewing heart meat if that's something more to your liking, and it also contains a lot of the same nutrients that a lot of people are lacking in modern westernized diets. Consider what other predators do when they get to their prey: They go straight for the liver and heart.

However if you don't like the idea of trying new things, and just want something in pill form, honestly lecithin or even better citicoline is the way to go in my opinion


I think I could eat just about anything if it were doctored up that way. First, seriously, that sounds delicious! Second, I doubt even the terrible (to me) tast of liver could make it through that wall of flavor.


Chicken liver has more iron and selenium in it per Oz than beef liver. Easier to eat a ton and not as harsh tasting. Make some dirty rice or just liver stew!


I prefer to turn that into patê personally. Always the goal is getting people to actually eat the stuff


I can eat a hard boiled egg on the way to the bathroom.

What’s up with you?


> Way to risk getting elevated uric acid, vitamin A overload or a slew of other intestinal issues.

I thought vegatables = good? You can never eat too many greens I think youll find is the prevailing wisdom


Spirulina is not really what is mean by a "green" in that context. You probably can't physically ingest enough spinach/kale/etc to do yourself any harm. Powdered algae is not necessarily such a sure thing


Eggs are gross and I'd need a much better reason than "someone said it was better than supplements" to take a life.


The eggs you buy in the store are not fertilized. They are not, never were, and never can be alive.

This is like fifth grade biology.


Title needs to update... it is now 4.


Thank you for this article. It makes it easier to explain to newcomers to Ruby why not to use the `for` keyword.



Thanks for reading. I didn't expect to hit HN Front page a second time this month!!


You're seriously the exception. Everyone I have spoken to who switched to EV don't want to go back to ICE.

ICE cars have way more things that break down and less reliable for the most part. As for always having to charge... most people driving an EV recharge every night at home and rarely require a charging station. Road trips are a different story but most people don't have regular road trips.


Everyone I spoke to hates their EV and want to go back to petrol


I love how this article reads more like the individual ignores features and capabilities of other frameworks to then state that the framework he chose is better.

Rails has everything he mentions as an advantage of Phoenix. He's also implying that Rails does not use web sockets to communicate with frontend which is not only wrong it should be evidently wrong to anyone who built a Rails app in the last 3 years.

That's not to say that Phoenix and LiveView aren't phenomenal tools, they are! However what's keeping me in the Rails world is Hotwire Native. I truly feel like a one man army building mobile and web apps in a quick turnaround time.


Ive only used ruby a handful of times, so my comment might be ignorant. But other than community , what does ruby and ror do better than say elixir & phx, i feel like the latter is leagues ahead simply because nothing can compare to the beam platform for soft real time systems, you have fault tolerance, nifs, actor model , you can have millions of processes running at the same time for cheap, easy to reason about concurrency , fp makes code concise imo, otp, the beam gc doesnt stop the world etc I just think on paper phx is superior thanks to the beam platform

That being said use what you like and hotwire native sounds cool will give it a try. I also think the author of the blog shouldve went a bit deeper with his points


One of the arguments is how noisy the languages are. Elixir is without a doubt more powerful, more scalable and more sophisticated than Ruby.

What Ruby has though is ability to express what you are doing in a clear syntax. Elixir has a lot of ritual (albeit less than erlang) to set up your most used things like GenServer - you don't abstract away the concurrent flow (which is good, concurrency should be obvious), but you also wouldn't write elixir without it, so code inevitably becomes filled with technical concerns.

I'm biased, I write elixir for a living after a decade in Ruby, and I'm happy with that tradeoff. But there are times where you need to do an imperative thing and make it clear as day, and Ruby often does a better job here.

Rails is also somewhat more ergonomic for fast prototyping than phoenix. ActiveRecord is a blessing and curse, it's insanely productive for making things do things in minutes, but lacks composition later on.


The gem ecosystem and hiring pool is much better. Otherwise, as raw tech it's worse


> He's also implying that Rails does not use web sockets to communicate with frontend which is not only wrong it should be evidently wrong to anyone who built a Rails app in the last 3 years.

I’m actually a rails dev but I’d reach for phoenix if my app required a large number of persistent sockets (e.g. high-volume MCP servers). I say this mostly because the hosting story is better for phoenix (gigalixir) than rails (heroku, or similar services that run behind a request router). Of course if you want your own infra this argument doesn’t apply. But a $100 gigalixir box can easily serve 100k persistent connections — even a few thousand persistent connections is a non-starter on Heroku.


In the local Rails community where I live we haven't used Heroku for a while now. Most of us have moved on to using Kamal with a VPS of our choice. The surprising benefit is that you can even host multiple rails app on a single VPS so it is ideal for playing around with multiple hosted apps.

As for raw performance I'm sure you'd get better deal with Elixir out of the box than Rails out of the box but if you wanted to keep all the benefits of Rails and scale websocket usage look into AnyCable.


I didn’t say that rails doesn’t use websockets. What i meant is that liveview comes with websockets fully integrated into the framework. This doesn’t mean rails can’t use websockets, but liveview has implemented it more seamlessly at the core. I’ve also mentioned that rails and laravel are both great frameworks, but after using phoenix, i felt that liveview offered advantages in terms of performance and implementation. I’ve worked with all three frameworks and chose the one that worked best for my project. Have you had a chance to try phoenix? If not, do try it out then you’ll get what I meant.


> He's also implying that Rails does not use web sockets to communicate with frontend which is not only wrong it should be evidently wrong to anyone who built a Rails app in the last 3 years

Where is the article saying that? I only see " Those things are possible in Rails and Laravel, but they take a bit more effort to set up." which is a very different (and more nuanced/personal take) then what you're stating.


That’s a fair take, rails with hotwire is genuinely powerful, especially with hotwire native. but the post wasn’t about claiming phoenix is better, it’s about how liveview’s model (server driven state, process isolation, lightweight channels) fit a specific use case. both ecosystems solve similar problems differently, rails leans on conventions and progressive enhancement, while phoenix leans on concurrency and fault tolerance from the beam. at the end of the day, it’s less about which is superior and more about which workflow clicks better for what you’re building.


Bit of an tangent, but I remember hearing about Hotwire Native a while back, and then relative silence. Can I ask how your experience has been with it, and the level of support/documentation/features for the kind of mobile apps you've been building with it?


Yup. the rails 7 demo showed websockets back in Dec 2021:

https://www.youtube.com/watch?v=mpWFrUwAN88&t=25m46s


I don't see anything in this post claiming that Rails doesn't support websockets, where are you getting that?


Author here: Not sure why everyone’s taking this as anti-rails or anti-laravel. It’s not. I just shared what worked best for my use case. Real-time updates are built into phoenix through channels and liveview, while in rails it’s handled through Action Cable and Turbo Streams. Both work great, but phoenix’s setup felt more integrated for what I was building.


The problem is the websocket implementation (last time I tested it) sucked. I'm assuming even now if you're doing non-trivial websockets you need to use the node or golang implementation.


You can swap out the ActionCable backend with different providers.

Redis, postgres. I think there's a couple of commercial offerings.

solid_cable is a database polling mechanism which can also be swapped in.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: