News for hackers. Stuff that matters.
Re:Fast website link checker in Go by jchw on Monday April 23, 2018 @08:37PM (#16908836)
I find the use of rake to be kind of unorthodox, and yet I don't know what else you'd use in the Go world, other than maybe just Makefiles. Any particular reason to choose Rake? It's probably not easy to get it running on Windows based on my experience playing with Rails on Windows.

Other than that it looks quite useful, and it's definitely something to keep in the tool belt. Bonus points for the subtle Undertale references too :)

Re:Fast website link checker in Go by beefsack on Monday April 23, 2018 @10:52PM (#16909519)
When I've been working in Go projects which required external helpers of some sort, I've always just written them as separate Go binaries because they're relatively simple and quick to get up and running.

I've started doing this for my Rust projects too because Rust is becoming a really nice language for writing these sorts of things, and having a separate binary as a Rust file in src/bin is convenient.

Often you want to use some logic from the main application in your tasks and using the same language streamlines that.

Re:Fast website link checker in Go by mjk7841 on Monday April 23, 2018 @09:01PM (#16908961)
I'm also curious about this. It seems that many go developers out there are using Makefiles. Makefiles are a good solution for golang projects in some cases, but I've seen a lot of people really abusing Makefiles and trying to use them for more generic task running.

In a past life, we used invoke [1] for task running. It was incredible but has the same problem as rake: it introduces another language (Python) and more dependencies.

There's a fairly new task runner being developed in go called mage [2], but it didn't seem worth the jump yet to me as it's still pretty immature (I haven't played with it in a few months, though). Did you consider trying that out?

[1] https://github.com/pyinvoke/invoke [2] https://github.com/magefile/mage

Re:Fast website link checker in Go by anonfunction on Monday April 23, 2018 @10:19PM (#16909359)
I like using make even for basic task running. It’s usually installed where I’m working and is familiar. I don’t want to install rake or mage.
Re:Fast website link checker in Go by arbie on Monday April 23, 2018 @11:34PM (#16909652)
Make gets a bad rap but I've seen it being used for susbtantially complex workflows. If you wrap your commands in something that can reattach to running processes and use dependencies correctly, it is hard to displace.
Re:Fast website link checker in Go by MartijnBraam on Tuesday April 24, 2018 @03:12AM (#16910543)
I've used make as an static site generator, it is actually very neat for that purpose and makes rebuilds quite fast and parallel.
Re:Fast website link checker in Go by davars on Tuesday April 24, 2018 @08:15AM (#16911881)
I just started using godo [1] and I like it so far. Implement tasks in Go, bash, or the provided wrappers around os/exec.

Biggest advantage over a generic tool like Make is that you can import your project dependencies (such as your database configuration) into your task.

[1] https://github.com/go-godo/godo

Re:Fast website link checker in Go by timlyo on Tuesday April 24, 2018 @03:38AM (#16910661)
Just [0] is a pretty great generic task runner incase anyone is looking for one. It's written in Rust so it doesn't introduce any new languages (single binary install) and it uses a make inspired syntax but aims to avoid some of Make's issues.

[0] https://github.com/casey/just

Re:Fast website link checker in Go by ENTP on Tuesday April 24, 2018 @05:12AM (#16911080)
I've used task with much success https://github.com/go-task/task
Re:Fast website link checker in Go by blowski on Tuesday April 24, 2018 @03:29AM (#16910621)
What’s wrong with using Make for running generic tasks?
Re:Fast website link checker in Go by eloff on Monday April 23, 2018 @09:12PM (#16909027)
I use matr[1], which is lets you define your build functions/tasks as ordinary go functions. There's a complementary library for issuing shell commands.

I like keeping just one language and tooling, but the biggest benefit to me is I'm always forgetting the arcane bits of shell syntax, and using Go saves me from having to search it all the time. Despite being more verbose than bash, I find it saves me time overall.

[1] https://github.com/matr-builder/matr

Re:Fast website link checker in Go by barsonme on Monday April 23, 2018 @10:21PM (#16909368)
I just write homebrew "makefiles" with Go. The language kinda doubles as a scripting language almost, so I've found it much nicer than makefiles.
Re:Fast website link checker in Go by reificator on Monday April 23, 2018 @08:48PM (#16908901)
I find it helpful when CI providers run Go tooling by default, except if there's a makefile in which case they run that instead.
Re:Fast website link checker in Go by jatoben on Monday April 23, 2018 @11:50PM (#16909715)
I like Mage (https://magefile.org).
Re:Fast website link checker in Go by komuW on Tuesday April 24, 2018 @01:52PM (#16914849)