« first day (4946 days earlier)      last day (20 days later) » 

1:11 AM
if I'm making a separate file for some code that'll only be used in my main program (not planning to export it), is it still advisable to maintain specific separate .cpp and .hpp files?
or is it fine to just insert the code from a single .cpp file directly?
 
1:42 AM
That's up to individual's preference ... and depends on whether your main program has too many such functions. If there are hundreds of such functions, you might as well put it into a different cpp file.
If there are just one or two of such a function and they are repeatedly used in main, then you might as well put into the same file where main resides.
 
1:58 AM
@Someone if you're writing a 500 line utility tool, feel free to not use a header
 
 
11 hours later…
1:06 PM
 
 
1 hour later…
2:06 PM
@Someone Headers are only useful if you're using multiple files. If you're not, or a symbol shouldn't be externally visible... don't
 
 
2 hours later…
3:51 PM
Is it me or is the Linux kernel just not secure at all? I am really amazed by the number of vulnerabilities people discover in every kernel release. On average 10 vulnerabilities per month
 
4:07 PM
@LandonZeKepitelOfGreytBritn software.. software is not secure
Linux does have security model issues, but there isn't an OS that doesn't
also writing code that interfaces with hardware securely and reliably is... extremely hard
 
4:58 PM
@Mgetz what surprises me is that even if youre eg only 3 years behind wrt your kernel version there are loads of vulnerabilities that can be used against your system. How do people deal with that if they re unable to upgrade their kernel?
 
@LandonZeKepitelOfGreytBritn Can they? Just because a vuln is there doesn't mean it can be used easily. Many are very difficult to exploit. That doesn't mean they shouldn't be fixed. Just that they aren't hair on fire level panic
 

« first day (4946 days earlier)      last day (20 days later) »