HNHacker News
TopNewBestAskShowJobs

androidgirl

383 karma · joined June 23, 2018

submissionscomments
androidgirl··on Why I left React for Vue
I don't buy into Vue being easier to learn than React.

This year I picked up and started learning React after some experience with vanilla JS and jquery. I first tried Vue and for whatever reason, non-trivial examples were so hard to wrap my head around.

The documentation was hard to follow sometimes, and I had some issues with documentation on other projects like Nuxt.js, whereas the Create React App and Gatsby docs are so good.

I tried React just when I was about to swear off front end web development, and everything clicked. I've never felt like I had superpowers until I started using React to replace jquery soup.

Nowadays, I use vue occasionally if a project is using it, and it's easier to understand for me now. I still greatly prefer React, though, and JSX is a joy to use.

androidgirl··on CSS grid garden
I build all my mobile layouts with flexbox, so they are usually one long column, and content collapses into the grid from CSS media queries.

If the browser doesn't support css grid, the mobile, single column version with flexbox is fully featured, and is loaded first because the css grid is kept in @media queries.

Like the sibling comment mentioned, you can use @supports, however if you use `display: flex` for mobile and `display: grid` for desktop, the grid will never load in old browsers anyways.

This works out pretty well for me personally in 99% of use cases. If you want to use CSS grid as well for mobile, you'll need a more powerful @supports solution, however.

androidgirl··on CSS grid garden
Use CSS grid with Flexbox for fallback.

I create my mobile version of pages with Flexbox, so if the user's browser doesn't support it, they see the full featured mobile view. Progressive enhancement.

androidgirl··on Social networks are no longer social
To be fair, even on small sites I have written, Privacy Policies can get truly huge due to the boilerplate.

Most of my sites have Google Analytics that gets disabled when DNT is turned on. That plus server logs for fail2ban and DoS protection easily bumps the policy to 500 words.

Do you use cookies for storing basic session data? That's more. Run ads or use affiliate links? That's even more.

There's limit to a sane Privacy Policy, but all of this is rudimentary, common stuff.

androidgirl··on Electron 4.0.0
The aversion is mostly that a lot of devs have learned to use html, css, and js for styling ui's.

I love Kivy as well as QT. You can make some decent looking apps with the former and some incredible ones with the later. I have never personally worked with Electron.

But yeah, most devs use JS, HTML, and CSS for ui creation because of the Web.

I think something like QML could replace the html and css parts, though.

androidgirl··on FCC fines Swarm $900K for unauthorized satellite launch
900k is almost chump change in the world of aerospace, sats, and space tech.

This isn't a deterrant, it can be framed as the cost of doing business.

The fine is far too small.

androidgirl··on We should replace Facebook with personal websites
Hey, I know where that's coming from!

Awhile ago I was digging through Pinterest on topics related to blogging, finance, online business, etc.

A lot of these pins target millennials and moms (wow, especially moms).

The point of most of these sites is affiliate marketing; they've got deals with hostgator, bluehost, godaddy, whatever, and get kickbacks when users sign up.

So all these pinboardss about blogs about blogging advocate for the VPS route because it's how they make cash.

androidgirl··on Dear Developer, the Web Isn't About You
I really like this article but I struggle with implementing it now.

I've learned a lot of React recently for creating sites. I test all pages that can be static with javscript disabled, (I use gatsby or next for html ssr), but some parts can't be static, or worse there's still the "webpack inlines from hell" problem.

I would LOVE to replace my javascript powered pages with a templating language, and offer feature parity. But using a template language like Jinja2 for building component-based sites just doesn't work as well, unless I'm missing some magical secret sauce.

This is mostly for B2B web applications. I work on a lot of analytics dashboards that are pretty data dense. Even with react though, my sites never go over 400kb on load.

Okay, essentially my question is: what templating language/server framework can replace react, jsx, and graphql for webapps? I really want something like that.

androidgirl··on Reasons Python Sucks
For one and two: in what world is any of the software in repos like apt or yum up to date?

Every time I set up an ubuntu machine for using at work, I end up compiling a few packages from source, a myriad of packages that are installed from app images or curl | bash installed binaries (like docker, ugh), and more PPA's than I care to keep track of and clean out. And now there's flatpack, snapcraft... packaging on linux is a mess currently.

Honestly, on workstations the rolling release model is the only one that makes sense.

But for python, with tools like pyenv, virtualenv, or even just using LXC/docker/vagrant/whatever, versions in the 3.5-3.7 range are a non-issue.

I agree the quotes thing sucks, though. I wish there was more enforced discipline on that.

androidgirl··on Forget Fortnite–my son is still obsessed with Minecraft
I can't tell if this article is satire or not.

I played a lot of Mincraft as a teen and I have nothing but good things to say about the game.

It's very relaxing, you can be creative and explore and build, plus there's a whole depth of gameplay in Redstone circuits. The Pi edition also had Python scripting which was way too much fun.

I've not played the main verion since the release of 1.9 beta, and haven't followed the game closely.

But surely there are worse things for a child to be involved in?

androidgirl··on How Sketch Took on Adobe
I checked Figma out before, afaik it doesn't let me locally save my files and work on them without Internet on Linux.

Is that still the case now?

androidgirl··on How Sketch Took on Adobe
I'm absolutely happy people are taking on Illustrator/XD. I was a freelance illustrator specializing in print while in college, and have grown dislike Illustrator.

The issues I'm having now with most design and vector art tools now are:

* No Offline Support * No Linux Support.

That leaves us with... well, just Inkscape. Honestly it has gotten decent with the most recent version. We finally have an objects menu, after 5 years of development. But features are still behind Sketch, AI, and Affinity.

I'm well aware Linux users who are into drawing or design are a small minority, so I can't really complain.

androidgirl··on Bootstrap 3.4.0 released
+1 for tachyons. Tachyons + React is very powerful.
androidgirl··on Make photomosaics, GIFs, and murals from pictures in Python with ML/OpenCV
The gif with facial recognition is actually really really cool. Awesome work
androidgirl··on Google transferred ownership of Duck.com to DuckDuckGo
Interesting! I had no idea.
androidgirl··on Google transferred ownership of Duck.com to DuckDuckGo
That's absolutely hilarious and I love it.

In casual conversation, "DeeDeeGee it" is so much more clunky.

androidgirl··on The cold start problem: how to build your machine learning portfolio
To be fair data collection is a really important skill as well, but hardly counts as ML/AI imo.

For me it feels more like "software plumber".

androidgirl··on A blogging style guide
Definitely agree.

Writing on the Internet, especially informative writing, needs to be crystal clear and clean.

androidgirl··on Neither PWA nor AMP are needed to make a website load fast
True! But Google incorporates more microdata from AMP pages in Search results (as in more fields), or at the least their Rich Search Results documentation makes it out to be that way.

I may be wrong, this just was my understanding from reading all the Google search guides last week.

androidgirl··on Pipenv: promises a lot, delivers very little
Your opinion here is totally valid. Npm has a lot more magic involved than doing stuff by hand with virtualenv.

And yes, aliases and bash scripts help a lot, but do increase initial overhead. I have the entire "delete create install" sequence in an alias as well as activate in another.

But envs are just files, you can even skip activate and just do `.env/bin/python` and it works. That's powerful in a linux shell because now I can just use that environment like a regular executable from anywhere, no global installs required.

I can appreciate preferring something less manual even if I don't! Ultimately, your machine, your code.

androidgirl··on Neither PWA nor AMP are needed to make a website load fast
I agree on AMP, you can just pack less JS and be done with it. But AMP is REALLY about rich search results online.

Google creates more interactive search results for AMP pages than non-AMP versions.

As for PWA's, I'm honestly a fan, to a certain limit. I really like Gatsby.js, especially because the rendered pages work with Javascript disabled.

Django/Rails/$FRAMEWORK with Turbolinks.js is also great, for the same reason I like pwa's. If you aren't a fan of the JS ecosystem (totally fair), Turbolinks is a great way to get some ""snappyness".

androidgirl··on Goodbye, EdgeHTML
I've been using the plain html gmail for the past year on Firefox. Works amazingly!

Haven't noticed speed issues in Drive either.

androidgirl··on Pipenv: promises a lot, delivers very little
See, I feel like python has a lot of those benefits and the package management doesn't need to be so complex.

Seriously, python package management can be fairly simple. On most of our machines at work, it's just "virtualenv .env && source .env/bin/activate". Then you install your packages and... everything is in one directory, like node_modules in javascript.

A clean reinstall is easy from there: remove the .env and just repeat.

I feel like pipenv violates KISS, and that a more traditional virtualenv/venv/pyenv setup is the way to go.

androidgirl··on Udacity lays off 125 people in global strategy shift
Agreed, $12 books would be a godsend.

Currently buy mine used on AZ most of the time, always pay around $30.

androidgirl··on What we learned from 3 years of bra engineering, and what's next
Yeah, I can't see myself ever paying THAT much for a bra, even if it's absolutely perfect.

Hopefully they can bring costs down eventually through some means. A bra that's 90% perfect at about a third of that cost would be something I would consider.

androidgirl··on Absolute Beginner's Guide to Emacs (2012)
That README feels like it's aimed explicitly at me. Maybe it's time to try it out
androidgirl··on Tumblr will ban all adult content on December 17th
Hey, firstly I am so very sorry for what you and your family is going through. Having a child encounter very scary parts of the world is always awful.

I'm now in my early 20's, but when I was a kid about your daughter's age I also stumbled into that awful, awful corner of the web and developed an eating disorder (ED).

As an adult now, my message is it can and will get better. ED is a tough problem, but with work and persistence both she and you can work through it.

I won't tell you how to raise your daughter, at all. Just offering a sympathetic viewpoint!

androidgirl··on Psychology’s Replication Crisis Is Real
I see. That does make sense, like making a MIT version of GPL reference code.

Having more researchers avaliable to audit code seems like it would help prevent flaws from slipping through, too, to prevent false conclusions.

Thank you for explaining a bit more.

androidgirl··on Psychology’s Replication Crisis Is Real
Why isn't more research and research materials open source in the AI world? I don't really understand.

If one doesn't have your training dataset or your code, how could they possibly replicate your results?

androidgirl··on Poverty in America: Greater Than Statistics Indicate
And my prepaid plan is all unlimited at $30 a month on my phone I bought all cash for $200. It's much cheaper!
← PreviousPage 2 of 5Next →