Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jpc0
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
50 ms
·
601.
▲
by
jpc0
3y ago
Its idiomatic sure but specifically with shared pointer a lot of time people are using shared pointers because they don't want to think about ownership, this turns out not to be the case here but think about it, the function is taking
602.
▲
by
jpc0
3y ago
> Also the moving of shared pointers is just an optimization to avoid increasing and then immediately decreasing the ref count, no UB there since its passed by value in the argument, so it gets copied before being moved I saw that, that
603.
▲
by
jpc0
3y ago
I would strongly encourage you to reduce your use of std::shared_ptr in your code. There is one instance where I saw you take a shared_ptr and then proceed to move from it. That could literally have been a unique_ptr and if you are making a
604.
▲
by
jpc0
3y ago
This right here. I'm currently building out some code that should go in production in the next week or two and simply because of this we are using LLM to prefill data and then have a human look over it. For our use case the LLM prefill
605.
▲
by
jpc0
3y ago
> All the issues with global variables can be solved with better tracing tooling I would argue this problem is solved in most current languages with strict types. Stop making all the things strings or abstract base classes. Easy example
606.
▲
by
jpc0
3y ago
> Better to KISS and leave abstraction for the future when it actually becomes necessary. I love this statement and for me personally is also perfectly encompassed in YAGNI. You ain't gonna need it. Until it's proven you need t
607.
▲
by
jpc0
3y ago
To the contrary I ran into cases pretty quickly that rust just wasn't useful for in my opinion. One of my use cases was something like a mutable borrow of an struct in a struct in a single threaded code path wasn't allowed because
608.
▲
by
jpc0
3y ago
Thought question, not entirely related but if you want to go that that route it actually is. If I generate some media in say Photoshop. I then send you a JPEG representation of said media. You then distribute a PNG copy of the image without
609.
▲
by
jpc0
3y ago
> Warning: This website may not function properly on Safari. For the best experience, please use Google Chrome Do better
610.
▲
by
jpc0
3y ago
Just a comment from a smaller user who has moved away from netbox and realistically went back to spreadsheets. Please don't see it as a negative, netbox may purely just be the wrong product for us. Some background on our usecase, tldr
611.
▲
by
jpc0
3y ago
I completely agree with you on this. We can do phenomenal things for cheao these days. But cheap still isn't that cheap. Just a few 0s disappeared from the end. Let me put it this way, it's unlikely even a large YouTube channel is
612.
▲
by
jpc0
3y ago
> Porn is free Open an incognito tab, open <insert popular porn site> what is the very first thing on the page after the age disclaimer. Let me give you a hint, "Meet sexy single in your area" isn't a meme for nothin
613.
▲
by
jpc0
3y ago
> Other side of the equation is - Production of Content has become cheap I spend a lot of time in both production and post production. The price for good content has certianly decreased but it most certianly hasn't become any defini
614.
▲
by
jpc0
3y ago
Wait I need to hear more about this. How are pubsub systems a modern goto? Genuinely curious since I don't work with them directly that often
615.
▲
by
jpc0
3y ago
> C’mon, that’s basically the same thing I'm not going to talk about errorOr specifically because I don't know how it's implemented but rather your premise. Exceptions are the modern goto, the try catch may be in the calle
616.
▲
by
jpc0
3y ago
I've had arguments with people storing session tokens in local storage and claiming it is perfectly safe. Not marking the cookie httpOnly ironically doesn't surprise me. TLDR: if you aren't going to look up the very basics of
617.
▲
by
jpc0
3y ago
The same applied to the us before and I would absolutely argue what I said is in the spirit of the law. Also Hackernews has audiences from all over the globe. Regarding the initial point I made. Even if the commenter didn't own the cop
618.
▲
by
jpc0
3y ago
So I looked into this more and again is not universally true. The modern trend seems to be to follow the US law on this which is what you say but many signatories of the Berne convention in fact haven't changed their copyright law and
619.
▲
by
jpc0
3y ago
This feels more like shady practice than anything founded in copyright... Copyright on commisioned works is pretty clear and I'm pretty sure you would have to explicitly sign over your rights in that case. I think its more a matter of
620.
▲
by
jpc0
3y ago
Reasonably sure YOU PAYING a photographer for a photo of YOUR engagement would give you the copyright... Emphasis on the important parts there, feel free to correct if I got one of them wrong.
621.
▲
by
jpc0
3y ago
The incompetence here is that a single human being reading this document could make a mistake that would do exactly that. The human is guaranteed to make a mistake, just as you are. God forbid your mistake is only the serious matter of emba
622.
▲
by
jpc0
3y ago
Note to Crimbles employer. Please be sure to fire them should they mistake one word when reading hundreds of documents a day, they have hereby agreed this is valid cause.
623.
▲
by
jpc0
3y ago
A strong leader at the same time can cause it to happen...
624.
▲
by
jpc0
3y ago
> Hopefully they fired the moron who kicked off the process too. God forbit you make such a grave mistake as reading a number off a piece of paper and typing it into a system incorrectly. It's almost asif the interaction between the
625.
▲
by
jpc0
3y ago
YouTube and Google Drive large file uploads sorted? Also google meet no longer randomly fail to load? If so I will be very excited since I want off of Chrome but for work it was broken last time I check and that was like early December.
626.
▲
by
jpc0
3y ago
https://support.google.com/cloud/answer/6158849?hl=en#zippy= There is likely a package/library for your language of choice to do a basic oauth client.
627.
▲
by
jpc0
3y ago
You are reinforcing a market driven by incorrect principles, it's got nothing to do with you. You are voting with your money and you are voting for something that shouldn't exist in the way it exists. Easiest way to be a revolutio
628.
▲
by
jpc0
3y ago
> "But I keep an eye on my stuff" what about the 5billion other users in the world? And I concider thr UDM to be IOT in and of itself but that is arguably an opinion not objectively true
629.
▲
by
jpc0
3y ago
PSA: If you buy any hardware that requires an internet connection to work return it as faulty. Is this washer going to get software updates for it's entirely lifespan? "It's behind NAT and a firewall". Well if one of you
630.
▲
by
jpc0
3y ago
Btw the same is possible for phishing sites. It's entirely possible to have a proper SSL connection to a bogus hostname, that is showing the correct website and even interacts correctly. Bogus MITM decrypts the traffic, logs it, then f
More ›