@cmuratori @Jonathan_Blow I don't know your attitude towards data publicity in classes/structs, which determines a lot of this conversation
-
-
Replying to @bhsharp
@bhsharp@Jonathan_Blow There should be no data exposed to people who don't know how to access it is my general rule.3 replies 0 retweets 0 likes -
Replying to @cmuratori
@cmuratori@Jonathan_Blow internal derivative calculations and caching? That's what I use const accessors for.1 reply 0 retweets 0 likes -
Replying to @bhsharp
@bhsharp@Jonathan_Blow I almost always return by value. This prevents multi-threading problems as well.2 replies 0 retweets 0 likes -
Replying to @cmuratori
@bhsharp@Jonathan_Blow If the data is huge that's being returned, then the systems are perf-coupled and I typically have special code...1 reply 0 retweets 0 likes -
Replying to @cmuratori
@bhsharp@Jonathan_Blow ... to handle their interplay, since it cannot be left to someone who doesn't even know what would be constant.1 reply 0 retweets 0 likes -
Replying to @cmuratori
@cmuratori@Jonathan_Blow I can see that. On larger teams those boundaries are often necessarily split between engineers, though.1 reply 0 retweets 0 likes -
Replying to @bhsharp
@bhsharp@Jonathan_Blow And I guess I'm saying, both those engineers better know the system a lot more intimately to do a good job there.1 reply 0 retweets 0 likes -
Replying to @cmuratori
@bhsharp@Jonathan_Blow I don't think someone who wouldn't even know what was const when could write good perf code in that scenario.2 replies 0 retweets 0 likes -
Replying to @cmuratori
@cmuratori@Jonathan_Blow coding since multithreading became de rigeur. Good API design food for thought, thanks.2 replies 0 retweets 0 likes
@bhsharp @Jonathan_Blow My pleasure! Multithreading is a bitch, but, yeah - you kinda have to do it if you want to push.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.