Hacker Newsnew | past | comments | ask | show | jobs | submit | Trex_Egg's commentslogin

What does 22^f-300-1.689 means?


a contorted student id that he can reach me on


Heyo, thank you for your kind comment, I did recognise the student id but I wasn't sure if you wanted me to reach out or not, but I will do that now!


I am eager to have an example to explain how a "best practices" is making the software unbearable or slow?


Some C++ related 'best practices' off the top of my head:

- put each class into its own header/source file pair (a great way to explode your build times!)

- generally replace all raw pointers with shared_ptr or unique_ptr

- general software patterns like model-view-controller, a great way to turn a handful lines of code into dozens of files with hundreds of lines each

- use exceptions for error handling (although these days this is widely considered a bad idea, but it wasn't always)

- always prefer the C++ stdlib over self-rolled solutions

- etc etc etc...

It's been a while since I closely followed modern C++ development, so I'm sure there are a couple of new ones, and some which have fallen out of fashion.


> - put each class into its own header/source file pair (a great way to explode your build times!)

Only if you fail to use binary libraries in the process.

Apparently folks like to explode build times with header only libraries nowadays, as if C and C++ were scripting languages.

> - generally replace all raw pointers with shared_ptr or unique_ptr

Some folks care about safety.

I have written C applications with handles, doing two way conversions between pointers and handles, and I am not talking about Windows 16 memory model.

> - general software patterns like model-view-controller, a great way to turn a handful lines of code into dozens of files with hundreds of lines each

I am old enough to have used Yourdon Structured Method in C applications

> - use exceptions for error handling (although these days this is widely considered a bad idea, but it wasn't always)

Forced return code checks with automatic stack unwinding are still exceptions, even if they look differently.

Also what about setjmp()/longjmp() all over the place?

> - always prefer the C++ stdlib over self-rolled solutions

Overconfidence that everyone knows better than people paid to write compilers usually turns out bad, unless they are actually top developers.

There are plenty of modern best practices for C as well, that is how we try to avoid making a mess out of people think being a portable assembler, and industries rely on MISRA, ISO 26262, and similar for that matter.


> put each class into its own header/source file pair (a great way to explode your build times!)

Is that really sufficient to explode build times on its own? Especially if you're just using the more basic C++ features (no template (ab)use in particular).


Not at all, you can write in the C subset that C++ supports and anti-C++ folks will still complain.

Meanwhile the C builds done in UNIX workstations (Aix, Solaris, HP-UX) for our applications back in 2000, were taking about 1 hour per deployment target, hardly blazing fast.


Power over Ethernet (PoE) is a technique for delivering DC power to devices over copper Ethernet cabling, eliminating the need for separate power supplies and outlets.

Source: https://www.google.com/url?q=https://www.cisco.com/c/en/us/s...


Yes, but afaik CAN is not usually done over Ethernet


What's SoA?


Struct of Arrays


Thanks


Hey, the equation described in the post does seems to fit the expectations for some scenarios, but as the author mentioned it would be good to work around with much more real world data.

Thanks for the link, it is a good read.


Gwern had also written a long essay describing the same[1].

[1]https://www.gwern.net/Spaced-repetition


thanks will check that out


I recommend "Computer Systems: A Programmer's Perspective", as it also give a good explanation about how a computer works under the hoods.


Could you please name some of the microcontrollers that you are referring to?


check out NXP i.MX RT1060


This process feels like Feymann technique. Good one though.


Good points thanks for listing the same.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: