« first day (4061 days earlier)      last day (872 days later) » 

 
3 hours later…
9:01 AM
why are serialization libraries like rapidjson and avroc++ so poorly written? Insane steps are taken to enforce moves rather than copies including for example, not providing any construcotrs etc.
 
nwp
That doesn't seem crazy to me. Copying serialized data is probably always a performance bug.
 
Just that there are language ways to avoid moves.
Both of these libraries are collections of antipatterns
 
nwp
I thought that's what you meant by "not providing any constructors". Well, assuming no copy constructor but an existing move constructor. Though if it basically uses an std::array internally it seems reasonable to only pass around handles.
 
9:16 AM
How can you 'move' data between servers or from server to client without copying them?
Imagine you 'move' data from server to client and it no longer exists on the server.
 
nwp
Closes question as "Lacks minimal understanding"
 
I have cut my coffee intake by half today.
 
So Avro C++ generates headers from schema. The headers are burning garbage that requires silencing a number of static analysis errors. I'd forgive them. BUT they also implement a default constructor that zero initializes the struct but no other constructor. So you get the bug prone crap where you need to assign members line by line like C99 code.
 
nwp
But yes, this actually exists in the DICOM standard. You can hand the responsibility for keeping data off to a server and delete your copy afterwards.
 
code is autogenerated but uses dynamic cast and no exception handling
 
nwp
9:20 AM
I've only used protobuf so far and it seemed ok, but that may only be because I never looked at the generated code.
 
protobuf has the same pointer oddities and semantic wackiness, but is better than the two I mentioned
but still protobuf is quiet far from paradigmatic C++
I liked ZeroC for many reasons including that the code didn't freak out my linter
 
 
4 hours later…
1:25 PM
@LandonZeKepitelOfGreytBritn if you're still looking, Silberschatz's Operating Systems Concepts book (the dinosaur book) has some very good content about memory paging and memory management in general.
@TelKitty Good job, we devs put an unhealthy amount of emphasis on caffeine.
 
 
7 hours later…
fog
8:27 PM
@PeterT kiosk mode was good thx
 
9:10 PM
what is the best way to learn Data structures and algorithms for online job assessments? Do you guys use Udemy or read books?
 

« first day (4061 days earlier)      last day (872 days later) »