It seems to be a real definition, see definition 6 under etymology 2:
> (transitive, law, especially New Zealand)[1] To subject [someone] to a trespass notice, formally notifying them that they are prohibited from entry to a property, such that any current or future presence there will constitute trespass, (especially) criminal trespass
Ah, I thought that could be the case but didn't see it listed in Merrium-Webster [0]. Seems like it is legal jargon, so might be better to use plain language here.
I think that it helps a lot to have a daily practice of using a language for small things.
In much that same way that many people do the daily wordle or crossword, I do the daily leetcode.
I flip a coin and solve it first in either C++ or Python, then re-write my solution in the other one.
Usually it takes me around 20 minutes to solve it in either language, and 5 minutes to re-solve it in either language.
Recently I decided to start learning emacs lisp. This is an imperative lisp dialect that’s pretty different from scheme, but I think that the particular language doesn’t matter much for this process. I could a bit biased because I do have prior experience with SML and scheme.
I started re-solving the problems a third time in emacs lisp. And I’m still learning but I’ve felt my comfort with the language increase over time, and I expect that if I continue doing this then I will eventually reach parity with C++ and Python.
Currently it takes me about 20 minutes to re-solve a problem in emacs lisp, because I usually have to read documentation and/or look up something new.
Recursion. Very interesting. My daughter didn’t know much about programming, then started CS. The first semester language was Ocaml and they of course used recursion quite heavily and she’d didn’t know it was supposed to be complicated. The second semester had assembly, C and Java and suddenly it was a problem. I had to remind her that she’s had already done it in the first semester.
My CS degree started first semester with Haskell, with a few weeks of Java tacked on the end. It was interesting to see some of the students who had prior programming experience have to work a bit to adapt their way of thinking to Haskell, while some of the students with no programming background at all were perfectly happy writing code in a language that made reasonable sense if you were good at maths, then had to work harder once we swapped to Java.
Sounds like a sick CS department. We had to do Java. The whole first year was just OOP day in and day out. If I’d never seen python I really would have thought all programming is OOP, and probably would’ve dropped it for good
> If I’d never seen python I really would have thought all programming is OOP
But isn't Python object-oriented? I mean, it's arguably more object-oriented than Java, since unlike Java, everything in Python is an object and it supports multiple inheritance. It's totally fair to not like Java, but if you like Python, then I doubt that OOP itself is what made you dislike Java.
Python is an object-oriented language in the broader meaning, but object-oriented programming is a particular style that java pushes you into, that python doesn't. It doesn't just mean "everything is an object", it's more like "everything is done in terms of objects that contain data and functions (methods)". Python has objects and could be done in that way, but a more basic imperative style with functional programming elements is more common, where objects are just one component instead of the driving force.
Java has better support for non-OOP paradigms than Python does. Map, filter, and reduce are built into the language rather than exiled to an external library. It supports multiline anonymous functions, and it has block scoping, so there are fewer surprises when using them. Java also has record types, exhaustiveness checks in pattern matches via sealed interfaces, built-in types for managing effects and errors (Optional<>, Try<>, Result<>), and type inference. It also has excellent interop with multiple programming languages where pure functional programming is idiomatic. It's a way more comfortable language in which to do FP than Python is.
After spending years on end doing functional programming I used to stumble when looking at for loops until I got used to thinking that way again. It's funny how different the skills are.
Do you find yourself programming a solution in the second language in the style of the first? Or are they both similar enough to you that it is effectively the same style of solution?
I typically do the same algorithm for each solution, but I do try to write it in an idiomatic way to each language.
I usually look at the editorial after the first solve to see if I missed any tricks or other approaches, and sometimes I’ll write the second solution differently if there was something interesting that I missed.
How did you arrive at C++ and Python? Yes I'm aware they have many structural and aesthetic differences, but why would you not choose a language with a different paradigm—functional, logical, even procedural, etc?
Good question. I chose them because they are the languages that I use professionally and would choose for technical interviews. I expect to be asked to solve problems in either language in any given interview.
Technical interviews are different enough from day-to-day work that I still find it valuable to practice in them.
I hope you really do it more as enjoyment (like people do crosswords) with just a very secondary benefit of technical interviews, because otherwise I can't but find this rat race obsession super sad.
It's a feature of the leetcode.com website. I actually can't find a URL that will directly link to the current day's problem, but you can open https://leetcode.com/problemset/ and select the current date in the calendar widget (at the top right on desktop, or by clicking the green calendar floating action button at the bottom right on mobile).
You can view the daily problem without logging in or creating an account.
Fair warning: today's daily problem is a "hard" difficulty and it is often worth skipping those or peeking at the solution. They can take a while to solve (often at least an hour) and/or rely on unusual tricks or data structures. I haven't solved this one yet so idk exactly what its deal is.
Some context is probably necessary for this submission. This is a direct link to one chapter of a book-length (1905 pages!) suicide note titled "Suicide Note" by Mitchell Heisman, who committed suicide near Harvard University in 2010, ostensibly because he convinced himself that non-existence is morally equivalent to existence.
This chapter discusses the Singularity and in particular the idea that God is a technology that has evolved under selective pressures alongside human societies, and that we will eventually create an actual AI God as a continuation of this process.
I think that it's interesting as a standalone read and relevant for discussion on HN. I was surprised to find that it had never been discussed here before.
Hinduism is hardly non-proselytising. After all there's not a lot of Buddhists left in India. The Brahmin caste pretty intentionally and comprehensively reacted to and pushed out Buddhist practices once they became threatened by them.
You honestly just have to treat any Oracle product as malware, and proactively scan for it / block it from being installed on employee laptops in the first place.
gwern once ran a rigorous N=1 self-experiment on magnesium with self-blinding and week-long blocks, and concluded that it was probably helpful to him: https://gwern.net/nootropic/magnesium#conclusion
You are welcome to review his methodology and see if it still seems like the placebo effect.
Based on his ranking of MP (mood/productivity), he concluded that it helped for the first three weeks and then got worse because he was overdosing on the magnesium. So not much there is going to apply to the general case.
I have a monthly recurring task in my task manager to open the Dropbox app on my iPhone and leave it in-focus for a couple of minutes while it uploads the previous month’s photos.
If I don’t do that, then it just won’t upload them.
I read the first link and was curious what the outcome of the case was, since the article was released in 2021. It seems that Jeanne was declared alive again in 2023, which is the most recent public reporting on the case:
> (transitive, law, especially New Zealand)[1] To subject [someone] to a trespass notice, formally notifying them that they are prohibited from entry to a property, such that any current or future presence there will constitute trespass, (especially) criminal trespass
https://en.wiktionary.org/wiki/trespass#English
reply