Better HN
topnewbestaskshowjobs
Log inSign up

Timpy

2,184 karma · joined Jun 4, 2018 (8y ago) · 413 submissions

Submissions

comment 4y ago · link · parent

Fortunately for me, at my current job I don't see a lot of code that makes me say "what the hell is this even trying to do?" The most useful comments are the ones explaining limitations and why this implementation was chosen, or business rules that wouldn't be apparent in the code.

comment 4y ago · link · parent

I have been using post-it notes and a pen on my desk lately and it feels like virtual ram for my brain. Instead of holding X variables in my head I can hold X+5 or whatever fits on the post-it note. The ephemeral nature and small footprint makes it easy to scratch out brain-exstension-only notes without being tempted to start making a reference document like I would in a notebook. The note is extremely valuable to me for its lifetime, and a day later I'll glance at it, say "I have no idea what this means," and toss it.

comment 4y ago · link · parent

Isn't that what a parameterized query does? It separates the sql logic from the inputs so it can cache the query and then it accepts inputs separately. Safer and more optimal at the same time, the engine doesn't have to re-optimize the same query again for the life of the connection. If my understanding is wrong somebody please correct me, it's kind of hard to get good information on what's going on under the hood with these things.

comment 4y ago · link · parent

I learned on Java and I really feel like it slowed me down in some fundamentals of programming logic. Books were raving about garbage collection, JVM, "everything is an object"; I had no idea what any of that meant or why it would make Java "superior". Boilerplate like `public static void main(String[] args)` got me into the habit of ignoring things I didn't understand. The netbeans IDE was doing a lot of great quality-of-life stuff like handling imports for me and as a consequence I had a very poor understanding of how any of that worked. When you don't know how to write a for-loop yet things like accessor methods, pointers, or encapsulation are going to go way over your head.

comment 4y ago · link · parent

I think you would probably find a lot of naive programming and other amateur mistakes. Maybe there's a sweet spot where you want to be just smart enough to solve the problem in an elegant way but too lazy to abstract and overcomplicate things.

comment 4y ago · link · parent

I don't know at which level of detail this line of thinking stops, but it's certainly somewhere after "we don't know the pitch or rhythm for any of the notes in this piece, we can only make educated guesses." Just because we don't have a clear line where the pedantry starts doesn't mean every discussion on the topic is pedantic.

comment 4y ago · link · parent

I got into this habit long before I got into tech, I wasn't even conscious of the reason why. You're right, it's extremely frustrating when a website breaks middle-click to open in new tab behavior.

comment 4y ago · link · parent

I was once the sole report of a "senior developer", and the article nails every pain point that caused me to leave. His code had tons and tons of serious problems. The database was a mess; he insisted on storing multiple data points in a single column, querying the entire table, then regexing out the information he wanted in php foreach loops. This was because the database was so bad you couldn't join more than two tables without crashing it. He vetoed everything I tried to do to improve the codebase, really normal best practices. I read books and books and tried coming to him with sources on why we ought to normalize our data, or use prepared statements instead of the unreliable homemade sanitizer function he brewed up. He had been insisting for years that long load times were unavoidable. I was so frustrated with the situation that I didn't bother to help him save face when I fixed everything with a couple of indexes.

I spoke my grievances to the owner who listened with open ears, but he told me directly that it was hard for him to know what to do because it was outside his field of specialty and the senior dev had more experience and a long tenure at the company. I appreciated his honesty, and started job hunting immediately. I only worked under that senior dev for 7 months.

comment 4y ago · link · parent

I did Anki religiously every day for 2 years, I managed to internalize a bunch of facts about Japanese and no skills. I knew tons of vocab words and grammar points but I couldn't make a sentence in the heat of the moment to save my life. I know memorization is a part of the game, but it's not the whole game. It's like learning a bunch of music theory without actually touching an instrument.

I am learning Mandarin now and my approach is completely different. Speaking and listening are the most important, I'm letting muscle memory of mouth (and sometimes gesturing tones with my hand) be my memorization technique. Six months-ish in and I can already express myself in rudimentary ways, it's way better than my Japanese was in that time frame. I have some Mandarin Anki decks that I do in the cracks of my day but I never finish my daily cards anymore and I don't spend a lot of time on it. I'll schedule an italki lesson or listen some speak-and-repeat courses instead.

Memorizing the notes in a song isn't learning to play music, memorizing a bunch of vocabulary isn't learning a foreign language.

comment 4y ago · link · parent

The sad thing is, this is the same problem TV has had for a long time that YouTube was solving. TV programming will take 10 minutes of content and stretch it into 40 minutes of filler with 20 minutes of commercials. YouTube used to have a much better content to filler ratio in general. "It was said that you would destroy the TV producers, not join them."

comment 4y ago · link · parent

>China says Taiwan is a part of them, Taiwan says no, fair enough.

This is the part you're oversimplifying, the CCP does not say "fair enough." Taiwan has the highest democracy index in Asia, and the 8th highest in the world trailing only Scandinavia, NZ, and Ireland right now. It's not arbitrary or silly to the people of Taiwan if the CCP wants to take that away from them.

comment 4y ago · link · parent

When I left my last job the owner asked about a counter offer. My new wage was so much higher that I told him even if he offered me that much I would resent him for valuing me that highly and intentionally underpaying me.

comment 4y ago · link · parent

I know these heat waves are affecting Europe compared to the US because they don't have AC to deal with it. I don't understand why this isn't an issue for parts of the world where they also don't have AC but reach these temperatures all the time? I'm not criticizing the people affected, I'm genuinely curious what's different in Europe compared to equatorial populations without AC? Or do people die from heat all the time in less wealthy countries and we just don't hear about it? I'm really sorry to see a headline like this, I'm not skeptical or critical, I just want to understand the world better.

comment 4y ago · link · parent

More realistic example: The contractors in charge of the dam cut corners to pocket some extra money, but they'll be dead before the dam breaks anyway so they move into the valley. Land developers paid off the government to open the land for construction despite it being unsafe. Bankers gave predatory loans to those who would not otherwise be able to afford a house in the valley. The public has been misled and everybody is under the assumption that their society has reached a new age of prosperity where everyone can now live in the valley. At the last minute, the politicians, bankers, dam contractors, and land developers use their private helicopters to leave the valley before the flood crashes down.

comment 4y ago · link · parent

>no brownie points for just building random things

That's kind of what hackers do though isn't it?

comment 4y ago · link · parent

A Japanese woman explained to me that they blast the AC really hard in the summer and she keeps a blanket in her office because it gets so cold. Japanese summers are hot and humid but men still wear suits to the office. I heard about some campaigns to change this behavior while I was studying Japanese, it does seem kind of wasteful when you think about having to toss on a jacket to stay warm during the hottest part of the summer.

comment 4y ago · link · parent

If I unknowingly named my command the same as some system command and the custom command ends up earlier in my path it doesn't really cause any problems does it? I wasn't using that system command anyways, and my custom command is only going to take priority if my .bashrc file was run first.

comment 4y ago · link · parent

>The trick is to rely on decades of acquired arcane knowledge

I hate windows as much as the next person, but to be fair that's kind of how command-line life works on Linux too isn't it?

comment 4y ago · link · parent

I see where you're coming from but this kind of ends up being the worst of both worlds in some ways. I think the invaluable family support happens when you're down the street from grandma and grandpa and you've got a sick kid that needs somewhere to go while you're at work. It would be most ideal if the in-laws moved to Munich as well, although I realize that may not be a reasonable ask.

comment 4y ago · link · parent

It's seagrass, if you want to save a click.

comment 4y ago · link · parent

If I had a voluntary gap like this and I put something like "Sabbatical" on my resume and made a few notes of how I spent my time I wonder how that would go over. The last time I was in the interview process I saw my interviewer as a kind of interviewing pro, it wasn't until I got hired that I realized he was just a guy and he had really only interviewed and on-boarded a handful of people before.

comment 4y ago · link · parent

Having a walkable city makes frequent grocery shopping much more comfortable. When I lived in Osaka there was a grocery store between my apartment and my nearest station. I only had to meal plan a day at a time, my food was always fresh, I never bought more than I needed and ended up tossing out food that I didn't get around to cooking. Every grocery store was walking distance to another grocery store, all the way from my place to the downtown Namba. Grocery shopping in the states is such a pain in the ass that I don't want to do it more than once a week, and my friends have trouble understanding why I hate car culture.

comment 4y ago · link · parent

Wow this was definitely a pessimistic click for me, I was thinking "trying to replace SQL? How stupid!" But it just looks like SQL with all the stuff you wish SQL had, and some more stuff you didn't even know you wanted.

comment 4y ago · link · parent

I started with a career related to my free time hobby but I ended up hating my job and hating my hobby, my life is much better now.

comment 4y ago · link · parent

I'm sure you had an array of considerations when buying an electronic safebox, but this is the bottom line as to why I would never buy one.

As a programmer my day job is "this isn't working the way it's supposed to, lets figure out why and fix it." I can't fathom ever wanting to deal with that stuff when I get off work. A lock and key have been working just fine since the Roman times, it's relatively easy to conceptualize how it works, the things you can troubleshoot on it is a relatively short list, the UX surface area is small and predictable (it's just a lock and a key). I could go on for a long time. If something got along just fine before bluetooth and wifi existed then I never want to own a version that requires bluetooth or wifi.

comment 4y ago · link · parent

I wrote a bash script for this and binded it to some key commands in Linux Mint. Winkey+T will launch a terminal if nothing is open, or cycle through terminals if there are any open. I have other keys for other programs. I'm relatively new to Mac, looks like I need to check out Alfred.

comment 4y ago · link · parent

I don't think 1000mg is a small dose, I'm not a doctor but that seems like an extra-strength portion to me

comment 4y ago · link · parent

In the music department at my university the vocalists had to take two different foreign language classes for this reason, and they were _supposed_ to learn the meaning of everything they sang so they could capture the feeling of the song. Bullshitting your way through those kinds of inflections is the voice undergrad's version of slapping a paper together the night before a deadline.
12345
14