20 random bookmarks
Тут будут ссылки на всё-всё, что я найду интересным
Тут будут ссылки на всё-всё, что я найду интересным
Хоттабыч
Demonstrating the basics of logic programming with data from the Pokémon games.
OpenStreetMap surveyor app
The more time you spend designing systems, the more paranoid you get about things going wrong
PostgREST is a standalone web server that turns your PostgreSQL database directly into a RESTful API. The structural constraints and permissions in the database determine the API endpoints and operations.
Sounds like a way to write less code. I skimmed through the reference, looks cool. PostgREST is written in Haskell for some reason though.
In many other languages, you have to not only evaluate testing libraries, but also write your tests in a style that complies with that library’s expectations. Gophers are blessed to have a thoroughly adequate solution out-of-the-box, and even further blessed to have an active ecosystem where folks are making in-depth testing a walk in the park.
Кристина общается с другими подкастерами, раскрывая внутреннюю кухню.
package src
type config struct {
// Required
foo, bar string
// Optional
fizz, bazz int
}
// Each optional configuration attribute will have its own public method
func (c *config) WithFizz(fizz int) *config {
c.fizz = fizz
return c
}
func (c *config) WithBazz(bazz int) *config {
c.bazz = bazz
return c
}
// This only accepts the required options as params
func NewConfig(foo, bar string) *config {
// First fill in the options with default values
return &config{foo, bar, 10, 100}
}
func Do(c *config) {}
You’d use the API as follows:
package main
import ".../src"
func main() {
// Initialize the struct with only the required options and then chain
// the option methods to update the optional configuration attributes
c := src.NewConfig("hello", "world").WithFizz(0).WithBazz(42)
src.Do(c)
}
Время от времени читаю, что люди страдают из-за разных часовых поясов в команде и с клиентами, путаются во встречах и вообще не понимают, как вести календарь.
Учу. Включите поддержку часовых поясов в календаре, если вдруг вы этого почему-то не сделали.
Везде речь о флетвайте. В случае сетей я указываю адреса только тех точек, в которых я был, и при этом там хорошо. Во всех местах из этого списка дают воду, если попросить. Цену указал, где помню.
О том, как находить места на фото с помощью Оверпасс турбо