Better HN
topnewbestaskshowjobs
Log inSign up

alphanumeric0

866 karma · joined Jun 4, 2013 (13y ago) · 205 submissions

Submissions

91.

Lambda Calculus Examples (2009) [pdf](ics.uci.edu ↗)

144 points · by alphanumeric0 · 5y ago · 18 comments

comment 5y ago · link · parent

I've been struggling with the same issue. I have a team lead who, if they have no good feedback, will fabricate an issue with my code during PR reviews, no matter how trivial. I sometimes have to take a step back and laugh. I understand some people may be under the illusion that they must give feedback no matter what, at the risk of seeming unsavvy, but it's starting to become ridiculous, and it seems more about competing with me rather than giving me genuine, constructive feedback.

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

It's always good to ask the person about the context surrounding their question, but I also don't see much harm in seeking how to do Y, for the sake of Y. What is a 'strange problem to want to solve' anyways? To me, they are all just problems.

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

I had a coworker once who was proud that he didn't know how to use a debugger. It was something about being able to statically analyze a program without dropping into a debugger that conveyed his superior skill. He only used print statements.

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

I personally would not make this choice for new projects. I only use technology that is appropriate for the domain I'm using it in. Although, I am hoping this trend encourages better tooling and more modernization of SQL.

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

Now Microsoft just needs to update their flight modeling to use blade element simulation like X-Plane.

comment 6y ago · link · parent

Research software dev here. This came as a huge shock to me when I started at my job. I work with very smart, dedicated people performing cancer research, why would they put up with this affecting their productivity? Humans really are adaptable creatures.

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

I think about this all of the time. When I pay attention to little decisions I make throughout the day it usually makes sense why I've chosen one path over the other.

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 much abstraction is a problem.

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

https://youtu.be/vL00KEB1H50 - Freeman Dyson's theory of the origin of life, as explained by him.

comment 6y ago · link · parent

This is similar to what I've done recently with a project of mine using Django + Elm (https://github.com/ereadingtool/ereadingtool).

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

I've worked remotely for several years, and more recently in an office and my gut feeling is that people tend to use presentee-ism as a proxy for deciding whether someone is producing work.

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

comment 7y ago · link · parent

Why not have discrimination protection for political views first?

comment 8y ago · link · parent

That Linus Torvald quote comes to mind: “Bad programmers worry about the code. Good programmers worry about data structures and their relationships.”

comment 8y ago · link · parent

Find a job where the people defining the software direction have experience doing so. Find a lead who has a firm grasp of how software evolves and can hand you software specifications that make sense and don't have bugs built in to them (I speak from experience).

comment 8y ago · link · parent

I'd be interested to see more at-home test kits for these sorts of biomarkers.

comment 8y ago · link · parent

Are you looking for local candidates or those that would be interested in relocating?

110.

March towards a Type 1 Civilization(youtube.com ↗)

1 points · by alphanumeric0 · 8y ago · discuss

comment 8y ago · link · parent

Thank you!

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

Hi, I'd suggest finding a local Python or Django user group and asking for help. Also it's worth joining #django on irc to ask questions.

comment 9y ago · link · parent

May I suggest taking notes by hand? There was at least one study that determined taking notes by hand forces you to summarize the information, and so you end up increasing your recall as a result. (https://www.scientificamerican.com/article/a-learning-secret...)

comment 9y ago · link · parent

A smaller ecosystem.

comment 9y ago · link · parent

Wow that's great, thanks for the tip.

comment 9y ago · link · parent

I would like to ditch insurance and find a doctor who would allow me to pay a monthly subscription fee, much like a gym membership, for preventative care.

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?

comment 9y ago · link · parent

Very easy to follow explanation. Thank you for the responses.

comment 9y ago · link · parent

Serious question, and maybe this is more for r/askengineers, but why was so much failure tolerated to successfully land a rocket upright? Is it feasible to land a rocket on its side?

120.

Wow mystery signal explained [pdf](planetary-science.org ↗)

1 points · by alphanumeric0 · 9y ago · discuss

1234567