866 karma · joined Jun 4, 2013 (13y ago) · 205 submissions
91.
Lambda Calculus Examples (2009) [pdf](ics.uci.edu ↗)
144 points · by alphanumeric0 · 5y ago · 18 comments
comment 5y ago · link · parent
I make sure to thoroughly document my changes in my commit messages and sometimes in my comments, especially documenting who requested the change so that there's a nice paper trail. I also push back often, but the mere act of responding to feedback that does not seem honest from a team lead is traumatic.
My problem is: how do you report such a passive-aggressive person? A single request or question on its own seems benign and not particularly harassing, but the overall trend is a huge red flag. To be honest, I'm not sure much can be done.
If you decide for whatever reason that you cannot leave, the best way to deal with a passive aggressive person is to erase from your memory that they are passive aggressive at all. It is a test of wills that you will win, just don't lose your cool. Never forget that a passive aggressive person is a fundamentally insecure person, and then you will always have the upper hand.
comment 5y ago · link · parent
Yes, it is often the case that the person has the wrong idea of how to solve X, but this does not always say something about the validity of problem Y. Often times knowing how to do Y is valuable for other contexts besides X. We should try to be friendly and make it clear that Y is not a good way to achieve X without downplaying Y, necessarily.
comment 5y ago · link · parent
For me personally, I use both print statements and the debugger extensively. When I'm wrangling a hard to understand bug, I'll litter my code with print statements and then once I find a problem area I'll set a breakpoint. When I have more information, I'll even set a conditional breakpoint - I can't imagine wading through a lot of print statements after a few iterations when you know exactly which conditions will trigger your bug.
comment 6y ago · link · parent
As others stated, my concerns are primarily that SQL lacks a lot of general-purpose language features (modules, namespacing, composability, no easy way to debug, etc.) which seem to be ideal for writing applications.
I would be interested to see a project written with PL/Python + PL/SQL stored functions in Postgres. PL/Python functions would be the interface between API calls and the database, and SQL would do what it is currently designed to do: straight-forward data manipulation.
comment 6y ago · link · parent
After a few months of working there my boss handed me 3 or 4 Excel spreadsheets to compare to ensure a recent change I made hadn't affected our data (we don't have much in the way of automated tests either). As a software developer, this was a deeply troubling request.
One option was to load them in to database tables so that I could perform SQL queries against the data (Postgres has COPY that works with CSVs), which isn't hard and probably the path most people should take, but I didn't want to write table definitions.
I ended up using https://github.com/BurntSushi/xsv (I am not affiliated with the project in any way). It's a command-line tool written in Rust that performs queries/joins/manipulation/basic analysis against CSV/TSV files. While not as analytically powerful as Excel or Postgres, I was able to verify the data was good and pipe out results into another file without writing any custom code, and without opening a single file.
comment 6y ago · link · parent
For instance, food choice. I can't count how many times seeing or hearing about someone else eating a particular kind of food has primed me to want to eat that food. That's a pretty obvious example of how we're programmed at a social level.
You can go further and think about longer term choices and they are pretty obvious too, given your upbringing, environment, and early personal experiences. Every action stems from biological motivation.
comment 6y ago · link · parent
Having too little is also a problem.
There is also the case where even a well-abstracted codebase will suffer because of the particular feature requested. Even the best codebases will need changes in 5-6 files, if not more, if the feature doesn't fit with the rest of the system. It is trivial for stakeholders to request something that doesn't fit with the rest of the system, where one can then declare the system 'poorly abstracted'.
100.
All People in Canada are the Same Age (1997)(math.toronto.edu ↗)
132 points · by alphanumeric0 · 6y ago · 91 comments
comment 6y ago · link · parent
comment 6y ago · link · parent
I wrote an adapter of sorts, between Django and the frontend, which is a Django base template specifically for the pages loading compiled Elm/JavaScript, that turns Django view context data into a JavaScript data structure that gets fed into the Elm code. In this way, the frontend JavaScript is initialized and ready to go without more page fetches. If I need to pass some extra data to it, I can simply add it in to get_context_data().
I like the idea of re-using everything Django has to offer but also being able to pass a few parameters into Elm and have it handle the view side. Where I get into trouble is when Elm and Django code both have to agree on data formats and schemas, but this is more my fault for not strongly abstracting the API.
comment 6y ago · link · parent
As for most things, it's highly contextual whether or not remote work is more productive. It mainly depends on the organization you work for. If the work is physical, then working remotely is obviously an impediment. If your organization is focused on creating non-physical things without much need for physical proximity to other coworkers, then remote work is ideal.
There are just as many distractions involved with a physical work place, if not more (excluding things like watching your kids) than there are at home. Myself, personally, a large part of my day in the office involves walking to the restroom, waiting for the elevator, walking to meeting rooms (up to 4-5 different spaces, some on different floors), walking to the break room (lunch, coffee, etc), being polite and diplomatic by engaging in very casual office conversations whenever one starts, handling very low priority interruptions by coworkers, and not the least of which is preparing for, and performing a commute, of which I am not paid for. Pile on a few unnecessary meetings that could easily be e-mails and you've just lowered my productivity considerably.
So in my experience, the effort involved with physical presence around others is real and takes up a considerable amount of time. I'm not saying these activities are useless, face time is important, and it's great to be social with your coworkers, and is invaluable for improving your team skills, but am I working on a deliverable during these activities?
At home, I can use the restroom, prepare lunch while watching a long-running program run on my laptop, read and send an e-mail, all in the space of 10 or 15 minutes. Consider doing the same tasks at your office. Would they take more or less time than at home?
Also noteworthy is the idea that remote work forces a person to collaborate through written word, which is not always necessary when you're physically present. Writing down your ideas has the side effect of compacting your ideas into their essential components. This turns out to be a nice way to work if you're a knowledge worker.
104.
Ask HN: Why Aren't Political Views/Affiliations a Protected Class?
7 points · by alphanumeric0 · 7y ago · 10 comments
110.
March towards a Type 1 Civilization(youtube.com ↗)
1 points · by alphanumeric0 · 8y ago · discuss
112.
Ask HN: What book would you recommend for learning basic database theory?
3 points · by alphanumeric0 · 8y ago · 3 comments
comment 9y ago · link · parent
comment 9y ago · link · parent
Isn't the primary purpose of insurance for exceptional and accidental situations? If that's true, then why am I using it for predictable monthly expenses?
120.
Wow mystery signal explained [pdf](planetary-science.org ↗)
1 points · by alphanumeric0 · 9y ago · discuss