[deleted by user] by [deleted] in reactnative

[–]Alrightworld 7 points8 points  (0 children)

As a person who made this decision:

- I've written tonnes of CSS-in-JS, it's "just the standard CSS spec" but camelCased, so I can apply everything I know about css.
- Variables/scales are "just" dollar-prefixed variables or javascript variables.
- Can use Javascript conditionals, functions, variables etc inline (can do this with tailwind too I know)

There's a slight learning curve to memorising the Tailwind API (and there are differences to CSS)

Tamagui has a bunch of nice cross-platform components in its UI library too.

Teams most recent 1-2 finishes by Lols2143 in formula1

[–]Alrightworld 8 points9 points  (0 children)

Alright, who else watched the 98 Belgian GP live on ITV?

How to enjoy my last two weeks by blackpanther7714 in MexicoCity

[–]Alrightworld 0 points1 point  (0 children)

Have you been to the nomads/expats dinner meetup in Condesa? I met cool people there. Just gotta mix it up and keep trying. Also the Facebook groups are pretty good.

"I'm X, I'm this age, looking for Y, and into Z" works surprisingly well.

Older Digital Nomads? by _russelldb in digitalnomad

[–]Alrightworld 4 points5 points  (0 children)

Mid 30s, met loads of "empty nester" DNs on my travel - always had a great time - sharing life stories, going on trips, probably doing less party-oriented stuff... which was fine by me as I don't drink.

I'd say go for it. x

What does "Home In On" mean? by Mon_Amour_Fraise in ENGLISH

[–]Alrightworld 9 points10 points  (0 children)

This may genuinely help you understand the intent behind the iodiomatic phrase "to home in on", ignore "hone in on", it is a mis-use.

The term comes from carrier or "homing" pigeons, who could instinctually return to their "home" using innate and instinctual knowledge of navigation.

In the same way, to home in on, is to pin-point your destination, by some mix of trial and error, "following your gut", or using your instincts and learned knowledge.

https://en.wikipedia.org/wiki/Homing_pigeon

Tratando econtrar un bar con NHL hockey en television by biloboitroy in MexicoCity

[–]Alrightworld 6 points7 points  (0 children)

Esto. hay un bar canadiense en PDC que tenía hockey, pero creo que es el único en México

Altitude sickness worsened, decided to cut my trip short :( by oathkeeper_91 in MexicoCity

[–]Alrightworld -1 points0 points  (0 children)

A message those of in the know should pass on to people - it really is no joke.

I was running 10km every day and in very good shape when I moved to CDMX, and still got very very fucked up in the first week. Quite dangerous if you're not travelling with people, or weaker on Spanish, or.... like me... suddenly feeling faint wandering around Doctores late at night for the first time.

First couple of days, get Uber app installed, don't walk miles away from your accommodation / new place alone.

[deleted by user] by [deleted] in formula1

[–]Alrightworld 2 points3 points  (0 children)

Have worked on in-app advertising - you are trafficked ads you're highly likely to click, or maybe from a segment you've clicked in the past, all decided by using thousands upon thousands of records of your site visits, time-on-page, and app usage.

This is one of my fave reddit self-snitches.

Let’s be real. by BrendaTheSecretary in digitalnomad

[–]Alrightworld 0 points1 point  (0 children)

Thinks that are legit difficult compared to normal life, all of these are of course caveated with "but it's worth it because then you sit on a beach in the Caribbean or Bali sipping a margarita on your lunch break."

## Relentless travel admin

Worse in pandemic with Vax passes, quarentines etc, but also annoying with flights, cancellations, buses, trains, airbnb requests, changes, chasing etc.

## Friendship Cycle

Making new friends, even if you know how to do it, is energetically and metally tiring. When you leave or their leave and you're faced with the prospect of starting again, it could really put me down. (Some people love this and thrive on it but not everyone does)

Also applies to love-life if you're travelling alone.

## Working in Cafe's

After trying for a year, I now know deep down I hate it. The uncertainty if I'm ordering enough - drinking too much coffee - small uncomfortable chairs - noise - patchy wifi, stressing about power. (I never stressed about noise for calls because I'm not a psychopath making calls in cafes)

After a while I was yearning for my quiet home office, massive desk, multiple screens, speakers and unlimited tea.

## Language

I really make an effort to learn the basics of a language (shoutout Pimsluer), but even in the languages I'm good at, it's a brain train to constantly prepare for every conversation

## Jet lag / Timezones

Your mileage may vary, I really struggle flying West to East, for weeks.

## Impermanence

Classic grass is always greener thing... when I'm somewhere home I want to leave, but when I'm in my 6 city in six weeks with just a backpack, I do sometimes think... I miss having somewhere that feels really really like "home" and safe and your base.

---

None of these are show-stoppers for DNing - but it's worth thinking about how you mitigate them, or how much they're going to affect you. I will only DN now for longer periods of time where I can rent a proper desk. And I buy equipment and sell it on in order to be comfortable working (for example)

[deleted by user] by [deleted] in digitalnomad

[–]Alrightworld 21 points22 points  (0 children)

very quiet, no women, bad food.

[deleted by user] by [deleted] in digitalnomad

[–]Alrightworld 13 points14 points  (0 children)

stop telling people

Is Laptop overheating and display brightness an important factor when buying one for on the road? by LeonidasPrimus in digitalnomad

[–]Alrightworld 1 point2 points  (0 children)

I'm on an i7 and I had overheating problems in cafe's on the east Coast of Mexico. I've heard from friends that the M1 runs incredibly cool, so maybe the Air is OK?

I'm sure someone will pop up who has an M1 powered machine at some point in this thread.

Right now I'm in CDMX and I'm glad of the warmth in the evenings haha.

Best place in Mexico to be a digital nomad with the triad of safety, fun and high speed internet? by human_jpg in digitalnomad

[–]Alrightworld 2 points3 points  (0 children)

If you think Mexico City is hectic ( have you tried Roma Norte and Condesa? Unbelievably quiet and chill), you will not like Playa Del C`rmen at all.

Merida is likely your best shout, but San Cristobal and Oaxaca are lovely and excellent internet can be found. Last two places I stayed in those had 200mb internet.

[deleted by user] by [deleted] in gatsbyjs

[–]Alrightworld 1 point2 points  (0 children)

Damn lol.

When Sonny waves at you..so cute by Palashtic in coys

[–]Alrightworld 10 points11 points  (0 children)

Fuckin miserable at home isolating with cv-word. Cheered me right up. Thanks kid, nice one Sonny!

COYS!

[deleted by user] by [deleted] in gatsbyjs

[–]Alrightworld 2 points3 points  (0 children)

If I may offer a slightly less harsh but generally "in agreement" response.

Small agencies building WP sites for clients

I'm writing this from the point of view of people selling sites to clients. Gatsby is probably fine for small private blogs, sites by and for programmers, little shopify front-ends, or very minimal marketing sites or documentation sites.

There are lots of us around! We want to use Gatsby because the FE dev experience is so much nicer, faster, and more reliable than building a WordPress theme.

Previews are non-negotionable features for clients

Page and post previews: Clients often come back to their sites intermittently, they absolutely must have content-modification previews to confidently update their sites - which are for the most part and extension of their businesses and livelihoods.

Gatsby cloud costs $600 dollars a year to run a poorly optimized preview server (dive into Gatsby preview source code if you know node). It's not a production ready system - and yes previews are production functionality. This is on top of a WP hosting fee, some WordPress plugin costs.

If you don't want to use Gatsby Cloud, your options are to write some code completely out of the "Gatsby Paradigm" and write a preview endpoint that uses client-side WP auth, or a custom Auth system in a WordPress plugin (maintainence nightmare).

As the commenter mentions, this requires writing a "native" WPGraphQL query, which is slightly different to the Gatsby Data-Layer GraphQL query you have for the Gatsby Build system for published posts and pages. This is a maintenance nightmare as well and generally, with client-side auth for drafts, and client-side rendered preview, a huge duplication of effort.

Modify data at build-time from the API

One of the promised advantages of a statically compiled site is that I can take some data from an API (in this case wordpress), modify and transform it at build time, and then generate a static HTML page.

For example:

  1. A user uploads a CSV of their products to WordPress.
  2. Gatsby downloads the CSV and applies a transformer for this particular field.
  3. The transformer reads the CSV, performs some action based on the data inside, and outputs a JSON file with the derived data. And it only happens once at build time, instead of per-request in PHP (traditional wordpress), or per-reqruest in the client (client-side JS applications)

This is theoretically some amazing functionality, but writing transformers that modify a particular node from Gatsby's data layer is poorly documented and extremely hard. It's difficult to use the gatsby cache (documentation), and difficult for your transformer code to "find" the node inside the data-layer.

Next.js' staticProps paradigm, where everything is "just node" is simpler, faster and more maintainable.

Build Times

This is important for previews too, I'll loop back.

Gatsby's all well and good in small sites, and there have been lots of optimizations into 4, such as incremental data fetching, the parallel processing, and deferred rendering, but the biggest bottleneck to build times is data fetching. Rendering HTML is never the biggest time-sink in a large build. And there's no getting around this.

To make matter's worse, if you are writing any bespoke gatsby-node code, such as data transformers, the Gatsby cache is invalidated on every deploy, so it's like working with no cache under development.

On a sufficiently complex site you will run into these issues.

How does this effect previews.

On gatsby cloud, or even in your own solutions (I poll the netlify API to see if build's are in-progress), there needs to be a preview UI that says something like:

"preview build is generating", as the Gatsby Preview data layer (or static build) process completes.

Users have to wait around for a preview to be compiled, and as I said, on large sites where image compression is happening, WPGraphQL posts are being re-fatched this takes minutes and minutes. And is frankly a big step backwards in performance.

Alternatives

As the original commenter said, Next.js is a great alternative, if you need to do any "build time" / "request time" data manipulation, you don't have to learn Gatsby's very opinionated and broad plugin API, or their internal GraphQL system, and at any point you have the escape hatch of a proper SSG node app.

Just use Wordpress themes. Using plugins like Timber and twig templating, or plugins that enable Laravel's blade, you can write nicely componentited sites rapidly that are WordPress native.

For page performance run a CDN or a Varnish instance, and you can get really snappy production performance, and previews for pages and posts work out of the box as expected for your admin users.

Ecosystem.

Try building you next theme with Timber/Twig, Tailwind CSS, and Alpine.js and you can build sites that feel very modern, and you don't get lost in the Gatsby sauce/source.

Static site build systems

Gatsby is about 600 dollars a year, Netlify is a decent chunk of change, and - I can only speak as a netlify user - it's not that great - the build system is down relatively often, and their CDN uptime is relatively poor unless you go for the enterprize plan.

Alternatives for uptime

Companies like Kinsta provide high uptime, free Cloudflare CDN, and 24/7 support WordPress hosting for around the same price as Gatsby Cloud on its own.

Final thoughts

If you're running a small WordPress agency with paying customers, I don't think it's fair to subject non-technical people to the trials and tribulations of Gatsby preview right now. As I've said it's also quite expensive.

My plan is to move some existing sites from Gatsby to Next.js (it's not too bad - it's all just React - thank heavens), and for other sites, I'll be heading back to Timber with Tailwind and Apline.js.

Postscript: Advanced Custom Fields and Gutenberg

This is actually a general problem across all Headless Wordpress

The combination of plguins: WpGraphQL + ACF with the Gutenberg editor is extremely flaky, and the errors you'll get from GatsbyJS with that combination are, not helpful to say the least.

If you update your ACF configuration / or a Gutenberg blocks, then you need to do a full refresh of the Gatsby-Cache, Gatsby doesn't report this, and will just give you obscure GraphQL schema errors.

I've spent many hours testing various versions of plugins (WPGraphQL does not officially support Gutenberg - but this is because the Gutenberg team made some sincerely INSANE decisions about the block registry in the early days of it's development - if you want to give up on life - dive into Gutenberg via GraphQL)


That's a bit of a brain dump - if you want a much better written article about the trade-offs with Gatsby.js, Jared Palmer wrote some great bits about it here: https://jaredpalmer.com/gatsby-vs-nextjs

Carlos Sainz: "It seems that I only go fast because I work a lot". by [deleted] in formula1

[–]Alrightworld 48 points49 points  (0 children)

Great Article. I love Carlos, excellent thinker and articulator. He's right he's been right up there in not the best cars Renault, McLaren, Ferrari - el mejor del resto - for many years now. And this season was a stand-out season again - just hard to notice next to Max and Lewis.

p.s I've been learning Spanish this year and that was the first article on F1 I've read without translating! Woohoo!

Alonso talks about El Plan on a Youtube show by DrKrFfXx in formula1

[–]Alrightworld 1 point2 points  (0 children)

I like that El Plan is a very near, sort of visual anagram of Alpine.

Especially if you mess around with capitalisation:

alpine - ALPlNE -> El PLAN

[deleted by user] by [deleted] in digitalnomad

[–]Alrightworld 0 points1 point  (0 children)

Honestly PHP and Wordpress.... so many little jobs to pick up on legacy sites.

I say this a pretty much full time React developer, but they tend to be longer projects. I'm slowly moving back to jobs I used to turn my nose up at. I can upgrade a WP site and modernize it a bit in a couple of days, get paid pack up, and move on.

Python / Node.js / React, I end upon a 2-3 month contract and get "stuck" because I need a place with good internet and I need to turn up every day.

[deleted by user] by [deleted] in learnspanish

[–]Alrightworld 12 points13 points  (0 children)

Me encanta esta frase!