skysight-inc/HackerNews huggingface dataset:
> - "Often you find the same switch statement scattered about a program in different places. If you add a new clause to the switch, you have to find all these switch, statements and change them. The object-oriented notion of polymorphism gives you an elegant way to deal with this problem." -- fair enough

Even that seems like it could easily be way overkill e.g. if you have multiple switches which, say, generate a label from an enum, the first step is probably to add a utility function / method, not to migrate the whole thing over to polymorphism.

Although there is one thing to be said about context:

* OP works in C#, whose enums are literally useless (they’re like C’s)

* apparently even in Java (which at least has type-safe enums even if not sum types), `switch` is unable to check for completeness
>He is now best known for the unusual spelling of his name, pronounced 'Potatoes'.
Responses here really speaks to OP's question:

(Reddit.com thread) "If I am willing to put in the hard work, What in demand skills can I learn to gain $6k-$10k per month??"

https://www.reddit.com/r/Entrepreneur/comments/qycxmk/if_i_a...
I think this depends on how well they do liveness tests: it's expensive to have guards checking everyone's hands (but certainly not prohibitively so if you have that level of threat) but it'd be a lot cheaper if your sensors are fairly good at raising an alarm to attract scrutiny.
Oh I get the purpose of the article and it got ME excited. However, I'm concerned about other voices which may speak out against it in the context of my original reply.

It'd be interesting to follow this thread and see if this sentiment can be heard here.
Exactly, just wanted to link this as well.

There's of course nothing wrong with pointing out already known security flaws, but it's good practice to mention when this is a well known thing and reference prior work - which the post by kraken does not do.
> I've often thought about going back to manual labor to get into the trades

Easy to pontificate what you don't do. I think a substantial wage cut in the interim is a serious concern and sussing out all the options is not tantamount to "making excuses".
There are a few key points that you are missing that are worth pointing out:

1) Have your resume redone by a professional. You're obviously trainable and dedicated. A good resume will enhance these things. You don't need to pay huge amounts for this service. Good ones start at just about $100.

2) Don't try to apply for jobs that are drastically above your skillset, especially if you are trying to change careers. Skills in knowing what things to put in each spot on internal forms are tough if not impossible to translate to tech or any other industry. Skills in recognizing where processes can be improved or streamlined translate better. Your resume should highlight and omit the right things. Instead, target positions where you have ~80% of the required skills already and are in the process of learning the other 20%.

3) Consider starting a side business. If you look around there are countless small things that can be done on the side for decent money. Some can even be done with only a smartphone. Others just require a computer. This _could_ end up being more lucrative than a degree for the same amount of investment. The one warning here is don't fall for any "get rich quick" schemes. If it sounds too good to be true, it very likely is. Once you decide to do something, realize that it may take time to build up the income stream. 4-6 months is fast. 9-12 months is more common. If you want to make this about the skills that you are trying to learn then all the better.
There is a lot of debate here with wood vs concrete with merit on both sides. I can see using concrete for the foundation but just me personally, I am going with a steel Quonset hut on a concrete foundation. They are cheap, durable, easy to install. These would probably be ugly in a city I suppose unless someone could find a creative way to make them look nice. I am waiting for steel to come back down in price. Two thirds of it will be a workshop/garage. One third will be insulated with either closed cell foam or aircrete, I haven't decided. It gets cold here. Quonset huts are also much less expensive to move around. I'm honestly surprised Los Angeles has not used Quonset huts for the affordable housing or even homeless shelters.
You think that's bad? Spanish train operator Renfe's website [0] (which has been "redesigned" time and time again to much fanfare over the years) is incapable of offering tickets for any journey between two stations if there's no direct train between them, unless a specific option changing trains has been manually defined on their system. Neither will it display commuter train services, even though stations served by commuter trains do appear in the drop-down.

[0]: https://www.renfe.com/es/en
Lokinet and Session is pretty interesting, onion routing and Signal fork respectively. And as a user you don't even notice any of the crypto except for your seed phrase.
I am working on adding that on actually, its a bit more complicated due to SQL files being able to contain multiple tables, but I believe it will work.
This is a great example of why the "clean code" movement is so destructive. Writers (bloggers, textbook authors, professors, whatever) can very easily take advantage of inexperienced developers who are dying for someone to tell them what is and isn't the right way to do things, and virtually all "code smell" style blanket rules are detrimental to learning. In this case and in many other cases, the rules doesn't tie back in any way to what the code actually needs to do.
The uniqueness of fingerprints is also questionable.

e.g.: https://mathblog.com/are-fingerprints-unique/
I've been quite happy with my Remarkable.

The only thing that annoys me is not having buttons to turn pages. Swiping over a touchscreen is counterproductive and Remarkable sometimes fails to recognize the gesture.
https://en.wikipedia.org/wiki/Fruitarianism
Just one, esbuild for JSX and bundling.
The population-weighed density - the density experienced by the typical American - is also much higher than you’d think. For example California is expansive and empty-seeming on paper, but half of the state lives in L.A. Population-weighting makes more sense than dividing the gross population by the gross area.
What would Taylor Swift do right now? I can rip all of her audio off of Spotify and use it in my movie without her permission even though she owns the music.

She would try to stop me - maybe send a cease and desist, sue, or otherwise seek remuneration for unauthorized use of her work.

Her proof of ownership is a signed contract with her recording company and any US copyright filings.

Your proof of ownership is an unambiguous cryptographic scheme (NFT), which you could use to secure a US copyright.
> But Facebook didn’t disclose its findings to civil rights leaders. Even the independent civil rights auditors Facebook hired in 2018 to conduct a major study of racial issues on its platform say they were not informed of the details of research that the company’s algorithms disproportionately harmed minorities.
The only time they ARE a code smell is when the values are only used one place and they could have been in-lined for readability.
Would make for a good Black Mirror episode.
You can unlock most home doors within seconds even without having the key

Nonetheless, we still lock our doors and thieves often break in, even though picking the lock is both safer and less likely to arouse suspicion.

Your argument makes sense, but we humans aren't really rational
I think it really depends on the different types of network effects. Here is a presentation on the many different types of network effects.

https://future.a16z.com/all-about-network-effects/
I completely agree with your issues regarding the settings, lack of discoverability. The whole configuration system of Windows is a mess and needs to be replaced.

Windows updates in general are a convoluted mess that breaks things regularly in unexpected ways (e.g. an update broke Visual Studio's profiler for over a year).

I only don't agree that unexpected restarts are a common occurrence these days, I'm with you w.r.t all other complaints.
As I explained below, that is implied.
These cards are useful for commuting and local transport (OV-Chipkaart, by the way), but when travelling for leisure you do miss out on useful deals that way. In the summer season there are lots of discounts to be had on the Dutch train network, with savings up to 80% of the regular price depending on destination and availability of special discounts.

For international travel planning and booking ahead of time usually means you can get very large discounts as well that would not be possible with a check-in-whenever-you-travel type of card.
I like to pose this as not empathy for the animal but empathy for ourselves*

It is not nice to the kind of colture that inflict pain on an indutrial scale and we can empathise with the torture that is mutilation and being boiled alive, does not need to be about what an octupus feels during slaughter, it can be about how to approach the act itself.

I believe that buddhism teaches to pay respect or thank the lifes that died to become your food (plant of animal); in this context the question on my mind would be whether you can honestly pay your respects to something you boiled alive because it would have tasted worse cooked another way.

It feels disrespectful to the food.

Slaughter is natural, we should find a way to be ok with how we do it.

* I like to offer egotistical arguments for altruism, just my perspective
I have my product, 1UpBlitz on sale from today to Friday. 20% off for lifetime updates. Discount works for the first 30 people.

It may not be a course, but 1UpBlitz is the first SaaS starter for blitzjs. So going through the codebase can definitely teach you something new.

Head to https://1upblitz.com and use the code "1upblackfriday" during checkout.
I grew up in Hendricks County. There's a lot of your post that resonated with me, since several friends and family members of mine have had similar life experiences. One of my best friends was in a similar boat: no completed degree, not sure what he wanted to do, enjoyed tech but wasn't a strong programmer, but he had strong "soft" skills. There are a number of manufacturing and logistics/supply chain companies in Central Indiana that have a real need for detail-oriented, personable and hard-working people.

My friend hated working for a manufacturing company, but it was only a year and it was a launchpad: he was able to prove value with spreadsheets (similar to paperwork) and after hopping from a couple different companies is now doing Business Analyst work (some SQL, some Excel, mostly domain knowledge of the industry he picked up on the job) for a retail distributor in Central Indiana. I don't claim to be giving any particular advice, I only aim for encouragement. Keep knocking on doors and building your network. It's hard work that will pay off. Best of luck.
For me, enums are just a way to eliminate canonical magic strings throughout. They also have the happy side effect of storing as an integer in the database, but I do sometimes apply a .ToString() in those situations where users will be looking at the data frequently.

There are actually very few cases where I would say enums should not be used. The most obvious one being open-ended types where the list of members will always be growing (e.g. if you made each user of a system a member). You should also not use enums to convey a compounding of logical facts - these get nasty really fast in my experience. Sometimes it is better to just have 5-10 boolean flags on a type than to try and cram every logical combination of those things into canonical enumeration members.
The Rise and Fall of Clubhouse
Or going back more, light pens on CRT monitors were neat.

How did the pen work in practice for you?
Wait, so unless I can come up with an exactly perfect list that flawlessly prioritizes every possible action that humanity could ever undertake, then I'm not allowed to have any opinion whatsoever about whether any given action is more or less important than anything else? By that logic, we should never choose to prioritize anything over anything else, and we should just select all actions by pure random chance.

> You're acting like a whole country put everything to a side for a year, to figure out how lobsters won't get boiled alive, and due to it more important things got neglected.

Clearly they didn't drop everything, but they are introducing a new regulation which is going to require resources to implement and enforce. Is preventing 2 seconds of lobster suffering the best use of those resource? I guess if we just have to randomly choose actions and we can't say one action is better or worse than another unless we can list the relative priority of all possible actions, then it doesn't matter.

> But if you can't imagine such list yourself, then what is your solution for a society, which always works for the greater good in the most efficient way possible and who should decide what's the greater good even? Like how would it even work?

We already have a system. We engage in reasoned debate where people observe what costs an action will have, and demonstrate how many people will be helped by it and they argue for why those benefits outweigh the costs. If your best defense of a given course of action is ¯\_(ツ)_/¯ people want weird stuff sometimes! Well, maybe that's not very convincing.
For devices like phones and laptops, this sounds too complicated. Why not instead just use passwords, patterns, etc? I doubt anyone who's genuinely sensitive about their device being secure uses biometrics to unlock it anyway, so this seems to be just a convenience feature for the casual user with minimal security concerns. As such, making it more complicated doesn't seem worth it.

And if we're talking about authenticating people in truly secure environments, my gut tells me that adding a couple more factors to even a simple fingerprint reader ought to be more secure and robust than making a super-complicated fingerprint reader and leaving it as the only factor.
Sure. Just saying that benchmarking anything that recursively trawls directories is probably going to hit a cold cache often.
humm cheaper than a rubber hose, but too slow.
There's even a website for it - https://www.thisworddoesnotexist.com/
This is why you would opt for a declarative language like Excel for this kind of feature. You define a relationship, and the programming language runtime maintains it as an invariant. Then you don’t care where or when or how the value changes, because that doesn’t factor in to the definition of the thing.

The language can help with debugging by providing traces of execution that you can record and replay to inspect. Then you can query the trace to answer any questions you have about the execution of the program.
I had severe burnout after doing 2 years remotely. I spent 4 months doing very little. A friend then convinced me to join his startup and I had a lot of fun (this time IRL). I'm still there 1.5 years later and we're doing well.

Random luck I reckon. I needed a break though.
I'd be surprised if they are trying to compete with these. This is targeted at a different audience. Often this is part of a .NET application migration where a company is comfortable with Microsoft-originated open source, but still uncomfortable with regular open source (even though we are aware of the pedigree of nginx.)

Going further, it can be customized from .NET and shipped as part of the app which may be using nginx for some proxy features.
the player is instructed to attack the weak point for maximum damage
BioNTech is working on a vaccine against MS that is supposed to untrain the immune system to no longer attack own tissue. It should at least slow progress of the disease and even seems to have allowed to reverse early damages in mice. Let’s keep our fingers crossed.

https://news.ycombinator.com/item?id=29305956
Biometrics have both a high False Acceptance Rate - they will accept invalid input - and a high False Rejection Rate - they will deny valid input. Scanners can be tuned one way or the other, preferring FAR or FRR, but either way, they are kind of unreliable.

This is why multi-factor authentication is a thing. Generally, pick two: something you have, something you know, or something you are.

If the scanner doesn't like your fingerprint this morning, just use your proximity badge instead, and if someone takes a photo of your fingerprint, it's still useless unless they also know your PIN.

The issue is that a lot of our hardware, particularly phones and laptops, is single-factor authentication. And on top of that, this hardware knows the login to a bunch of other very sensitive material, like your bank accounts.
How dare you give a warning based on experience.

I'm always suspicious though of heavy affiliate links and when every review on a product (1000+) are all 4-5 stars. I know it's not but it screams to me of the dropshipping popup sites.
> wrapper script to set up LD_LIBRARY_PATH, or custom derivation to patch their ld lib paths.

There is your problem, I don't want to spend time writing wrapper scripts, or researching how to craft my buildFHS for every little piece of software I will run once for an oddly specific purpose.

Running the proprietary VPN on Arch Linux was as simple as running debtap, and then installing the package via pacman, even though the package shipped by the vendor was made for Ubuntu. It even figured out the dependencies automatically.

I know I could do the same thing on NixOS, but it would be way more clunky and time consuming. For example: this is how a package is installed from a .deb using nix: https://github.com/NixOS/nixpkgs/blob/nixos-19.09/pkgs/tools...

If Arch can do it in two commands, so should NixOS, just with two lines of nix :)
I find it funny how Java (and maybe .NET, though the example is .NET - but probably "extended" from Java) seems to have catalyzed the worse types of cargo-culting, OO "overdose" and similar pseudo-good practices.

Then we end up with "corporate java code" that wants to throw out what was the basis of computing (if statements, switches) and turn all into some crazy type hierarchy.
Any college town, to a fair approximation.

Also Carmel, IN for some reason.
Also remember, in the USA, the police can legally force your finger onto a reader to defeat the lock, without violating your 5th Amendment right against self-incrimination.
Are you being intentionally obtuse for some reason?
It's not for everyone, but you get full root + ssh access to the device. I'm wondering if there's any good apps to fill in the gaps.
I encourage everyone eligible to get vaccinated, however in the long run that won't protect the immunocompromised. The vaccines aren't sterilizing to any significant extent and the virus is now endemic, so everyone will be exposed regardless of how many people are vaccinated. There will be no significant herd immunity effect to protect those who lack immunity.

https://www.businessinsider.com/delta-variant-made-herd-immu...
No, the fingerprints are not hacked. The MacBook Pro scanner is.

Fingerprints and biometrics in general are not a secret. Consider your fingerprint like your face. Anyone can reproduce your face, there are cameras everywhere, and it is probably already easy to find on the internet. "Hacking" your face by taking a picture is the most boring "hack" ever.

Now, if I print your face on a piece of paper, wear it as a mask and try to say to a security guard that I am you, normally, he won't let me in. If he does, the problem is not that I managed to make a paper mask with a picture of you, this will always be possible, the problem is that your guard is stupid and you need a better one.

And if your fingerprint scanner can be fooled by a dab of glue and a laser printer, you probably need a better scanner, something that Apple should be able to do. Smartphone manufacturers like Apple are usually good at bringing fancy tech to the masses, and they could work on defeating these old attacks.
None?

I've had my PocketBook Inkpad Color for over six months already.
For some languages, like D, that can also be expressed in the language itself: https://dlang.org/spec/statement.html#final-switch-statement
I'm going to flag this submission. This is horrible Stack Overflow post with bad answers.

Languages have different types of "enums". Enums in languages like Rust are extraordinarily powerful sum types that create compact memory footprints, strong compile time guarantees, and can form the basis of expressive and correct state machines.

Enums (sum types) are one of the best patterns.
Considering research “paths” are often measured in decades I’d be massively impressed if a scientist could guess what would be profitable 20 years from now.
> /r/peloton is about professional cycling, but many people think it's about Peloton trainers

I just learned Peloton is actually a word with a meaning for cyclists, not just a brand.
what's the reasoning to never quit on a Friday?
Sounds like they’d get lots of subpoenas.
I agree. The most meaningful work I ever did was upholstery. Think about how often a couch or chair is used -- that's hours of enjoyment and comfort every day!
I went from making $3500 a month to making $500 a month. Barely scraping by. Also, I didn't exactly quit but was let go. I just didn't want to go back to a job. Making my own games and freelancing right now. I wouldn't recommend quitting your job unless you have a plan or are secure enough in your self worth that the amount of money you make doesn't change your own opinion about yourself.
No surprise at all that this happened. They had not turned on multi-factor authentication and hackers got in through a static password. Over 80% of data breaches are through static passwords.

From the official GoDaddy statement:

Using a compromised password, an unauthorized third party accessed the provisioning system in our legacy code base for Managed WordPress.

-

This could have been an easily avoidable data breach.
>> But to me, when your infrastructure becomes a language/framework fight we're in the wrong battle anyway.

It is to me as well, but these fights are quite pervasive in our industry. It is especially problematic in the enterprise space. This is to the point as a C# dev, that I'm happy this exists, so that I have the facilities it provides, when more mature solutions are unavailable.
The more insidious problem is the card carrying believer in X saying “!X is harmful”

See this pattern all the time in both technical and people side all the time.

“You should never estimate using time”

“Don’t start new work until all the teams sprint commitments are completed”

Etc.

In a word it is arrogance with a twist of ignorance.

Ignorance that complex systems of humans and code don’t follow perfect dogmatic rules.

It might be ok for junior devs to be a bit like this but always add a pinch of “most of the time, but when experienced you’ll know when to ignore the rule”

Ignoring some unwritten or written dogma is often what makes for a competitive advantage.

Let your competitor drown in EnumClassFactorys .