scardine

Joined 14 years ago

Karma
1,990
Submissions
615
Member since
Nov 12
[ my public key: https://keybase.io/scardine; my proof: https://keybase.io/scardine/sigs/qeBpi0HYlFKHREYPh9n-xmWcbtfL4QLbtHsGFGzGD2g ]
View on Hacker News

Recent submissions

Comment · 7 years ago
I guess you can have heated lens just like you have heated mirrors (I'm living in Brazil so I don't have this problem).

I like to use darker film in side windows, but it makes hard to use the side mirrors at night, I would love to replace them with cameras.

Things like night mode and anti-glare would be pretty cool as well.

Comment · 7 years ago
Comment · 7 years ago
It is a catch 22: unless you are spending at least half your time prospecting new clients it is hard to keep a steady income, but it is hard to invest that much time in the commercial side of your "one man show" if you are not charging high enough.

Every beginner underestimate how much salesmanship it takes to run a successful freelancer career.

Comment · 7 years ago
It may come as a surprise, but neurotypical people also show stereotypical movements (stereotypy is the term used formally in scientific literature for this behavior).

There is a neural pathway that triggers this to occur in about any human, under the right circumstances - just watch anyone doing something that demands deep focus or concentration combined with fine motor skills.

For example, watch a musician or a someone playing videogame and you can identify motor stereotypical moves in the facial muscles (specially tongue/mouth/jaw).

The stereotypical moves in autistic persons tend to be very characteristic and are easy to spot if you have a trained eye.

So don't worry about moving your toes in patterns or jiggling your leg while you are coding, it is perfectly normal.

Comment · 7 years ago
I'm OK with GMO products, what I hate is:

* GMO that don't produce viable seeds so I have to buy seeds from you every season.

* GMO that only works with some other supply available only from the same provider (think of a car that only works with gas from Ford).

* Patents on living organisms: a farmer should be allowed to plant the seeds they grew in their own farm, produce hybrids and so on, without paying royalties.

* If GMO strains get accidentally cross-pollinated from a neighbor farm you should not be on the hook for it.

Comment · 7 years ago
Python is kind of a strange beast - definitely imperative but with some FP-ish features: functions first-class citizenship, list comprehensions, generator functions/expressions (and there is the functools module). It is gaining more and more native immutable collections with each release. This multi-paradigm approach is what makes it one of the best glue-languages out there.

Python lacks tail call optimizations and recursion dept is limited to ~1000, so if your algorithm is not O(log n) or better you may have to convert from recursive to iterative (there is a recipe that makes conversion trivial) but other than that I'm content with its FP-style features.

Comment · 7 years ago
Have you tried Python's SQLAlchemy, the ORM parent posts are praising? The `sqlalchemy.sql` module is awesome and pretty much maps 1:1 to raw SQL.

Composing SQL expressions using this library instead of using string interpolation/concatenation has several advantages:

* DRY and composition * safety * portability (if you have switch the underlying DBMS)

Often the result is as good or better than my raw SQL. The fact that Python has an amazing REPL makes the process pretty much like testing queries in the database prompt but with less cognitive switch between languages.

In the end it is a matter of taste, but I have to agree with parent posts, SQLAlchemy raises the bar for other ORMs.

Comment · 7 years ago
The space elevator itself would be something outrageously expensive and dangerous to build - but there will always be people willing to take the challenge.
Comment · 7 years ago
Comment · 7 years ago
The moon has ideal conditions for solar energy harvesting: no atmosphere, no weather...

Since Project Apollo in the 1970s it is known that all the materials needed for manufacturing photovoltaic cells are present in lunar rocks and dust. Not saying it is an easy engineering feat, but the raw materials are there.

Comment · 7 years ago
Leaving moon's gravity well may be cheaper than getting to space from earth but it is far from free.

With a space elevator in the moon you can use raw material from the moon to assemble huge stations and ships in space.

Comment · 7 years ago
In Brazil there is a concept called Business Entity Disregarding (Desconsideração da Personalidade Jurídica) that can get both ways: make partners liable for company debts or companies liable for partner debts. It can be triggered when the plaintiff engaged in some kind of asset hiding fraud or there are substantial confusion regarding company/personal assets.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton