Recent submissions

Comment · 1 day ago
If define biodiversity just by sheer number of sp, yes.

That's why biodiversity has so many definitions and the one used here is the most basic one which can lead to bad conclusions. I recall a study in an area affected by deforestation where plant "biodiversity" actually increased—but this was a natural, expected effect, driven by colonizing species that require more light to germinate from their seeds. The stable equilibrium one would expect, however, involves lower biodiversity.

Comment · 6 months ago
The same coinbase where my manager used # of commits as metric for praise. I'm so anxious to see how this will work out
Comment · 1 year ago
Any method you forget to overwrite from the embed struct gives a false "impression" you can call any method from mockS3. Most of time code inside test will be:

    // embedded S3Client not properly initialized
    mock := mockS3{}
    // somewhere inside the business logic
    s3.UploadReport(...) // surprise
Go is flexible, you can define a complete interface at producer and consumers still can use their own interface only with required methods if they want.
Comment · 4 years ago

  Location: Brazil
  Remote: yes
  Willing to relocate: yes
  Technologies: Go, PostgreSQL, Mongo, Kafka, AMQP (rabbitmq), gcp, aws, azure, docker, kubernetes, R, QGIS
  Résumé/CV: https://www.linkedin.com/in/dvdscripter/
  Email: dvdscripter(ᵃᵗ)gmail.com
Hi I'm David, self taught developer looking for profissional challenges using GraphQL, gRPC or more low level. Currently staff engineer with great experience in finance (fintechs) and e-commerce.
Comment · 5 years ago
We had similar problem (banking service). Instead of "moving" directly to destination we include a safe account in the middle.

A > safe > B

Safe account is called this way because we don't risk the misuse of money in case of rollback.

Comment · 5 years ago
github.com/pkg/errors also is a amazing option
Comment · 5 years ago
"I think" posts should always handled with care because we have no real evidence, just your "I think". Pattern 12 is often used to promote critical thinking and to shake previous believes. Most teachers want the class to realize something is wrong because this type of realization helps the process of learning (knowledge coming from you, not them).
Comment · 5 years ago
I didn't say they're the same. I'm saying people coming from OO complain all the time of lack of generics, inheritance (besides composition) etc.

I teach basic go at my job to help people wanting to migrate, they start the go journey thinking go will do "less" because we don't have all features as their main language. Which reminds me of this phrase:

> 'You cannot reduce the complexity of your problem by increasing the complexity of your language.'

Comment · 5 years ago
If you want all features of language X (I doubt we will stop at generics) use language X. Stop trying to make all languages the same.

I work with programmers from OO background (java) and they can't even grasp the utility of functions as value or closures. Every damn "service" has an interface/generated mock and anemic model. They're desperate waiting for generics for go to "complete".

I fear the influx of OO programmers.

Comment · 5 years ago
You can do something similar to container package which has a double impl.
Comment · 6 years ago
someone cited kubernetes above
Comment · 6 years ago
This type of measurement using quantitative data should be interpreted with care. At least here in Brazil most of places where some impact occur have an increase in net diversity and abundance. Many new sp. invade the niche left open by the former community and what you see is a shift of the entire community.
Comment · 6 years ago
As someone who freelance php and do on-site go coding on daily basis, modern PHP is amazing (symfony/slim is everything I want).

One simple improvement I would love to see is namespace grouping in standard library. Go has all related functions inside some package. Go pls let me do http.notfound<tab/enter> = http.StatusNotFound. But in php even with inteli I need to google some function/const name.

Comment · 6 years ago
This "office feeling" is something still strange to me as someone who like to work with less cloth as possible. Maybe is my background in biology which we did everything in same place, research, sample, drink and eat. In fact working in office make my production drop even with 35h/week.

Maybe is related to programming as hobby turning to job.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton