Better HN
topnewbestaskshowjobs
Log inSign up

rtpg

21,281 karma · joined Nov 23, 2012 (14y ago) · 6,748 submissions

real name: Raphael

blog: https://rtpg.co

email: raphael at above domain

Submissions

comment 7y ago · link · parent

I spend my day on CRUD apps and disagree.

Often big CRUD apps with a lot of business logic tend to have higher level, "logic flaws" that generate bugs. In those cases having something like `rr` to trace the origin of certain values would be a godsend.

I think these apps tend to be very wide in breadth, where instrumenting the entire system can be hard. Languages like Python (with `pdb` being a single-line in the middle of a program) are great in these scenarios because it allows for a pretty exploratory strategy when debugging.

Unfortunately there's a lot of people who do "print statement debugging" because the tooling really isn't practical in most places, but it would definitely be useful.

comment 7y ago · link · parent

reading the GuileEmacs thing it sounds like the project was a success? Is there pushback against using this upstream?

comment 7y ago · link · parent

Based on that description (haven't used D), it seems to cover similar grounds. But Rust's move semantics means that for message passing in particular you can protect against "use after send" issues.

https://doc.rust-lang.org/book/ch16-02-message-passing.html

comment 7y ago · link · parent

+1 on this. Keynote is very good, but Numbers gets functionally useless very quickly, and Pages is.... rough for anything that isn't "school essay". So fidgety!

Turns out word processing is hard.

comment 7y ago · link · parent

Phone number deduplication is an easy way to increase cost on the spammers

comment 7y ago · link · parent

Beyond the merits of "don't do business with anyone in China because of the actions of its government", I think that YC has not been known to take such strong ethical stands in the past.

The simpler explanation is probably that the business climate is super risky if you're the foreign partner in any sort of JV with China, and they thought they could work through it through ... charisma and sweat and tears. And it turns out that in fact it is hard even if you're some techy VC or w/e.

I think few question what the gov't is doing, but the question is more whether YC in particular was affected by actions in the past year that caused them to reverse course.

comment 7y ago · link · parent

well the counterpoint is that between 2016 and 2019 there _wasn't_ really something useful around the corner in terms of Mac laptops.

Unfortunately the times of "the next thing is basically strictly better than the previous thing" have disappeared

comment 7y ago · link · parent

I didn't know that this product existed, it's interesting to see such a thing be around in the age of bluetooth speakers:

https://www.amazon.com/Marpac-Classic-White-Noise-Machine/dp...

It's a fan in a box, with a certain shape so that when the fan is spinning it ends up generating a nice sound.

Thanks for the info

comment 7y ago · link · parent

> Theoretically, the brain can get used to certain kinds of regular noise and filter it out, and then, if the disruption is a small sound that occurs irregularly... if you add constant white noise that's louder than the sound, then the sound should get quite literally lost in the noise.

Just an FYI, while this is basically true for neurotypical people, for some people (for example those with ADHD or who might be on the autism spectrum), there's difficulty filtering, so this ends up just adding cognitive load rather than accomplishing a filtering effect.

To use a dumb visual analogy, imagine you tried to hide some carpet stains by putting another rug over it. Some people can partially see through rugs, and so now they have to deal with the rug _and_ the carpet stains.

Of course this stuff is still worth trying out, ultimately a lot of these kinds of things are deeply personal, and it's pretty easy to try.

comment 7y ago · link · parent

I agree with sibling, but:

> As people got educated and had more free time, they may have found other venues to communicate and exchange ideas.

The point is that in this particular case it was the coffee shops. They were popular, they were profitable, they were lead by “literate people” (something to think about).

It’s interesting to think about why this thing happened in these kinds of places. There are other examples of revolutions instead being triggered from religious places, from work places, from battlefields... the “non-uniqueness” is debatable.

Even just the tidbit about state power being unable to outright shut these down. There are so many axes you can go down when thinking about it. There’s the power struggle itself, both between state and capital and between state and the people (which ones though?). There are difficulties of empire. There’s so much.

Good stuff is available here

comment 7y ago · link · parent

- format strings

- mandatory keyword arguments

- multi-dict splatting

- nicer yield semantics for generators

- Fixing system-specific encoding ambiguities

- dataclasses

- inline type annotations

- better metaclass support

- more introspection tooling

- pathlib (for nicer path handling)

- mocking pulled into the standard library in a cleaner way

- stable ABIs for extensions

- secrets handling

- ellipsis instead of pass (yeah who cares but I care)

- lots of standard lib API cleanup

All of this is very helpful for making clean applications. But I would say it's _very_ helpful for making good libraries as well. This stuff is about having a strong language foundation to avoid plain weirdness like the click issue .

Obviously it doesn't kill all of them, but there used to be even more of that kind of thing all the time. Library issues would basically get exported to its users, all basically due to language problems.

comment 7y ago · link · parent

So you don't have to deal with it until user data includes _any non-ascii character_ (including emoji, weird spaces copied from other stuff, or loan words like café)

"Dealing with unicode" is really just about dealing with it at the input/output boundaries (and even then libraries handle it most of the time). But without the clear delineation that Python 3 provides, when you _do_ hit some issue you probably insert a "fix" in the wrong space. Leading to the classic Py2 "I just call decode 1000 times on the same string because I've lost track"

comment 7y ago · link · parent

One "truly retro" experience I had recently at the Computer History Museum was messing around with QBasic. The instant feedback of the documentation, in particular, was really powerful.

comment 7y ago · link · parent

> And thus, an office in which this "set of activities" is not permitted is an apolitical office.

Organization of people involves power dynamics. Maybe you can make an argument that something like holocracy generates an apolitical environment, though I think that doesn't hold up experimentally.

Management deciding whether or not to increase vacation days is a political act. Employees deciding whether they want to stand together in negotations with management or handle stuff individually is a political decision. Hell, trying to push for more/less meetings in day to day work is a political act.

It's pretty hard to have any sort of organization without the political aspect coming into play immediately.

comment 7y ago · link · parent

fighting against the creation of a union is just as a political act as trying to create one (as an example).

Saying "oh we should keep the office apolitical by not having a union" is a political act. Saying "oh we shouldn't complain about the kind of customers our emplyoer has" is a political act.

Acting in opposition to political acts is in itself a political act. The apolitical thing to do would be to _not intervene in others' political processes_. If mgmt let its employees organize labor actions with the same willingness as a movie night, then they would be acting apolitically.

comment 7y ago · link · parent

related: are there any good sources on how you design for out of order processing? I have done a lot of "intro to electronic circuits" stuff that lead to a really basic register-based CPU, but when we get into stuff like OOO or branch prediction stuff I feel like I haven't really seen much on how it can work while keeping your sanity from a design perspective.

comment 7y ago · link · parent

- When you open a door, its hinges don't provide nearly enough friction so it starts closing immediately, instead of being able to be propped open (like when you're cooking and holding other stuff so need time to take stuff out)

- The drawers are all basically impossible to use without fully opening the door, but (see above) fully opening the door makes it swing back super hard as well so now you're fighting two different parts of your fridge at once

- It's huge but somehow the space inside the fridge is super small compared to comparable fridges. Probably a shelf thing.

- Some of the design leads to little cracks that are hard to clean up without pinching yourself with the door.

It's basically door-related stuff but it's also stuff I don't experience with my ... $200? Fridge from Hitachi. I feel like my own fridge is fine. It's a fridge. Nothing to write home about. It would probably get a wirecutter recommendation if they did "small-ish fridges for 1-2 people"

comment 7y ago · link · parent

> I’d like to know more about the driving factors - is it purely a matter of cost?

My thesis on this is that people do what they can get away with. If you think you can get away with really low quality stuff, you do that.

Definitely helps to have a housing shortage, where there's probably no other choice anyways. So everything is cheap (since there's no incentive to make a nice place. You're gonna get someone in the apartment anyways!) and so nobody actually knows what "nice" is and just assume it's normal to be able to punch through your door.

comment 7y ago · link · parent

I didn’t mention this in my original post and I kinda wish I did now, seeing the replies.

I am American. I grew up in Texas and generally feel at home with other Americans (to a degree, politics is weird).

At times in my life I’ve thought about moving back to the US and I still thought that it was easier to pay the quality of life costs of being a foreigner in other countries (being half illiterate and having a hard time with banking and real estate) rather than deal with the quality of life gap in the US.

My life would not be bad in America, but I feel like it would be less comfortable. In the future the feeling of belongingness might outweigh this, but right now that’s not the case, and it makes me sad

comment 7y ago · link · parent

This is a bit flame bait-y but I really feel like America is getting a super Galapagos effect compared to the rest of the world. Everything is super different and weird and kinda bad, and nobody seems to notice.

I go to peoples houses in the US sometimes. Some of these houses are multimillion dollar homes. The doors are all terrible. The plumbing is crap. The furniture just feels bad. The cheapest studio apartment in Western Europe or Japan ends up with better infrastructure than the $2M duplex in California

Then you get to grocery stores, and you have to go to the “fancy places” to even get the baseline of quality you see in the rest of the developed world. All the chocolate is bad.

My dad has a really expensive american-made fridge. It sucks. The UX is awful and it basically just looks shiny.

Maybe this is the result of 30 years of wage stagnation. I like to think it’s the result of people not really traveling abroad (reasonable! It’s expensive and far away). People don’t get that so many other places are just nicer and have higher quality things for cheaper.

There’s some quote about how somebody was super poor when growing up but was fine about it because they didn’t realize it. I think about that all the time when looking at some stuff in the US.

comment 7y ago · link · parent

Sure, but there could be DMCA-style “you’re not liable, unless we point it out to you and you don’t act on the information” mechanisms.

It feels super reasonable to ask for telecoms to blacklist stuff after complaints

comment 7y ago · link · parent

Typescript has the `never` type, which is meant for values that are never used. You can combine that with other stuff to get something _like_ `unreachable!` but it's a bit hard to get working right to be honest.

comment 7y ago · link · parent

related: async/await is also amazingly useful for game development. Stuff like writing an update loop, where `yield` is "wait until next frame to continue".

This can let you avoid a lot of the pomp and circumstance of writing state machines by hand.

comment 7y ago · link · parent

Just like when developping an API, you build changes in backwards-compatible ways for the most part.

If you have to make a backwards-incompatible change, you probably need to make your service support two different API versions for a while, and hunt down services that are calling old stuff for a while.

This is basically how you can move forward on improvements without coupling "improve this microservice" to "update every single other microservice that is calling to it".

Though I believe part of the theory with microservices is that since you are working on such tiny surfaces, most services will never need to roll out a backwards incompatible change

comment 7y ago · link · parent

Though I’m against micro services for lots of reasons, there is truth to the “library update” problem

If you update the business day library, then you also need to bump the version of this lib used in your 100+ “real services”, or risk some services seeing differences on this front.

Imagine a bug from different logic due to version differences between libs in a distributed system. Would be a mess to debug.

If you say “oh well services should just install latest” now you have the distributed monolith problem. A new version of a library could get pushed out but have a regression bringing down half your services

comment 7y ago · link · parent

A very good example of "win-win" scenarios that aren't just "isolate the smart kids" are classes built around group work and projects.

Group work means that more successful groups can probably get pretty far on their own without needing much teacher intervention, freeing teacher resources for less successful groups.

Group work also means students can help each other, and the "teaching" students can get experience in passing knowledge to others, the "taught" students also get attention and help from their peers (hopefully in ways that improve student relations more than harm them)

This kind of work can also be a bit freeform and usually ends in a "real" work product, so students can feel pride in making a thing, and in being in charge of what is going on.

The difficulties are mainly around evaluation and resources. It's hard to generalise evaluation of this in the same way as standardised testing does (which is more of a problem for means testing than for actually educating people).

Teachers also probably need to be more prepared for these kinds of things, because students will end up in a variety of situations that the teacher might not have ever seen before.

But the elephant in the room is just money. Try to do a robotics thing, and now you gotta buy a bunch of equipment. Same for lots of stuff involving computers. In other domains it could be easier (I had a math class that worked on this model, and the costs were basically the book and the calculator), but there's a need for money. Too many teachers are already fronting relatively inexpensive stuff like stationary.

comment 7y ago · link · parent

> These harms would be magnified if kids who don't fit in with the crowd had even fewer options to escape.

The idea isn't to just get rid of private schools, but to take money that goes into that and finance better public education (which can still include ways for people to move around if needed!)

Having a separate world for the rich means that kids who "don't fit in with the crowd" but don't have wealthy parents won't have any way out.

In an alternate world where more money is invested in the public system, having wealth would no longer be a necessary requirement for having access to alternatives.

comment 7y ago · link · parent

others think the laws are fundamentally unjust.

Even others (a plurality I think) don't have strong feelings on the laws, but know one of the following: - the executive has selective enforcement rights - (at the time) congress + the WH could change laws! - the laws were written with an understanding of selective enforcement

and so rightly recognized that this was a bad thing that could be made right.

There is an n-sided die about how people see this problem, and people acted in accordance to it. And yeah, it means that some sides don't believe in the legitimacy of other sides. They're incompatible after all.

Besides, it's not the point. The point of the game isn't to make a set of meta-rules for defining what is morally right. It's for, on a case-by-case basis, to say "this thing is good/bad" and then act on that.

I don't need to be able to answer every moral hypothetical to be able to say that _this one specific thing is bad_. To bring it back to HN, it's a P=/=NP problem. I can say one thing is good/bad without providing the full strategy for determining every thing. And then we work from there.

comment 7y ago · link · parent

How is this a problem? Like.... seriously.

This is the whole point of everything. If you believe strongly in a thing, then you should fight for it. And other people in society will judge you for it (rightly so!)

So yeah, you decide that you care enough about "sanctity of marriage" so you decide to not sell cakes. So everyone who disagrees with you boycotts your business. Others believe that sexual orientation is such an important thing that they make it illegal for you to do this! This is how stuff happens!

There isn't some sort of rules-based pre-judgement for this sort of stuff. It gets played out over time. And you're responsible for your decisions in this front.

comment 7y ago · link · parent

But also other company employees are protesting! There have been news stories for multiple employee protests (including Delta refusing to deport some people)

Maybe you and GP are not seeing the stories because the outlets you read choose not to cover this

1
104105106
225