Posts: 1,192
Threads: 10
Joined: Dec 2017
Reputation:
0
Use pastebin/github to give us an easier view of the code.
Posts: 716
Threads: 92
Joined: May 2018
Quote:
Originally Posted by ******
Oh dear...
So the "innovations" I can see there are:
1) Using a 15 year old library (which wasn't even the best available at the time), instead of something good.
2) Inventing a new date format that isn't sorted, instead of using ISO 8601.
3) Using a library designed for updatable key/value pairs for linear data. Even using y_ini here would not be god because INI parsers have to check the entire file each time you write a value to see if that value already exists and replace it.
4) Stemming from (3) - the ability to write a maximum of one log entry per second and no more (because the INI system will replace the old one with the same time, because it isn't designed for log data).
Good innovations there...
|
THE FUTURE
Posts: 1,915
Threads: 64
Joined: Jan 2016
Reputation:
0
And your example won't even works.
Posts: 156
Threads: 0
Joined: Jun 2016
Quote:
Originally Posted by ******
Oh dear...
So the "innovations" I can see there are:
1) Using a 15 year old library (which wasn't even the best available at the time), instead of something good.
2) Inventing a new date format that isn't sorted, instead of using ISO 8601.
3) Using a library designed for updatable key/value pairs for linear data. Even using y_ini here would not be god because INI parsers have to check the entire file each time you write a value to see if that value already exists and replace it.
4) Stemming from (3) - the ability to write a maximum of one log entry per second and no more (because the INI system will replace the old one with the same time, because it isn't designed for log data).
Good innovations there...
|
What to say, **** these days?
Posts: 1,046
Threads: 29
Joined: Mar 2010
Logging using INI files, nice!
Posts: 6,242
Threads: 8
Joined: Jun 2008
There was actually a thread I replied to months back about using an ini include to do logs. That's just messed up as heck.