HNHacker News
TopNewBestAskShowJobs

silviogutierrez

704 karma · joined April 3, 2012

Personal blog: https://www.silviogutierrez.com

Business: https://www.joyapp.com

submissionscomments
silviogutierrez··on Next.js 2.0
My biggest issue is that SPAs have a lot of overhead for your typical CRUD.

The canonical example: a CRUD page with a dropdown of choices based on entitlement.

Server rendered: in your template somewhere, {for choice in limited_choices} and so on.

SPA: you need to coordinate a REST endpoint that has options for entitlement of just this dropdown, etc. You now need a route for REST, a route for the SPA page, and view code for both.

Don't get me wrong, with unlimited time, build everything as REST services with a client that consumes it. But sometimes server-side rendering is just simpler.

silviogutierrez··on A Visual Guide to What's New in Swagger 3.0
I can understand this approach to GET

But how would you, say, bulk delete 5 different resources? I typically send those payloads in the request body of a DELETE request.

silviogutierrez··on Modern Software Over-Engineering Mistakes
Conversely, at one point I wanted to start using Postgres' JSONB features, but was running my production app on a MySQL backend.

Switching was as simple as:

1. Export all data to fixtures. 2. Change settings.py to use the Postgres drive. 3. Load all data into fixtures.

Granted, I was sticking to core Django ORM calls, so I wasn't hard coding any SQL anywhere. And the null ordering does change a little, but the tests caught that.

So I was definitely glad that worked out. And have been super happy with postgres.

silviogutierrez··on How do food manufacturers calculate the calorie count of packaged foods? (2003)
The original syrup was https://en.wikipedia.org/wiki/Isomaltooligosaccharide . I buy retail for my own recipes, under the brand name VitaFiber.
silviogutierrez··on How do food manufacturers calculate the calorie count of packaged foods? (2003)
There are foods on which the standard processes don't accurately measure energy content. Or at least, certain manufacturers tell us that. Not sure if to believe them or not.

Example: Quest bars. Their syrup would typically show 4 kcal per gram, but is actually closer to 2. Supposedly. That's how a bar can have so few calories and such good macros.

Ultimately, if you're consistent with tracking your calories and its effect on your weight, it doesn't matter if the values are off by 20, 30, or 50%. Just be consistently off by... 50%.

silviogutierrez··on After a year of using Node.js in production
Same experience as the author. Tons of reinventing the wheel, and hundreds of dependencies.

The majority of established companies that say they use Node in production are doing so as a fancy proxy. All the "serious" stuff is done on backend services written in other languages.

Moreover, asynchrony is a concept far more advanced than most people think.

We will likely continue to leverage Node as a fancy proxy. Adding Typescript will only help. But it's likely that as Node grows into a mature platform, other platforms will continue to fill in the gaps that Node filled.

See for example Node constantly adding [foo]Sync versions of methods, while Python adds first class sync support.

silviogutierrez··on Real-Time Django: Get Started with Django Channels
Couldn't agree more.

Django's documentation has ruined me. I took the high quality for granted. Now when I use any of these tiny NodeJS/frontend modules, I'm surprised at how barebones the documentation can be.

Such an excellent project, community and set of docs. By far my favorite framework.

silviogutierrez··on Free React.js Fundamentals Course
Whoa thanks! I'll take a look.
silviogutierrez··on Free React.js Fundamentals Course
Any good tutorials for CRUD-heavy redux apps? Do you dynamically create your action creators? Or did you write createWidget(), updateWidget(), retrieveWidget() and destroyWidget() manually per resource (and their 3 corresponding constants for REQUEST, SUCCESS and ERROR)?

And how do you ensure your detail components (WidgetDetail, or WidgetForm) have the widget loaded before displaying? asyncConnect?

Thanks in advance for any pointers!

silviogutierrez··on Ask HN: Is Python dying?
This was my original approach. After all, no need to do an SPA for regular pages. Only the app-type parts with a DRF backend and an Angular/React frontend.

But... as I started publishing these apps on mobile app stores (cordova), I found myself also having to write a REST endpoint and client side renderer for the app versions.

Even though I'd much rather do a contact form, for example, in a server side view. But if I also need the REST API and client-rendered version for the app version, I might as well only write it once.

silviogutierrez··on Firefox Can Now Get Push Notifications from Your Favorite Sites
Like the sibling comment, I'm also interested in learning about your switch.
silviogutierrez··on The State of Meteor Part 2: What Happens Next
I was about to abandon Angular 1 for future projects and go all in on React. And it looked fairly promising, except everything is its own little module. Good for UNIX, but not so good for modules that change so often.

Then I started catching up on Angular 2 and TypeScript. It looks like the right mix between new and opinionated. I just don't have time to research a module for data, one for building, one for testing, and one for validation. That's where an opinionated framework comes in handy.

I do hope Angular 2 takes off.

Any other Angular people out there weighing in between React and Angular 2? If I were a betting man, I say it's going to come down to those two for the next few years.

silviogutierrez··on Angular 2 versus React
Huh? Immutable.js is written in Typescript, and it's advocated by Redux, so I figured it's a natural fit in the React ecosystem. At least ideologically.

Actually wiring it up sounds difficult.

silviogutierrez··on Angular 2 versus React
Does this work with the new react router that was just released?

And did you try using Immutable.js ? From my understanding, it doesn't work so well with simple router.

silviogutierrez··on Meal frequency and timing in health and disease (2014)
I agree that with one meal a day you likely don't need to count calories. Then again, I can easily consume 5000 calories of more if left unchecked. So I built my own IF-specific tracker (shameless plug).

https://news.ycombinator.com/item?id=10540352

It even supports leangains style dieting.

silviogutierrez··on Drupal 8.0.0 released
NB: the onion does not run on drupal anymore. Not for a long time. It runs on Django: https://www.quora.com/Django-web-framework/Why-did-theonion-...
silviogutierrez··on Show HN: Joy – a minimalist diet tracker for ketoers, fasters, bulkers, and more
Great suggestions all around. I'm actually a few days away from integrating with HealthKit, which takes care of some low hanging fruit.

For example, I know that when I walk 10,000 steps a day (or run, dance, or backflip), I burn my TDEE is around 2500 calories. However, on a very rainy day like today, if I walk 0 steps - a true sedentary day - it would definitely impact my TDEE. I'd argue even enough to not average out in the long term.

Sure, 7500 one day and 12000 the next averages out. But 0? Imagine a rainy week? So in that case, proper integration and adjustment of your targets for the day would be useful.

I imagine something similar could be done for fitbit, etc.

Another low hanging fruit is integrating with scales: manually entering my weight every day is easily automated.

I do plan to eventually add exercise tracking for progression, but as we agree, encouraging "the eat back what you burn off" is not a good direction for most.

silviogutierrez··on Show HN: Joy – a minimalist diet tracker for ketoers, fasters, bulkers, and more
Great question! While I've considered being able to track exercise (just for progression in that area), I purposely left out exercise calories affecting day calories. 99% of people that "make up/eat back" the calories they burn off by exercise end up overeating them. Ultimately defeating their goals to lose weight.

There are exceptions (I imagine yourself included). But that's a summary of why it's not accounted for. A much better system is for people to set an activity level and just adjust based on weight loss or weight gain. Basically, looking for a trend line in the reports section. Of course, that area itself could be improved (and will be improved).

silviogutierrez··on Show HN: Joy – a minimalist diet tracker for ketoers, fasters, bulkers, and more
Founder and developer here: as an intermittent faster, weight lifter, and amateur cook, I always found the leading diet trackers very limited. They made everything about my tracking difficult: from logging foods, to counting net carbs, to varying my caloric targets per day.

So I built Joy. The key feature is its flexibility. Joy allows you to track any diet under the sun. This includes diet groups such as:

1. Keto-ers: it automatically calculates net carbs for all foods, and lets you set targets for this metric.

2. Intermittent fasters: you can set different caloric and macro goals depending on the day of the week. You can switch individual days easily.

3. Cooks: creating recipes is very easy. Moreover, modifying or experimenting with recipes as one-offs - while still tracking them - is supported. I've often cooked the same pasta only changing one ingredient. Or the proportions.

4. Bulkers: athletes and people from all walks of life often want to gain weight - in a controlled manner. Most diet trackers assume you want to lose weight and build all UX towards that goal. Not Joy. Calculating what you need to gain weight is even built into the app.

I also identified and developed features that would prove useful:

1. No obnoxious ads slowing down the experience. Instead, charge money for a service that interested people use every day. After announcing these changes, feedback was largely positive.

2. Nutritional data accuracy: I source from a few (commercial) providers, but they're all professionally curated. The actual search algorithm needs work, but once you land on an item, its data is vastly more accurate than many of the user-contributed foods of the competition. Once I figure out a sustainable approach for user-contributed foods - perhaps with a voting system à la Stack Overflow - I will add this feature.

3. Speed: the entire UX is built around being able to quickly log your food. The harder and longer this takes, the more likely you are to deviate from your diet plans. Joy does require some familiarization, but once you get the hang of it, adding foods is incredibly quick. You can copy, cut, expand, contract, and distribute meals in seconds. Repetition soon becomes second nature.

4. Sharing: every individual piece of content should be shareable, not an all or nothing approach like the alternatives. For example, here is one of my favorite recipes, no login needed: https://www.joyapp.com/share/VMsGfhgdzvErmdqvxi8wSf/

It's a web app, as well as an Android and iOS cordova app, see here:

1. https://www.joyapp.com

2. https://play.google.com/store/apps/details?id=com.joyapp.and...

3. https://itunes.apple.com/us/app/joy-health-tracker/id9551727...

I'll be around for questions all day. Enjoy!

silviogutierrez··on Ask HN: How am I supposed to verify the origin of a sign-in page in a web view?
I'm also interested in this. Seems like a very easy way to phish for credentials.
silviogutierrez··on Ad Blocking Irony
Excellent tip. First part works great. But what do you mean by canc? Is that a button on the inspector? A key combination? Can't find it.

Maybe I'm missing something obvious. It's been a long day...

silviogutierrez··on Why DNS in OS X 10.10 is broken, and what you can do to fix it
Odd, that's what I use:

# cat /usr/local/etc/dnsmasq.conf address=/dev/127.0.0.1

# cat /etc/resolver/dev nameserver 127.0.0.1

Instead of your choice of foobar.

Doesn't work offline. Your conf looks like the standard dnsmasq conf anyway, so maybe there's one other flag or configuration that you figured out?

silviogutierrez··on Why I Quit OS X – Geoff Wozniak
I believe 10.6 was released in 2009, not in 2011[1]

[1]http://en.wikipedia.org/wiki/Mac_OS_X_Snow_Leopard

silviogutierrez··on Gmail blocked in China
Ah thanks. So it doesn't actually offer additional functionality, then?

The best tool I've ever used was https://github.com/apenwarr/sshuttle , because it was far lower level than a proxy. Unfortunately, it's super unstable on modern OSX versions.

silviogutierrez··on Gmail blocked in China
Out of curiosity: what does shadowsocks do that regular SSH tunneling doesn't do?

Why is an entire program needed just to run a simple ssh command? I couldn't find any info on the matter.

silviogutierrez··on Rules for Creating Gorgeous UI
Not the OP, but I'm also interested. The example you provided was right on.
silviogutierrez··on Introducing the Coinbase Tip Button
Does AdSense really not allow ads on subdomains?
silviogutierrez··on Choose hotels by the quality of their WiFi
Sadly, it seems like Clear no longer takes new customers.

I'm grandfathered in... at least for now.

silviogutierrez··on Chicago’s Last Tannery
That post is mistaken. Must be a timeline app that is showing when the timeline entry was created, rather than the content.

Alden has used Horween for years. In fact, they might be the biggest customers for shell.

silviogutierrez··on My Quest to Build the Ultimate Music Player
It seems like that's only possible now when importing/ripping CDs. For existing tracks, it doesn't work.

However, you can right click a group of tracks, then edit the info to add a unique Grouping label. This allows you to shuffle by grouping.

In fact, iTunes purchases - at least some of them - already include this. Screenshot: http://cl.ly/image/3w0R0y1I0E0V

← PreviousPage 7 of 8Next →