durbatuluk
durbatuluk on Hacker News
The same coinbase where my manager used # of commits as metric for praise. I'm so anxious to see how this will work out
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.
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.
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.
github.com/pkg/errors also is a amazing option
"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).
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.'
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.
You can do something similar to container package which has a double impl.
Posted by
durbatuluk on Friday August 20, 2021 @09:11PM
from the fredrikholmqvist.com dept.
someone cited kubernetes above
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.
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.
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.
Posted by
durbatuluk on Thursday January 16, 2020 @08:27PM
from the nature.com dept.
I think everyone need to remember CORS is a browser-only protection and anything you expose via CORS protected endpoint in reallity has no protection at all. Try cURL reaching any endpoint protected by CORS and you'll see what I mean.
Also browsers automatic sending cookie enable many of these CSRF, consider JWT.
Amazing how PHP is still bitting developers.
I should start calling myself a ML expert? I'm 32 year old and most of these "ML algorithms" are called statistics for me. Maybe I'm missing something, where is the LEARNING on k-means? Numerical solutions seems to be on rise now.
Nice write for someone starting, more details about details of algorithm steps would greatly attract more readers.
Indeed, without env. var we are stuck with ~ "madness"
TIL I'm using ~ in the wrong way. For me ~ was always the default place for user-level configurations and time taught me to do so: .X* .bash* .vimrc and others.
Than I create my personal folders ~/{src, docs, bin, porn, anime etc}. ~ is for temporary files I'll delete after use like windows users do with their Desktop folder.
Also my ls isn't an alias with -a flag...I'm alone here? :|
Posted by
durbatuluk on Thursday October 11, 2018 @04:51PM
from the indiatoday.in dept.
This is a amazing project. It has many of features I always lost my time writing API.
I understand this very well but this happen only on low-income countries.
Here in Brazil zika, dengue and malaria are our everyday neighbors but most of problem are from lack of basic sanitation.
One of my first studies was estimating the effect of proximity/density of nearest forest at the neglected tropical diseases. Many people come with the same conclusion: no effect for dengue and yellow fever. Later Brazilian government started doing in-house visits trying to find small pounds of water on backyards. The result was astonishing, most backyards are like paradise for Aedes and similar mosquitos. Even water box are open and full of water for children to play on hot days. Now the campaign is to not create spaces where they can proliferate like: http://infodengue.ikiw.com.br/2015/03/como-evitar-dengue.htm...
Malaria is a special case because seems to not stand urban micro climate and people at these regions cannot afford to move. I understand the case of half million people losing their lives but realistic we will not stop using gene modification only on Anopheles. Here in Brazil will target minimum three genres of mosquito, any of them can cause diseases. Mosquitos also do not respect political borders.
As ecologist this scare me to death. Yesterday I was wondering where are the predators who didn't fill this "empty niche" on cities? Dragonflies are natural predators on environment but cannot stand urban micro climate. Thinking something will fill a empty niche is a theory. Even "niche" occupation is a theory which is show to not fit many places (amazon basin).
Some consequences are starting to be measured and we're turning our eyes because we don't like bites? I got Dengue in two occasions and I really hate these mosquitos but we must not be innocent to think there is no consequences and nature will solve this for us.
> They found that the birds produced on average two chicks per nest after spraying, compared with three for birds at control sites.
> https://www.nature.com/news/2010/100721/full/466432a.html
Old compilation of papers about the consequences.
Congrats, I'm your old one at the moment. I'm a bit more desperate because my wife is pregnant. Happy father's day to me I guess
Posted by
durbatuluk on Wednesday August 01, 2018 @10:38PM
from the show-hn dept.
As someone who taught R for students coming from Biology. Most of them just want to learn some_stat_test(), how to interpret it and who to plot().
These who tried to do modeling using vanilla R just dropped midway because of R performance and switched back to fortran
ggplot2 just should be baseline instead of default gfx.
That fucking phrase was the motto of one of our devs. Fast-forward one year and we still don't deliver the product to client.
Posted by
durbatuluk on Friday November 17, 2017 @06:32AM
from the academic.oup.com dept.
and my dreams become reality!
1: create a torrent for every package on archlinux using bep 39.
2: sign them with maintainers keys
3: ???
4: PROFIT!!!
Sadly is hard to say anything without any value on axis. Difference between mean and 99% is 5s or 20ms?
As someone said here, threshold for "slow loading" should be used before picking metric for measuring it.
Pick graphic one and draw a line where users whine about slow loading, check how many are under and above. If the number of users below threshold value is "greater" then above threshold you shouldn't be so worried. How much greater can be picked from standard error from threshold measure from users.