
Thiago Adams @[email protected]
4K posts

Thiago Adams @[email protected]
@thradams
Software engineer interested in C/C++, compilers, IOT, Raspberry Pi, SCADA, WEB Technologies, physics, UK and Europe.




C is hard because you have to manually free every pointer. Actually, you don't. 🤫 The cleanup attribute allows you to define a function that runs automatically when a variable goes out of scope. It's basically RAII/Destructors in C.









You used to be able to just create a Native GUI App in 10 seconds. No Electron, no Game Engines, no Web frameworks. Just a lean fast .EXE produced in seconds. Works on any Windows machine WITHOUT Internet connection. Software Development is actually going backwards.


Which List implementation is faster for 100,000 operations in Java? Benchmarks: 1. ArrayList get(index): 0.001 ms 2. LinkedList get(index): 85 ms 3. ArrayList add(end): 0.5 ms 4. LinkedList add(end): 0.6 ms 5. ArrayList add(middle): 45 ms 6. LinkedList add(middle): 42 ms ArrayList dominates for random access. LinkedList barely wins for middle insertions. ArrayList uses contiguous memory with O(1) indexed access. LinkedList requires traversing nodes for O(n) access. Default to ArrayList unless you're doing frequent insertions at specific positions.




@davepl1968 C++ if we are being intellectually honest. No love my man Bjourne?
















