HNHacker News
TopNewBestAskShowJobs

andreynering

507 karma · joined January 15, 2016

https://andrey.nering.dev/
submissionscomments
andreynering··on Uutils: an attempt at writing cross-platform CLI utilities in Rust
I've seem a few attempts. This is just one example: https://github.com/u-root/u-root/tree/master/cmds/core

EDIT: You may also be interested in https://github.com/mvdan/sh

andreynering··on Slack Huddles, a new way to have live audio discussions
This is certainly inspired by Discord.

I wake up with this and found awesome. Really easy to see who's in the audio channel, join or leave, share screen, etc.

This is certainly more convenient / quick than having to open & paste Google Meet link. Good news for remote workers.

andreynering··on 43% of South African youths are not in employment, education or training
Sure it's not as cold and the US and Europe, but saying Brazilians "use swinsuit all year" is inaccurate.
andreynering··on 43% of South African youths are not in employment, education or training
> If you live in Brazil or Cuba cold weather does not exist and you can wear a t-shirt swinsuit all year long and survive.

As a Brazilian I have to say that you don't know what you're talking about.

It's specially very cold in the winter in the south, where I live, but even in the south-west can be very cold.

Only part of the country would be warm even in the winter as you said.

andreynering··on How Intuitive Are Macs Really?
> Sleeping the mac does not sleep the mac, it wakes up at all sorts of times

This can be improved a bit by forcing the Mac to "hibernate" instead of suspend when you put it to sleep:

https://apple.stackexchange.com/a/51729

By default, it would hibernate only after some time.

You can also disable the "Power Nap" checkbox on Settings > Battery.

EDIT: Typo

andreynering··on Ask HN: What are some tools / libraries you built yourself?
Although I don't do microservices, this project is really interesting.
andreynering··on Ask HN: What are some tools / libraries you built yourself?
I built an alternative to Make written in Go that is simpler to use and cross-platform: https://taskfile.dev/

Also, a library to write tests with databases for Go: https://github.com/go-testfixtures/testfixtures

andreynering··on Piscina – The Node.js Worker Pool
Got it.

In Portuguese they're only known for "Latin languages", which explains my question. ;-)

andreynering··on Piscina – The Node.js Worker Pool
I'm curious on why you call these languages "romance" languages.

"Piscina" is a Portuguese word for "pool", by the way.

andreynering··on Our app was banned because the button says “Report User” and not just “Report”
> In comparison on WhatsApp I can report a user or group and the "most recent messages" will be forwarded to moderation.

Really? So if a random person decide to report me, plain text uncrypted messages will be sent to WhatsApp?

Even if this does not happen regularly, this means that WhatsApp have means to read my messages, which is scary enough.

andreynering··on Adobe will end support for Brackets on September 1, 2021
There's also a blog post about it: https://blog.brackets.io/brackets-eol-notice/
andreynering··on YouTube blocked chess channel after mistaken detection of racial slurs
I recently took some actions to reduce the damage if Google ever ban my account.

I'm now using a custom email domain (although it's just redirecting to my Gmail for now), and doing regular backups of my emails (through Thurderbird) and Google Drive.

With these news being more and more common, you never know when it'll happen to you.

andreynering··on Just because I have a vertical screen doesn’t mean I’m on a phone
On tablets you face this problem all the time, too. Both on websites and apps.
andreynering··on Tell HN: Instagram have been blocking unlogged users to see PUBLIC profile pages
Here (in Brazil) this started happening for me only since a few weeks ago.
andreynering··on Ask HN: Any small-to-medium-sized Go team need a contributor/project lead?
Better mention in the issue that you're working on it, and ask if you have any doubt
andreynering··on Ask HN: Any small-to-medium-sized Go team need a contributor/project lead?
As the Task creator and main maintainer, I haven't being able to find the time to work on all the things I'd like to

Take a look the the issues: https://github.com/go-task/task/issues

There are many ideias, and many of them requires discussion with the community since there are many ways to implement them

If you like the project and are experienced with Go, I'd love to have more help

andreynering··on Ask HN: Small Open source projects that need contributions
I would love to have more help with Task:

https://github.com/go-task/task

Usually, though, people contribute to the projects they use. Not only because it's a boost in motivation, but also because you usually need to know very well the project to have enough context to be able to contribute.

andreynering··on GitHub: Reorder issues in a milestone
You may consider to create an issue in one of these repos (or both):

- https://github.com/dear-github/dear-github/issues

- https://github.com/isaacs/github/issues

andreynering··on Go best practices, six years in
Yes, I am talking about asset management. Rails has Asset Pipeline. In Go, if you want a build step for JS and CSS you have to play with node.
andreynering··on Go best practices, six years in
> Go has frameworks

I don't know nothing monolithic like Rails for Go, do you? What I was trying to say is that you have to use libs, instead of a big monolithic framework like Rails, that do not exists for Go (AFAIK).

I don't like Node and NPM, but it would be the alternative to Asset Pipeline (e.g. for concatenating and minifying JS and CSS, etc).

andreynering··on Go best practices, six years in
RoR is an awesome framework that has (almost) everything you need to build monolithic web apps.

Go is a different story. You need to join the pieces together to make something functional. You will probably need:

- A router like [Gin](https://github.com/gin-gonic/gin)

- A [XSRF token generator and validator](https://github.com/golang/net/blob/master/xsrftoken/xsrf.go)

- An ORM like [Gorm](https://github.com/jinzhu/gorm) or [XORM](https://github.com/go-xorm/xorm)

- A template lib like the one that comes with the stdlib

- Node for front-end (ugh, this is the harder part)

- The testing library in stdlib plus maybe [testify](https://github.com/stretchr/testify)

- etc...

Many nice things are missing. Some were [shamelessy copied by other people](https://github.com/go-testfixtures/testfixtures). Some you may need to implement yourself.

The big advantages is that Go has much better performance, and run on Windows, etc.

andreynering··on Show HN: XMoto.js
This is so awesome! I couldn't play yet because I am on mobile, but I will definitely do it later. I always liked this game.

As someone who never coded a game (a part from one that don't use any graphics: https://github.com/andreynering/sudoku ), I always ask myself how hard is to code a 2d/3d graphic game. I say this because a game seems much more impressive than other kind of (boring) coding projects.

andreynering··on Hjson, the Human JSON
It's just a hack, but you can write a comment in a key that is supposed to be ignored:

  {
      "__comment": "The following config does...",
      "key": "value"
  }
But I agree that it is not much intuitive.
andreynering··on Go 1.7 toolchain improvements
Works fine for me, but I had to install the x64 version of MinGW
andreynering··on Go 1.7 toolchain improvements
> it is hard to imagine ... smaller binaries

> I like Go a lot, and I don't fret about binary size. But let's not be too charitable :). The CLI apps I write usually start trending towards 10MB with a few package imports. Their equivalents in C are usually less than 100k. One can imagine getting to better than a 100x difference.

Who want smaller binaries can use this compressor tool: http://upx.sourceforge.net/ It may be a bit slow but you just need to use it in the distributed version.

andreynering··on Building Web Apps in Go
Actually, you choose.

I like to use https://caddyserver.com/ as reverse proxy for the easy setup and buildin Let's Encrypt support. You can also use Apache or Ngixn if you want.

But you can also bind directly to port 80 if it's a simple app.

andreynering··on React Makes You Sad?
Yes, but now there's a version of Babel that runs in the browser and transpiles from JSX.
← PreviousPage 2 of 2