Hacker News new | past | comments | ask | show | jobs | submit | Too's comments login

C# also has exactly the same concept. "class"-types are put on the heap and get assigned by reference, while "struct"-types are assigned by copy.

It always seemed weird to me. You need to know which data type you are working with when passing things around and can not adjust according to the application. For certain types from the standard library it makes sense, like datetimes you probably want always be copied. But when you work in a big team where everybody has their own style and special optimization corner case, it decays quickly.


https://doc.rust-lang.org/nomicon/unwinding.html explains the philosophy and how they got there a bit further. Rust grew from a short-lived task concept, where panic of a task wouldn't be the end of the world, then it got used to write bigger applications instead and finer catch-concepts were needed.

With those two names it's rather inevitable that any beginner of the language will use the obvious sounding, but panic-inducing get.

That's not scalable if it's not possible to catch panics. If panics can't be handled they must only be caused by super corner 0.001% cases, not by fundamental things like dividing an integer or indexing an array.


New language means throwing out the ecosystem, which is one of pythons biggest strength. There are and have been multiple attempts on compiling python, most recent promising shot is Mojo aiming for library compatibility.

Now add one special character, mix upper and lower case, max 32 characters. This wouldn’t work on even 1% of all websites out there.


Hopefully your email also requires 2FA :)

Even without, accidentally getting one password leaked is a lot more likely than two. For whatever reason, shoulder peeking, keylogger, wrong input field, brute forced, and so on.


yeah so 2 passwords would do the same trick then?

In my mind the email is the second worst 2FA since it's used for registering everywhere on the web and more prone to be compromised. Phone number is the worst.


Jeez chill... it’s just back to where it was 4 months ago and even after the drop it is still up 100% compared to this time last year! And it’s all fake inflated money.

This unprecedented growth simply couldn’t continue forever.


Cheap + quick commute to downtown takes care of that.


There is only a downtown if there are jobs there.


Agree. While the solution is impressive, the choice of using the type system severely hampers the ways the code can be deployed. Instead of taking dynamic input, the DATA array must now be encoded up-front in an unexpected number-base and run within the tsc compiler. It limits the number of members in the team that can maintain it. Finally, he was lucky there were no further silly requirements like send a PDF report to the CTO if the number is divisible by 201 and it's a Monday. While i also disprove of the interview setup and their bizarre artificial limitations, in the real world shit also happens and you need to react to it, if you decided to prematurely constrain yourself for the sake of scratching your own itch, you could set back progress for weeks, i see this happen all the times with people choosing the wrong tool for the job or reinventing what already exists in the standard library. Long term maintainability and pragmatism is valued higher by the business.

In my books this choice alone wouldn't be cause for rejection, a good interviewer would question it though and depending on the reaction, it could be. Whether or not that happened here isn't clear. They could also have other even better candidates to pick.


There are two things that make it hard to maintain.

One is choice of language, which is supposed to not matter because it's just an interview exercise where you can pick any language.

The other is the contortions around not using numbers.

Anything stemming from those two factors should not be held against the candidate. It definitely shouldn't be labeled as "scratching your own itch".


I noticed this in the throwaway comment that the OP made at the end about their prior job disfavoring the use of TS.

I'm not surprised to see that type of sentiment from someone who is (at least self-described) at a more junior level, but still. Often the choice of what language/framework/tool to use on a given codebase or project is dictated or constrained by considerations other than which one is "best" in a technical sense.

Does this suck? Yeah, most of us have strongly held opinions or like to try out new shiny things. But it's a reality of working in this field and coworkers who refuse to learn it can be really hard to work with.


Skype and Lync, surface, windows subsystem for linux, AD to Entra, 10S, "whatever for enterprise", whatever for teams, one, one s, one x, windows phone, windows mobile, windows mobile 8, service pack became anniversary update became creators update. Let's not even get started on things like Visual C++ redistributable runtime framework package for desktop bridge (not making that up).


So there's Lync and Linq? No wonder I was having trouble searching, and I thought I was bad at spelling on top of that...


Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: