Quote:
Originally Posted by Paulice
SQL (for what a beginner needs it for) is in no means any harder than implementing Y_INI (I actually find INI more "complicated?" and frustrating), at least SQLite (MySQL is a bit more extensive). Remember that a beginner doesn't simply magically write code, they most likely get code from tutorials/documentation. All one needs to do really is learn how to write SQL statements.
|
You answered yourself why it will be hard to implement SQL into a script.
This is rather starts to be an in-acknowledgement in the difference between editing ini and sql.
ini requires zero configuration. zero setup. its simply a plug-n-play.
You not need to mass with sys administration, ini playground consists of native functions such as fopen, fwrite, fread and fclose which work on win and linux with no need of pre-installation.
Nevertheless, with ini files you don't need to worry about table structure, its efficiency, authorization, compression, joins, keys, field(column) type, field defaults, and although most probably events won't be touched, but its also a feature which can be utilized.
Yet, in ini you don't need to set any of that.
Upon every ini function, the code will be similar (relevant to y_ini) which is basically open the file, choose a header/tag to follow and read/write the key=value
SQL has far more steps than an ini file.
Moreover, you mentioned a "copy paste" code, which queries is not at all one of these kinds.
Writing queries requires acknowledgement of what your current table structure is, what columns exists on his setup and what's their type. SQL is far beyond than those just "select", "update", "delete" and "insert"
``
All one needs to do really is learn how to write SQL statements.``
Nevertheless, (in mysql) people then need to learn the difference between a query which uses the main thread, separate thread and in a pool. (mysql_query, mysql_tquery, mysql_pquery)
Then (in any rdbms) they'll need to understand what is escaping, when to use it and why it exists.
with ini, you won't need to learn any of these.
Still, ini is a plug and play.
Of course you can go with the basics of SQL, use SQLite to avoid installing RDBMS software on your machine (afaik SQLite comes pre-installed on Windows), not know what is the difference between SQLite and MySQL because its not explained on tutorials and use the same table for the rest of your project's life, yet the learning curve here is in my opinion is far less steep than with ini.