HNHacker News
TopNewBestAskShowJobs

nooorofe

36 karma · joined September 18, 2016

submissionscomments
nooorofe··on Chatbots: Still dumb after all these years
Dishwasher saves a lot of time. Not many machines in my kitchen can be classified as "robot"

* oven - not intend to save time (except the fan option), easy-medium to clean * instant pot - saves time, easy to clean * rice-cooker - saves time, easy to clean * electric kettle - save time, easy to clean

If you ever lived in condition without those, you wouldn't praise "cutting board and the knife". I don't need quotes from books to know it.

nooorofe··on Using WebScript
in 2007 it was modern
nooorofe··on New language features since Java 8 to 17
https://advancedweb.hu/new-language-features-since-java-8-to...

> Available since: JDK 11 (Without lambda support in JDK 10)

TOC is missed up, there is no java-10 at all.

nooorofe··on I use Attrs instead of Pydantic
> fully type-annotated python

When I do that, I ask myself: "how is it different from writing Java code?". I don't have a clear answer. It becomes almost as verbose as Java. Java has better type validation (doesn't compile on mistake); it is faster (at least some payback for verbosity); real type system has additional advantages, for example using types as part of method signature.

nooorofe··on How to deliver constructive feedback in difficult situations (2019)
> The only thing that (almost) guarantees good relationships with management is to just do whatever they want even when it is leading the company to ruin, never voice your objections, etc.

That is not my experience. When management asks to do something, it doesn't mean it likes any outcome. I am not calling to oppose any decision, but usually there are ways to express concerns. "High risk" for example is language they may understand. I've found that managers many times more confused and disoriented than you may expect. Sometimes asking questions discovers, that there are missing parts in the plan. But it is not easy, even to start questioning you need to have reputation (ex. guy that make things done). Finding right forum ("small group discussion") is another way to communicate concerns.

>they don’t usually care about the success of the company, just their own personal success

Well, people who put "success of the company" at highest priority usually not become manages. Many times managers are blind, because they have to follow orders (directions). Hearing from subject matter expert that the direction doesn't make sense not helping to their mental state.

My general position: I prefer to warn about potential bad outcome of decision without refusing to follow orders.

nooorofe··on Strict Tables – Column type constraints in SQLite - Draft
for me mixed value types killed index, which drastically affected performance
nooorofe··on Strict Tables – Column type constraints in SQLite - Draft
> I have never ever encountered a type error with it

The problem is opposite - not having type error. The simplest example probably is import from CSV with incorrect column order. Using other DB you get an error, SQLite will just import everything.

nooorofe··on Benefits of Not Using an IDE
I understand, I just wonder if he/she really means to it. Who knows, some people have very good memory. When I work with a new (for me) topic, I am trying to get basic understanding of topic, still it far from remembering exact method signatures.
nooorofe··on Benefits of Not Using an IDE
Concurrent code is not easy to debug line by line. Logging is a good alternative.
nooorofe··on Benefits of Not Using an IDE
Do you memorize all those IO/XML/JSON/Hadoop (HDFS/MR/Core/...)/AWS/Azure/... APIs by heart?
nooorofe··on SQLite Is Dynamically Typed (2020)
from my experience, mixed values in a column silently kills index.
nooorofe··on How the Python import system works
probably, you may add to the list

- understand difference between Python in IDE and Python in shell

So many times people do `pip install <>` and still not able to use in IDE

nooorofe··on The Web Is Eating the Desktop (2017)
Almost nobody argues that Web application is easier option for developer. As a user I don't want 500M program to do the same what 30M program did before. It is a real example my company is replacing WebEx with MS Teams. And it is not a single program, more and more like those. Electron is "bloated software". Usability is another issue: web UI elements appears from nowhere, there is no single way to find where is settings button...
nooorofe··on Why do recipe writers lie about how long it takes to caramelize onions? (2012)
Usually salt is not added in the beginning when recipe has step of activating yeast. Then you don't drop pure salt into just activated yeast - kind of make sense.
nooorofe··on Parse, Don't Validate (2019)
There is one thing concerns me about type annotation. With annotation Python code looks like Java code, but with it I don't have advantages of Java (like speed). Besides I see things like `x: typing.Union[str, typing.Any]` - maybe better no annotation.
nooorofe··on JSON with Commas and Comments
> Creating schemas for declaring types is literally a hack for adding type!

It is a "communication protocol" - base of any messaging system. Message has header with protocol name and version: HTTP, TCP, DB connection, SOAP, any message queue - everything working that way.

> "datetime" isn't a universal format specification. than use another (see the comment above)

self-contained message is anti-pattern

nooorofe··on JSON with Commas and Comments
JSON schema exist exactly for that reason, hacks like adding type is just nonsense. If somebody need comments, types it - XML has all that. Also how hard is to write {"type": "datetime", "value": "2021-02-23 12:46:37.07"}?
nooorofe··on Why SELECT * is bad for SQL performance (2020)
In most cases it is better to let application fail as early as possible when something unexpected occured. By making it more stable that way (SELECT *), you create hidden bugs which hard to detect and recovery is more expensive. It is even more important for data processing pipelines. I add assert/except to my code when it is possible: fail job, analyze, fix/report bug, notify downstream, rerun.
nooorofe··on Python’s tug of war between beginner-friendly and advanced features

    >>> print(range(10))
    range(0, 10)
    >>>
nooorofe··on Doing a database join with CSV files
If Pandas is slow, than you can use Spark. For such big files laptop is not an option anyway. SQLite can be fast if you index your data (but I've worked with files < 10G). Nowadays I am just uploading CSV to some cloud database and work with data there.
nooorofe··on Leave Gmail in 10 steps
I've checked https://myaccount.google.com/purchases

"You don't have any purchases"

nooorofe··on Why I’m Frustrated with Go

  In [60]: (1,2) > {1: 2}
  ---------------------------------------------------------------------------
  TypeError                                 Traceback (most recent call last)
  <ipython-input-60-f9d83a4c8f73> in <module>()
  ----> 1 (1,2) > {1: 2}

  TypeError: '>' not supported between instances of 'tuple' and 'dict'
nooorofe··on Python Versions Used in Commercial Projects, 2016 Edition
https://www.google.com/trends/explore?date=all&q=python%202....

:)))

nooorofe··on Why you should never use Upwork
It happens, my wife send me emails during the day. I wouldn't like somebody see it. Or I want to check my personal email, even if I got an email from my other client (well, imaginary - I don't work as freelancer) why somebody should see it? A task can be done or not dene or NN% done. Why does it matters how exactly the time spent? If something didn't work, it should possible to request actions were taken, work plans, code (even not working) etc.
← PreviousPage 2 of 2