1,632 karma · joined May 1, 2022 (4y ago) · 591 submissions
comment 4y ago · link · parent
I think this illustrates the possible unspoken angle of the post. Is the post trying to show a surprising contrast? And if so, should I be surprised to see anyone, hijab or not, working in a family pharmacy store while also working on their MD?
With your example, a scary-looking guy in a biker jacket evokes a certain feeling (fear, worry, etc.), but then we find out that he's just a good guy helping his sister do something that's very unlike his nature - or the nature we would assume a "scary-looking" guy in a biker jacket would be about.
By this example, I would take it to mean that your interpretation is that a girl in a hijab is a scary person to worry about, but in reality she's just a good, smart, hard-working girl helping her family.
This is why I raised the initial question. These couple of extra specific details lead somewhere. I wanted to know where, because the perspective was not provided. The reader was left to make their own assumptions or draw conclusions. Based on your example, we see one conclusion: fear of people in hijabs, but that such fear is not appropriate.
I take the perspective that the hijab doesn't represent a special person nor a person to fear any more than a guy with a baseball cap on his head sideways means something other than "he likes to wear a cap in a way that doesn't block the light from his eyes".
comment 4y ago · link · parent
I know it's sort of an unspoken NoNo on HN, but given your bold comment I had to look (I thought maybe you were using confrontational comedy). But your bio: "Ethically challenged software engineer working for a major tech company you know. Used to have close to 1000 karma, got destroyed over time by hackernews cancel culture and a change in downvote algorithms. But now that the algorithm has been changed back to classic style, I'm rising up again."
There's no point arguing with you. I want so much to tear apart your lunacy, but it would do nothing here (and worse, it wouldn't change what you apparently have going on in your mind).
I will admit though, I never realized that a woman without a hijab would "chase her own self interests and hedonism".
But out of curiosity, assuming women with hijabs don't have self interests or hedonistic tendencies, what sort of clothing would a man wear if he wanted to demonstrate that he also was not self focused or hedonistic? (I ask because I want to be sure I'm never caught wearing such garb.)
comment 4y ago · link · parent
All of the descriptions of the situation are rather mundane and bland. Only two extra details stand out: "Upper East Side of Manhattan (think pooches inside Gucci bags)" and "in a Hijab and was studying medicine and was helping her parents who immigrated from Turkey".
A significant percentage of "regular" stores in big cities are owned or at least managed and operated by immigrants from very different backgrounds.
These details being present in the brief story seem to have some significance, so my question was, "Why is this significant?"
This is not a judgement on the people running the store or of people in hijabs. It's a question for the poster about why those details were significant.
Maybe it was just the ramblings of an old person (which I can say as I'm an old person). But it is still fair to ask for clarification.
comment 4y ago · link · parent
The point is, why mention it? Should we be surprised, or should we be impressed that an immigrant Muslim family was involved? I just don't know what the OP wants me to feel. It's touchy, but it is ambiguous.
Is that good? Is that bad? Is it stereotypical? Is it challenging expectations?
comment 4y ago · link · parent
If you mentioned that the guy at the counter of the CVS was wearing a baseball cap, we would wonder why that was a significant detail, or maybe "what team was on the cap".
Saying someone had a hijab is clearly leading with some meaning, but the post didn't go into that detail. I can only guess that it implied something related to Muslims; but I don't even know. They didn't expand on that. So we are left to wonder WHY they mentioned it.
comment 4y ago · link · parent
comment 4y ago · link · parent
Unless one flies business class, there is often not enough space between seats to comfortably use a traditional laptop. With a tablet, you can at least do something.
The other big thing is that iPad Pros have very high screen brightness. For working outside it's a big benefit, as most portable laptops don't get that bright. The M2 Air and the M* Pros do, but you can't just pull the screen off when you only need a screen.
The best of both worlds, imo, is to have an M2 Air and an iPad Pro. When you're at a desk to do real work, you get the full laptop benefit plus the big iPad Pro as a second monitor. When you're on the daily outing, you take either or depending on your expected need. But you do now have a $5000 setup, which is more than many people would like to spend for a little more flexibility.
If Apple hadn't done such a great job with the M* Air, it would be easier for me to consider some other vendors' 180 degree folding laptops. But the silence of my Air and the amazing battery life are hard to give up.
comment 4y ago · link · parent
I have previously setup a Hetzner server (EU) with openVPN and Code Server, and then I was able to really have the benefits of pretty secure dev environment that was always on, easily accessible, and powerful. Of course it required a connection to use, but the bandwidth requirements were low. Latency requirements were more important, but they weren't as harsh as if you were using a remote desktop.
comment 4y ago · link · parent
Do you know of a good site that focuses on browser extension reviews and discussions? I now realize I could probably find things which would improve my life, but I don't feel like doing a random walk through the general extension page of Firefox.
comment 4y ago · link · parent
In any given city there may be lots of dry cleaners available. Some will be much better than others (service, performance, etc.). Some will be much cheaper than others. Some may be the perfect combination of all these things.
Unfortunately, we often don't know where the best one is. And perhaps because of another person's suggestion "affiliate marketing", it is now virtually impossible to search online to get actual reviews of things (as there are now more SEO-d review sites which are just thinly veiled affiliate marketing sites).
So we use the service we see nearby or stumble upon. It may not be the best, but we don't really know better.
The same applies to so many things in life, business or otherwise (people, friends, relationships). Thus, yet-another-monitoring-service can succeed if it gets enough customers, even if there are much better services out there.
comment 4y ago · link · parent
The target markets haven't increased in size, unless you're in developing countries with upwardly mobile populations.
So more affiliate marketers just means more duplication of noise, with everyone gaming ways to get the same business (or direct the same business to your companies).
If I have to watch another NordVPN ad baked into a youtube video, ...
comment 4y ago · link · parent
As long as you're not unhappy with your day job, that's great. If you are unhappy, then you have a passion project/domain that you already have good progress in.
It's easy to give advice, so I'll give some. Make a 6 month plan toward quitting your day job (reducing financial burdens, winding down unnecessary expenses, generally preparing for no income). Make some potential plans for how you might fill your days with regard to your audio work. If you don't do this step, you may find yourself feeling lost or aimless and consequently not as happy as you would have expected.
But here's the best part, I think: start using some of your free time to go to conferences and shows where audio tech is a feature. Show some of your stuff, or at least talk to others about it. Where this could lead is vast and somewhat unpredictable, but it might be a lot of fun and it likely could lead to something solid.
Meanwhile, focus on one or two of your projects and try to get them polished enough to setup a storefront and promote (assuming you're not already doing this).
Maybe it never reaches your current job income, but it might get close enough that you decide it was worth it. And if not, there will always be more jobs waiting.
comment 4y ago · link · parent
Also, in my experience, Pythonistas tend to be more resistent to paradigm changes. So often I have heard, "Why would you want to do that?", or "This works fine as it is.". Not that I'm a fan of list comprehensions in Python (I think they're awkward and ugly compared to Ruby collection operations), but Python codebases I have had the displeasure of working in had lots of nested loops, mutations everywhere, copy-pasted code, and 30+ line methods. Trying to encourage single-responsibility, composability, less OOP, and more pure functions is like shoveling water uphill.
With both Ruby and Python you do need to be a bit thoughtful about unnecessary collection copies (which you would tend to favor when writing pure functions); but often you have a good sense of how large a volume of data you are handling and where copies will be particularly slow or heavy to do. When necessary, you can have an impure function that mutates input data, and at least in Ruby you can warn callers of the impending mutation by adding the ! to the function name. update_order!(order).
comment 4y ago · link · parent
I did elsewhere in a top level comment go into detail about why I thought TFA wasn't good. https://news.ycombinator.com/item?id=33722399
comment 4y ago · link · parent
TFA example misuses exceptions as just another return value, requiring the caller to have additional code to handle "normal" and "other" return values. So as we and others seem to agree, that is not even a good example. At this point we kind of get stuck in the whole discussion about exceptions and how to handle them. This is probably a hot area that I should avoid getting into, but here is an _example_ of how to handle errors without having exceptions (and without impacting execution states): https://go.dev/blog/error-handling-and-go
Function application, where you apply a function to a collection of data, requires that the application function returns a value (and does not throw an exception). As a Python example (not the prettiest, but it's Python...), imagine you have a list of strings which you want to strip the leading and trailing whitespace.
x = [' a', 'b ', None]
list(map(str.strip, x)) => TypeError exception because you can't strip on None
To work around this, you have to do something like an anonymous function to validate your inputs before calling strip:
list(map(lambda s: s.strip() if s is not None else None, x)) => ['a', 'b', None]
In this case it's clear why Python throws an exception, and we were able to avoid it by validating the input during the mapping. But if a normal behavior of the mapped function was to throw an exception as just another type of result, we couldn't prevent/avoid that, and we would either not be able to apply the timer() function to a list of inputs or we would have to have a form of map() which also accepted an exception handler function and then somehow wove its results into the normal map output. Such a thing may exist, but I don't know Python well enough; and if it does exist, it would only make the language even uglier ;). [Edit: on second thought, the solution would be to make a better_timer() function wrapper which called timer() and handled the exception, then more appropriately returned [time_remaining, complete_flag]. Then we would pass better_timer() to the map().]
There are even nicer benefits to purity if you are using higher order functions that may be called later/elsewhere. Instead of taking data through some series of transformations, you take data and build a series of operations which can later be used in a transformation. Then somewhere more toward the edge, well beyond your core business rules, you execute the series of transformations (functions) on your starting data to get an end result. This approach can't be used all the time, but there are cases where it works well. But like the map() example above, if you have to also handle exceptions as normal results returned from functions, then you have to have additional exception handler functions that you carry around with the other functions in case they are needed. Yuck.
comment 4y ago · link · parent
A pure function has no side effects. Maybe it takes an input, and maybe it returns a result. But whatever it does internally has no affect on the outside world. Raising an exception is definitely a side effect.
Worse yet, in TFA example it wasn't even necessary to use an exception in place of a returned state. I would argue that the exception example was, irrespective of functional vs imperative principles, a bad use of exceptions.
comment 4y ago · link · parent
A better example, if one wanted to keep a single function pure and still keep (two) states would be to return a tuple of (current_count, is_expired). Further, since it uses zero as the implicit boundary to determine when the counter is complete by counting down from the provided value, the function should be named countdown_timer() or something more descriptive.
Honestly I'm not sure who this little article was written for. The references to C++ were irrelevant. The OOP Python example, however, was a pretty common example of how Python people write code. It's a shame, really. We should (edit: not) have to deprogram people to get them to choose something more like the latter "functional" approach over the former pointlessly-OOPy example.
comment 4y ago · link · parent
I now wonder if pre-internet news was as prone to these kind of mistakes since it took so much longer to publish news (thereby giving sources more time to confirm things).
comment 4y ago · link · parent
In my limited experience in gaming, we were reminded to periodically ask about game mechanics: "But does this make the game more fun?"
Simulating realism is cool, but reality is full of boring or unpleasant stuff. Why suffer that extra? "Oh no, it seems you cut your finger while making dinner. Now you have an infection! And since you didn't eat dinner, you are now faint and must lie down. You need a doctor! Oh no, you _were_ the doctor!"
comment 4y ago · link · parent
29.
Ask HN: What's your favorite video game soundtrack?
1 points · by z9znz · 4y ago · 5 comments