Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mdellavo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
mdellavo
5y ago
this is a common approach when you are dealing in rates less than .01 -- you just need to be sure you are rounding correctly
32.
▲
by
mdellavo
5y ago
if you are typing out boilerplate you should look to abstract it away
33.
▲
by
mdellavo
5y ago
It seems incorrect to determine a half a month as 16/31 but ok , for your proposed example: >>> from decimal import Decimal >>> Decimal(1000) * Decimal(16) / Decimal(31) Decimal('516.1290322580
34.
▲
by
mdellavo
5y ago
https://stackoverflow.com/questions/3730019/why-not-use-doub...
35.
▲
by
mdellavo
5y ago
What do you think about this being overall detrimental to code quality as it allows people to just blindly accept completions without really understanding the generated code. Similar to copy-and-paste coding. The first example parse_expense
36.
▲
by
mdellavo
5y ago
I would say the use of float makes it a nonstarter - even for "quick one-off" scripts. That's a fundamental error in the generated code. It maybe looks correct at a quick glance but it's only introducing subtle errors
37.
▲
by
mdellavo
5y ago
in their own example the copilot aimed for the mountains with float() - thanks but no thanks
38.
▲
by
mdellavo
5y ago
I guess I dont see the point if only 10% of the time it's exactly what you want and the rest of the time you have to go back and touch up the line. Does it train a programmer for accepting less than ideal code because it was suggested?
39.
▲
by
mdellavo
5y ago
do you still go over the generated code line by line and touchup in places where it did not do a good job?
40.
▲
by
mdellavo
5y ago
Should I be impressed that the example parse_expenses.py on the home page doesnt include any error handling and uses a float for currency? This seems like it's going to revolutionize copy and paste programming.
41.
▲
by
mdellavo
5y ago
defense in depth is about as basic as it gets, even for generalists
42.
▲
by
mdellavo
5y ago
I don't know why this is being downvoted. Multiple overlapping layers of security would have given newsblur a backup in case of accidental "footguns". Unauthenticated mongodb instances are a pretty common problem - it's
43.
▲
by
mdellavo
6y ago
saltstack, fabric
44.
▲
by
mdellavo
7y ago
i cant create a PR, maybe they are in read-only mode
45.
▲
by
mdellavo
7y ago
or the systems arent multi-tenant so they end up cloning the schema for each customer
46.
▲
by
mdellavo
7y ago
OSS means allowing "free riders"
47.
▲
by
mdellavo
7y ago
at one point - the spirit of the OSS movement was giving away things for free.
48.
▲
by
mdellavo
7y ago
coworker bought pebble preorder - when it arrived he was very underwhelmed and disappointed at what he bought.
49.
▲
by
mdellavo
7y ago
yeah it is :) im not a frontend person so i was just trying to get up and running as fast as possible. this has been on and off, nights and weekends for ~10-11 months
50.
▲
Show HN: Web Based Multipler Roguelike
3 points
by
mdellavo
7y ago
|
2 comments
51.
▲
by
mdellavo
7y ago
dee ennn esss
52.
▲
by
mdellavo
7y ago
This entirely depends on the domain and data model, and unless you need SQL - mongodb should be a consideration too.
53.
▲
by
mdellavo
7y ago
You nailed it, it's absolute parody. The graffiti in the Broad St. NYC location is cringe inducing. On more than one occasion I've witnessed people omit that their office is based out of a we work location. Just too embarrassing t
54.
▲
by
mdellavo
7y ago
frictionless toll collection
55.
▲
by
mdellavo
7y ago
a cs degree is going to require you to cover a lot of math, which is required for cs proper. a bit of an apple and oranges comparison
56.
▲
by
mdellavo
7y ago
using csv and tools like grep and join is very fast for large datasets
57.
▲
by
mdellavo
7y ago
yep - all of the upside none of the downside.
58.
▲
by
mdellavo
7y ago
facebook's solution https://facebookincubator.github.io/oomd/
59.
▲
by
mdellavo
7y ago
"real" car companies are not without their own scandals https://en.wikipedia.org/wiki/Firestone_and_Ford_tire_contro... https://en.wikipedia.org/wiki/Ford_Pinto#Fuel_system_fires,_...
60.
▲
by
mdellavo
7y ago
eng has responsibility here for going forward with this
More ›