HN2new | past | comments | ask | show | jobs | submit | J-H's commentslogin

Cool tool! Just a suggestion - building something like this for Zendesk (or any help center) would be an absolute game-changer!


I love Vue as well. The problem is that I haven’t found a good way to fit Vue in with an existing Rails app without it resorting to JavaScript hell. Stimulus looks interesting because it already fits in with Turbolinks.


When you say JS hell I'm assuming you mean because Rails wants to be your JS bundler? Why not just have rails output a div with an ID? And then use a separate bundler such as webpack to generate a JS bundle?

At the end of the day Vue-cli or create-react-app ultimately just generates static assets. Adding your statically built SPA into a Rails app should be no harder than adding jQuery. Rails should not need to know about webpack & vice versa. The key is to build components not a full fledged SPA. Pick either Rails or Vue router. If the former, Vue is just a component/view library, don't treat it like a framework.


Of course, Rails 5.1+ supports webpacker better too, which I believe is recommended/intended for use with stimulus+Rails too (to get the es6 in the example, for instance).


looks fantastic!

i had actually built something similar a few years ago, but ended up abandoning it as I never quite had the time nor passion to see it through.


Hey HN, I built HiCoach to make finding fitness plans easier. You can sort by days per week, type of fitness, and your level of experience. I'm working on adding more plans to the service, so if you have any recommendations, I'd love to hear them.

The site is extremely simple: it uses a php script on the backend and Vue on the frontend. I actually typically develop in Rails, but thought it was going to be overkill for this sort of project. I'm certainly not the world's greatest PHP developer, so it actually was quite fun learning the quirks of PHP (once again).


Why is that? I realize I should probably provide my sources at the bottom, but everything was derived from personal experience and research.

If you have something specific to point out, I'd be happy to provide you a source for it.


I used to be quite into doing exactly what you've written here. Even wanted to compete in an NPC competition. Your guide is the exact same stuff that's written about ad nauseam everywhere. That's fine, because it works for achieving this type of "fitness". Just seems to me that this is a very narrow definition of that. I don't look great shirtless, but I'm becoming a decent trail runner and can do 25-ish pull-ups. My 70 year old dad can't run, but he walks 1500 miles per year. Are we not fit/healthy? This is a standard bodybuilding routine, and seems like a very 20-something, American college male, Instagram idea of fitness. No problem, it's a good, concise guide. There's just a lot more to fitness than bodybuilding.


Can you explain why you gave up? Low-carb diets cut out sugar, flour, etc which greatly reduce caloric intake. It's not a far stretch to call them a "trick" to reduce your calories, is it?

Take a look at https://examine.com/nutrition/will-carbs-make-me-fat/ if you need more proof that carbohydrates are not what make people fat.

What other claims did I get wrong?

I don't disagree with you that I should put in some sources. Thanks for the input!


I gave up on the article because of its inaccuracies and lack of current sources. I've been a successful lowcarb dieter for over 17 years.


I guess the key that I'm trying to get at here is find a diet approach that works for you.

Low-carb diets "trick" you (again, I'm going to use that phrase) into eating less calories. When you eat less calories, you will lose weight. So, sure, it's great that it worked for you, but there's easier ways for most people to lose weight.

What other inaccuracies were you talking about?


I should probably be more clear. In overall health, fats, carbs, and protein do matter. However, I find it's hard to convince beginners to make drastic changes to their diet.

So thats why I recommend tracking only calories at first. Get used to tracking food and hit your weight goal. Then, when already used to being mindful of your diet, you can adapt it to be more overall healthy.


Wow, thanks for the awesome feedback!

You have a good point about snacking. I put it underneath "Tactics for eating" because I was trying to say it's a tactic that has worked for me. Obviously, yes, everyone is different, and I'll try and rephrase that to make my point clear.

Hydration. Good point as well. I should touch on this.

On strength vs muscle growth. My goal with Hart's Guide was to show a workout plan that didn't require a bunch of time in the gym, and lifting for strength is better for that goal, as it's more time-efficient. I was trying to simplify, but yeah, I can agree that I should add a little more information on alternatives.

FAQ Information. Great idea, I'll definitely add a section for that.


Hey HN!

I'd love to hear what you think, especially about my writing style, as I realize I'm not the world's best writer.

I tried to keep the design simple, and somewhat crude. I wanted something that looked different than the majority of fitness websites/blogs today. But let me know if I achieved that or if it could use some work.


Hey HN, I'm trying to make making databases and building web applications as simple as possible. Let me know what you think!


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

Search: