Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
maleldil
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
32 ms
·
841.
▲
by
maleldil
3y ago
Do heterossexual men need to be monogamous too?
842.
▲
by
maleldil
3y ago
> There are aspects of CBT that are essentially gaslighting ourselves Could you be more specific? I'm another patient undergoing CBT, and I've found it overall helpful in managing BPD. I'm curious what you mean by this.
843.
▲
by
maleldil
3y ago
I don't get people posting GPT answers. If parent wanted that, surely they would've done that themselves?
844.
▲
by
maleldil
3y ago
> it’s nice to have public and private methods in the same place (the impl class’s definition) In my experience, the impl class is usually defined in the main class's cpp file.
845.
▲
by
maleldil
3y ago
Interestingly, the first time I heard a coil whine in a laptop was with the M1 Pro MBP. I never had it with any PC laptops. I found that it depended heavily on the electric wiring. It happened semi-frequently in Brazil, but almost never in
846.
▲
by
maleldil
3y ago
What do the macros do? Isn't this as easy as forward declaring the impl class, adding std::unique_ptr<Impl> as a private field and have public methods refer to the field? I'm struggling to understand why macros would help he
847.
▲
by
maleldil
3y ago
Why would they ignore it? If this is cheap for them, it just becomes the price of doing business as an additional tax.
848.
▲
by
maleldil
3y ago
What languages and LSPs are you using? I've never experienced this with Python (pyright), Go (gopls) or Rust (rust-analyzer). I'm using tree-sitter for syntax highlighting. The only special thing is that I'm using lazy.nvim (
849.
▲
by
maleldil
3y ago
> Throwing an exception is an implicit part of our contract, whether we declare it or not I think this is the main reason why checked exceptions and errors as values work. The alternative is having to always specify all the exceptions in
850.
▲
by
maleldil
3y ago
Nah. I was used to Dell trackpads for years, but I immediately felt the Macbook's was superior immediately. We have many Windows laptops in the family, and everyone uses mice most of the time. I only use a mouse on my Macbook when it&#
851.
▲
by
maleldil
3y ago
Microsoft has Semantic Kernel: https://github.com/microsoft/semantic-kernel > The SK extensible programming model combines natural language semantic functions, traditional code native functions, and embeddings-based
852.
▲
by
maleldil
3y ago
> Meanwhile macos and iOS push tv+, music and icloud storage all the time I've never seen an ad for tv+, music or icloud on macOS.
853.
▲
by
maleldil
3y ago
I agree that triple equals is an abomination. It's one of the many things ensuring I use JavaScript as little as possible.
854.
▲
by
maleldil
3y ago
Does Pascal still require all variables to be declared at the top? I did a quick search and that seems like the case, but I want confirmation from someone that knows the language. If so, that's a immediate "no" for me. We kno
855.
▲
by
maleldil
3y ago
> Use a modern language. If you want to stay in the Java ecosystem, for example, you could use Kotlin. That's easier in Java given how easy it is to interop between languages (see also Clojure). What if I'm using C++? There
856.
▲
by
maleldil
3y ago
> which context do you find yourself needing to be even 8 hours in a row on your computer without being close to a power plug? It's summer. I was writing a paper in an outdoor pub. No plug available, unless I wanted to go indoors (I
857.
▲
by
maleldil
3y ago
It's signal in a sea of noise. The premise (errors as values) is done better and more concisely by languages like Rust, Haskell and Ocaml with ADTs.
858.
▲
by
maleldil
3y ago
Yes, because all mental illnesses fit into perfectly neat boxes.
859.
▲
by
maleldil
3y ago
I know, but I expected that to be restricted only to older modules. I don't expect them to annotate all existing modules. I don't see why they would introduce _new_ code without annotating it, when that's clearly the trend fo
860.
▲
by
maleldil
3y ago
It's weird that they're adding code to the stdlib without type annotations.
861.
▲
by
maleldil
3y ago
What does it do? Just `import pdb; pdb.set_trace()`? Or `breakpoint()` after 3.7 (better because the user can override pdb with ipdb or other with `PYTHONBREAKPOINT`)?
862.
▲
by
maleldil
3y ago
How is Python 'unsafe'?
863.
▲
by
maleldil
3y ago
I was a user of superintendent until about a year ago (it doesn't make sense for my current job), and I liked it a lot. Tanin was responsive by email, and the tool was very helpful for standard CSV tasks. Well worth the price for me. I
864.
▲
by
maleldil
3y ago
That's a useless use of cat. You can use `jq . foo.json | pbcopy` or `jq < foo.json | pbcopy`.
865.
▲
by
maleldil
3y ago
> I must say the food was a bit disappointing Food varies a lot between states and regions. Could you be more specific? I can understand food from São Paulo state being less interesting than, say, Minas Gerais, Bahia, etc.
866.
▲
by
maleldil
3y ago
Can you explain what the abbreviations are for those of us out of the loop?
867.
▲
by
maleldil
3y ago
> Nushell they didn't have scripting yet If you mean you couldn't run batch scripts from a file, they can do that now. There's an example repo with some community scripts. My favourite is how they handle CLI parsing: http
868.
▲
by
maleldil
3y ago
Not 2023, and not from the AI thing. It comes from RPGs, like what the sibling comment explained. It must be as old as D&D.
869.
▲
by
maleldil
3y ago
Thank you for the in-depth response! Just to clarify my understanding, do you mean you want to encapsulate data structures within the same package (i.e. files in the same directory)? If so, I'm not clear why you can't break those
870.
▲
by
maleldil
3y ago
> Over 10k lines of code it becomes really hard to keep things straight. However, that's more due to its very limited scoping abilities. Could you please elaborate more on this?
More ›