Hacker Newsnew | past | comments | ask | show | jobs | submit | spelufo's commentslogin

  Location: Italy, Uruguay by November.
  Remote: Yes
  Willing to relocate: Yes
  Technologies: Julia, Python, Django, Go, Kubernetes, Clojure, Javascript, etc.
  Résumé/CV: https://www.linkedin.com/in/santiago-pelufo-409baa1aa/
  Email: santiagopelufo at gmail
Experienced web developer. Problem solver, scientifically minded. Vesuvius Challenge contributor.


What is bullshit is the attempt to appropriate a useful neutral adjective to mean more than it does. Mathy is just mathy. Physics is more mathy than psychology. Too mathy can be bad, sure.


You may not be familiar with the "truthiness" term/meme it is a reference to.

https://en.m.wikipedia.org/wiki/Truthiness

H/t Colbert.


I see it as attempting to provide a patina of quantifiability for an essentially qualitative or incalculable result. If it is actually used as a measure, then it will lead to horrible distortion. The "next article" on the site is about OKRs (objectives and key results) and how they can be used to motivate and also destroy motivation, inspire and also make people afraid, by how faithfully you stick to the measurement and how much you assume the Os and KRs are actually tied to business results. The example of the Virginia Mason Quality Equation is somewhat egregious because it is presented as an equation but nothing in it is properly quantifiable, the units are meaningless, and the authors say it's not to be calculated.

However, there is value in putting everything in a mnemonic so that you remember its parts, and what adds and subtracts from the results. Amazon shipping and FedEx Express have different types of quality. Amazon is next-day or better for virtually everything and unreliable. It comes with a guarantee to refund the cost of shipping, which is 0 in most cases. FedEx Express has varying service levels at increasing costs for performance and includes meaninful guarantees and insurance tied to the performance goal. If Amazon fails to deliver on time, it is frustrating but probably not typically enough to make the user quit using the service or attempt to sue, as they didn't pay for specific service and they are satisfied with the overall expediency of the service. If FedEx Express had Amazon levels of performance, they would lose to competitors who are willing to provide the requested service, regardless of whether they refund people's delivery charges. Putting it back in the equation, the Appropriateness of the service dominates the difference between Amazon Shipping and FedEx Express, where Amazon can tolerate more bad outcomes in their model and FedEx can tolerate more waste (higher fees). Amazon can impress you with same-day delivery you didn't ask for while FedEx has no need to do so, people want merely on-time delivery at the price level they requested.


In the past century Psychology transformed from speculative writing combined with clinical observation, to sophisticated statistical analysis and attempt to follow scientific methods, because many audiences including yourself believe that makes it more true.


I'm Uruguayan and this drives me crazy. Specially for products that are also tools for industries where we can and do compete. Buying a computer in Uruguay costs about twice as much as in the US.

If this is all self imposed by tariffs, which as far as I know it is, what industry are the tariffs really defending? Certainly not Uruguayan electronics manufacturers, there aren't any. The only people that I imagine benefit are customs officers and companies that import stuff to sell in Uruguay. There isn't any new capability to build things that the country gets in return. We learn from exporting talent instead.

And if we want to compete we need to do it globally. Our market is too small, the population is ~3M.


>The only people that I imagine benefit are customs officers and companies that import stuff to sell in Uruguay.

How do high tariffs help importing companies? Wouldn't they be able to sell more (and thus import more) if the end prices to the consumer were lower?


Fair point, I might be mistaken. But I think there are lots of small resellers that wouldn't exist if buying online from abroad was as seamless and risk free as buying online locally through mercado libre. The real problem is the requirement of contacting a customs officer to import anything above 200usd, and the risk of having the product stopped by customs. The resellers value is in saving you that bureaucracy by doing it in bulk. And in practice, because of the small market, it greatly reduces the variety of products on offer.


There's a way to configure readline (which bash and many other use) to use up arrow history, like Matlab or Julia do by default, where you hit the up arrow key to search the history for commands that start with what you've typed so far. It is a small thing, but I use it all the time.

In ~/.inputrc:

    "\e[A": history-search-backward
    "\C-p": history-search-backward
    "\e[B": history-search-forward
    "\C-n": history-search-forward


At some point in the past it took me nearly an hour trawling the internet to find this piece of code, though it's not quite identical.

  "\e[A": history-search-backward
  "\e[B": history-search-forward
  "\eOA": history-search-backward
  "\eOB": history-search-forward
The only downside ist, don't over-rely on history muscle memory! Regularly every few months I use p+arrowUp and expect to get "ping" but get the exceptional "pip" instead.


Incidentally, many distributions have this enabled, but with the PgUp keybinding instead of Up.


when I first found this years ago it changed my life. so much faster than ctrl-r to search the history... type a prefix and hit up a few times.


How is it so much faster? It's only one additional keypress, vs having to reach for the arrow keys.


Also, `cd -` to go back to the previous directory. And for git branches `git checkout -`. Handy.


What about the database side of things?


If you don't need something as low-level as next.jdbc, HugSQL is my preferred library. It lets you write queries in .sql files, and the queries are then loaded as functions. If you want to dynamically generate queries, there are also libraries like HoneySQL.


Probably worth mentioning that triplestores/Datomic-like databases are relatively mainstream in Clojure: https://github.com/simongray/clojure-graph-resources#datalog


next.jdbc is the go-to library to interact with SQL databases. https://cljdoc.org/d/com.github.seancorfield/next.jdbc/1.3.8...


varchar (100) ?


Yeah I would assume it’s the max length of the column in whatever database they’re storing the hashed password


Same here. I call it mkcd


I like this dispatch trick:

build() { ... }

run() { ... }

cmd="$1"

shift

$cmd "$@"


"$@" would have worked just as well there, instead of the final three lines: you pulled cmd off the front just to... put it back. (I wouldn't recommend doing either of these, though, as it is weird that random other commands are valid there, such as "ls"; you should use a case statement.)


Yes, I think I used to check if `$cmd` was in a space separated list of valid commands, but I don't anymore because I only every use this to quickly get some commands down into a project's directory so as not to forget them.

As soon as any complexity or validation is needed I move to python, which is usually a better fit, and arguably even more portable.


I suppose it's safer that way because it will only execute those specific functions, and wouldn't, for example, execute a statement like "rm -rf /”


I made something similar with fsnotify recently: https://github.com/spelufo/on-change


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: