Better HN
topnewbestaskshowjobs
Log inSign up

czynskee

38 karma · joined Oct 1, 2020 (6y ago) · 14 submissions

Submissions

comment 3y ago · link · parent

I think the point being made here is that it may be worth walling off the agriculture industry specifically due to a country’s desire to maintain food security. A worldwide clothing shortage is not as big of a concern, which may be a reason you don’t see the same strategy applied there.

Edit: actually my mistake, that point was made in a separate thread. I think my point still stands though.

comment 3y ago · link · parent

In Switzerland they have a “simple” solution to this problem. The onus is on the consumer to make sure all recyclables are washed and split appropriately. There are different bins for metals, paper, compost, and the different kinds of plastic. The municipality randomly checks your bags and fines you if you don’t do this right. Regular trash has to go in specific bags that are much more expensive.

Basically the incentives are setup such that everyone takes the 10 extra minutes to do it right. People are annoyed but once you have a system down it’s not really hard to do.

I think this is the way to go. Everyone pitches in to make recycling work. In the long run it may even incentivize sellers to make their products easy to recycle, as buyers are forced to care.

Note I may have some details wrong as this is based on what I remember from living there 10 years ago.

comment 4y ago · link · parent

What's a game of chance to you to him is one of real skill...

comment 4y ago · link · parent

Permutation City is a great exploration of this idea.

https://en.wikipedia.org/wiki/Permutation_City

comment 4y ago · link · parent

Mac and Windows kernels are also written (predominantly) in C. So not sure what industry you're referring to.

If anyone's interested - here's Linus on C++ in the linux kernel: http://harmful.cat-v.org/software/c++/linus

comment 5y ago · link · parent

If you find awk unreadable, maybe check out this link? https://ferd.ca/awk-in-20-minutes.html

I actually find awk very readable. It's a far simpler language than Python really.

The exception is perhaps if you need to do something complex, like parse a csv.

comment 6y ago · link · parent

If x is your variable, you can just do Boolean(x) rather than !! to make it boolean. E.g. it will convert undefined, null, 0, "", and NaN to false.

This is a much more readable cast.

comment 6y ago · link · parent

One thing you can also do is specifically look for the international edition. These will often be paperback and non-color, but otherwise have the same content. I've found some popular comp-sci textbooks for ~20% the cost of the cheapest paperback US edition.

comment 6y ago · link · parent

When my wife uses this line of reasoning I point out that she's taking solace in other people's pain. It's kind of a joke, but it's also kind of true. Don't need to minimize your own suffering just because someone else suffered more.

comment 6y ago · link · parent

What's really more important than having numbers is having specific details on your resume (which could include numbers). Every bullet point on your resume might represent months of work (depending on how long your career has been). E.g., you may have refactored the front-end in a few days, or maybe it took you two months. There's no way to sum that experience into one bullet point, and that's not really the point.

It's better to have some very targeted details that can reveal the depth of your experience than high level summaries which may technically be better descriptors. It helps the person reading the resume better imagine who you are and the kinds of things that you do.

It also can provide a bit of context that you can later expand on in more detail during e.g. a screening interview. They might ask you how you measured user engagement, which gives you another chance to talk and sound smart. You might miss that opportunity with more generic descriptors.

comment 6y ago · link · parent

This looks pretty cool, I love your use of proxies. Along with that though, I'm curious if you've done any performance testing comparisons? This could very well be out of date now but at some point I read that accessing properties on a proxied object are like 600 times slower than a regular JS object. I wonder if that could be a bottleneck if you're doing state updates on, say, scroll events or something.

I've been able to notice performance hiccups in these cases even just using React state. Of course debouncing usually helps.

comment 6y ago · link · parent

I think they're implying statutory rape.

comment 6y ago · link · parent

I had (have) the same experience with Ecto but Ecto != Elixir.

One of the super cool things about Elixir is how easy it is to extend the language with DSLs. However (and Jose et al are very up front about this), the more DSLs and macros you use, the more confusing it's going to be. Using macros is a tradeoff because it can be a very neat solution but it also obscures what the code is doing quite a bit.

Re. foo(hello: :world) vs foo(:hello, :world) - that one I got the hang of more quickly, though I'll admit it's confusing at first. In the first you're providing a keyword list (which is merely a list of 2-membered tuples where the first member of the tuple is an atom). And when a keyword list is the last (or only) argument to a function it can be provided without the brackets. So the same thing could be written as foo([{hello:, :world}]) or also foo([hello: :world]). In foo(:hello, :world) you're just providing arguments. When you're first learning the language this can definitely trip you up but I think once you become a "practitioner" it's not too bad and ends up being pretty nice.

God Elixir is so cool.

comment 6y ago · link · parent

Location: Eugene, OR

Remote: Open to remote work

Willing to relocate: Open to relocating

Technologies: Typescript/Javascript, SQL, HTML, CSS, Elixir, Python, React, RXJS, Angular, Redux, ExpressJS, Phoenix, MongoDB, CouchDB, Git, Postgres

Résumé/CV: https://docs.google.com/document/d/e/2PACX-1vThUaQ0oPlse_NuV...

Email: kaczynski.kyled@gmail.com

About me: I have a lot of experience building progressive front-end applications (React, PouchDB etc.) but also have experience with creating back-end APIs, server-side rendering, Oauth, etc. I'm interested in any kind of web-dev roles though I would be extra excited about something involving Elixir (or functional programming generally).