HNHacker News
TopNewBestAskShowJobs

professoretc

475 karma · joined August 20, 2013

submissionscomments
professoretc··on Should traffic lights be abolished? (2021)
The only roundabouts I've seen in CA with stop signs are the big ones (like the "traffic circle" in Long Beach) where the roundabout is almost a street unto itself.
professoretc··on SQLite Doesn't Use Git
> ...and Git was designed specifically for the Linux kernel development workflow

Yep. One thing I like to ask is, does your project have millions of lines of code, being worked on by thousands of developers scattered around the globe? If not, you might want to think about whether Git is really the best fit for your needs.

professoretc··on Ask HN: How do you and your spouse handle big income differences?
That's the missing ingredient that can make merged finances work: both partners have to have the same respect for money and not spending it unnecessarily. My wife grew up in a wealthy household where the attitude was something like "Who cares if you break/lose it, you can always buy a new one/pay someone to fix it." Whereas my family was fairly frugal, always tried to make do with what we had before buying anything, etc. This has caused some friction since she's been staying home while I've been working.
professoretc··on The fall of Reddit: Why it’s quickly declining into chaos
moderatepolitics does this, not because they want to, but because Reddit threatened to ban the entire subreddit if there was any discussion of trans issues.
professoretc··on “Google” programmers. How one idiot hired a couple more idiots
I remember typing in programs from books and magazines. Although this is theoretically no different from copy-paste, I wonder if the slowness of the process gave me time to think about what I was typing. "Why is this bit here? What happens if I leave it out? Could I replace this with something else?" That's something you don't get today, when moving code from one place to another takes a couple of key-presses.
professoretc··on Correct Backups Require Filesystem Snapshots
I've done it with SQL Server, but it wasn't automatic. I had to manually repair or remove the DB pages that were in use when the backup was made.
professoretc··on Nvidia releases open-source GPU kernel modules
Here's the email chain between RMS and Bruno Haible, author of CLISP:

    https://sourceforge.net/p/clisp/clisp/ci/tip/tree/doc/Why-CLISP-is-under-GPL
Apparently the situation was that CLISP was distributed as `lisp.a` and `libreadline.a` (with source for Readline included) and the end-user linked them together. Haible offered to write a `libnoreadline.a` library, exporting Readline's function but not providing their functionality, but RMS insisted that the result would still be a derived work of Readline.
professoretc··on Master’s Degree in Computer Science
That's how I do it, too. I give students a script which compiles their code with the test code (which is provided to them, if they want to look at it) and then runs it inside GDB (in case it segfaults or throws an exception). All of the tests are documented and, on failure, print an error message describing what was expected, what was actually returned, and include a URL linking to a fuller description of what might be going on.

In the future I'm hoping to run their tests inside Valgrind to check for memory leaks, enable the various sanitizers, etc., and I also need to figure out a way to check for conformance with my code formatting standard, but for right now it gives students perfect knowledge of what their grade will be when they submit.

professoretc··on TX-6 – Teenage Engineering
Agreed on both features and the crazy price. I've been using a TC Helicon Blender to serve as a stereo mixer + AI.
professoretc··on Using Windows after 15 years on Linux
Heh, the point about multi-monitor setups breaking window layouts really resonated with me... on Linux. I move my laptop between a dock in the office and a dock at home, and it basically never docks with the correct monitor layout. Sometimes only the laptop screen is recognized, and I have to physically unplug/replug one of the monitors. Sometimes one of the monitors is on, and the other is not. My windows are never in the right place, and always have to be moved to where they should be. I have scripts that try to configure the monitor layout, but they randomly don't work. At home, my machine always hard freezes when connected to the dock (same model as in my office!) and has to be rebooted.

Now, the lesson here is not "Linux sucks" but rather, avoid Nvidia.

professoretc··on Show HN: Random access noise – counter-based pseudo-random number generator
If I'm not mistaken, SplitMix64 does this, too. Its update function is a simple addition, so random access is just a matter of multiplication. All the randomness is provided by the mixing function (which uses XORs, bitshifts, and multiplies).
professoretc··on Teaching is a slow process of becoming everything you hate
I usually can tell which students will do well by how they answer ambiguous questions: they'll answer both ways, both the easy way, and the hard way.
professoretc··on A short conversation with a bank
> get treated by the wrong doctor at the right hospital!

In California, this shouldn't happen. If you go to an in-network hospital, all care providers you see are required to bill you at the in-network rate.

professoretc··on Teaching is a slow process of becoming everything you hate
> “write a method named NAME that takes in XYZ parameters and outputs exactly in QRS format”.

That's a pretty realistic requirement, though, isn't it? If you're writing a class that's supposed to interoperate with other systems, it's not like you can just name things whatever you feel like. They have to fit the expected interface.

professoretc··on Teaching is a slow process of becoming everything you hate
> I ran my class like a job... Deadlines are deadlines.

We were having a conversation at my college about deadlines at some training thing and someone pointed out that almost no job is like that. That movie scenario where the guy has a big presentation, but it's also his daughter's dressage recital or whatever, and if he misses the presentation he'll lose his job? That doesn't happen. In the real world, you just say "I can't do it that day, let's reschedule for next week." and that's fine. Most real world deadlines are soft.

professoretc··on Teaching is a slow process of becoming everything you hate
> it seems possible the teacher's instructions were confusing.

Yes; I've been on both sides. I've written assignments that I thought were clear and unambiguous, only to find that a significant number of students misunderstood what I meant. They weren't intentionally trying to make the problems easier, they just weren't sure what I wanted. (And, of course, who is going to interpret an ambiguous problem so as to make more work for themselves? A few students will do it both ways -- the easier interpretation and the harder one -- but most won't.)

And on the other side, I've taken continuing education classes taught by other teachers where the instructions were confusing, ambiguous, or sometimes just plain impossible to follow ("You'll find the answers to this quiz in the article you just read." but the article was revised and now uses different terminology from the quiz.)

professoretc··on Car dealerships don’t want cash, they want to give loans
That's mostly because it's slow and most banks charge a fee ($35 or so). The only time I've used it is wiring money to the escrow company when buying a house.
professoretc··on Updated rules on preparedness for nuclear explosion
I picked the worst time to build a deck over the fallout shelter in my backyard.
professoretc··on Why Won’t Anyone Teach Her Math?
My wife took a child development course last semester and her instructor said the opposite: the school doesn't want me to fail anyone, so here's a bunch of makeup assignments and extra credit options.
professoretc··on Why Won’t Anyone Teach Her Math?
> There's also college exams that have a similar function (CLEP is the acronym I think?) but they're not really highlighted as a preferred path to students.

That's correct. But not all schools accept it, and if a school accepts it they may not accept all the different exams. (CLEP exams mostly cover general-ed subjects.) Most schools also have an in-house option to test-out of classes, but it may be up to the individual departments to determine whether they want to allow that. Schools may also disincentivise testing-out in other ways... When I wanted to test out of the intro-to-computers course which was, at the same, required of all students, I had to pay the normal per-unit fee (as if I had taken the course normally) plus a special "challenge fee".

professoretc··on My best estimate is gas stoves decrease life expectancy by 53 days on average
You don't have to wait for the water to boil before adding the pasta. Add it to the cold water; it will work just fine.
professoretc··on In defense of complicated programming languages
> The translation provided by the compiler is the closest thing we have to a formal semantics, it's natural to rely on it.

Which translation, though? Depending on your compiler flags, you may get very different translations, sometimes (if your program contains undefined behavior) even with dramatically different runtime effects.

professoretc··on California Considers Doubling Its Taxes
Yep; I knew a few small businesses where an employee got cancer or whatever and their insurance company let them know that their plan would become significantly more expensive and "hinted" that, to avoid this, maybe the employee in question could be fired for some reason...
professoretc··on California Considers Doubling Its Taxes
> it’s unknown that they will add that sum to my salary.

Well, if they didn't, you could just change jobs. The old benefit of working for an employer that paid all of your premium would be gone, so that wouldn't be a reason to stick with them.

professoretc··on Amazon packages pile up after AWS outage spawns delivery havoc
It's finals season, so all the students taking online exams on Canvas had a fun day.
professoretc··on TIL the assumption that string length does not change when upper-cased is false
We even already had something like this in pure ASCII: "a\bc" has "length" 3 but appears as one glyph when printed (assuming your terminal interprets backspace).
professoretc··on Selecting a programming language can be a form of premature optimization
> But two, C++ invites pedantry. I heard endless discussions about "ooh, template meta-programming", "struct or class", "but is this idempotent", "you should be using move semantics", "why on earth is this a unique_ptr".

Interestingly, I've consistently had the opposite experience. In C++, when I ask, "how do I do X" there will be a few different options, but pretty much any of them will do. As long as you avoid things that are definitely UB, you're fine. In Python, I'll find endless religious arguments about which is the most "Pythonic" method. Whenever I try to just hack out Python code to just get things done, I always feel like I'm being judged, because usually the quick-and-dirty method is far from the most Pythonic.

professoretc··on Richard “Lowtax” Kyanka, creator of Somethingawful, has died
I remember their sysadmin posting from the colo facility while the post-Katrina chaos was going on.
professoretc··on Organized retail criminals are making the most of San Francisco’s urban chaos
> $FOO is NOT RECORDED AS A CRIME if the apprehended suspect is not convicted.

I'm not sure this is completely correct... In my home town, the police used to send a list of arrests to the local paper, who would print all of them in the weekly issue. How many of those translated into convictions was something I wouldn't even know how to find out, but they certainly were able to publicize their arrest rate.

professoretc··on NFT's aren't the answer to the problems of digital art
But the actual image data isn't stored in the token, just its URL (usually). So what you own is not the image, but rather, whatever resource resides at a particular URL, with there being no guarantee that that resource doesn't also live at some other URL.
← PreviousPage 5 of 8Next →