I find mySQL boring...

Status
Not open for further replies.

NullPointerException

Level 12
Thread author
Verified
Aug 25, 2014
580
621
1,066
45
Nirvana/serenity/paradise/tranquility/heap.
I was re-reading Exceptional C++ book and I suddenly came across a comment.
Code:
Horrible code you don't want to see
(imagine code here) // Well, it's better than MySQL!
My mind dwelt in the 1996 MySQL class....it was horrible. And not to mention the only CS class aside from networking I found boring. Data is just so boring...

Code:
DROP DATABASE databaseName                 -- Delete the database (irrecoverable!)
DROP DATABASE IF EXISTS databaseName       -- Delete if it exists
CREATE DATABASE databaseName               -- Create a new database
CREATE DATABASE IF NOT EXISTS databaseName -- Create only if it does not exists
SHOW DATABASES                             -- Show all the databases in this server
USE databaseName                           -- Set the default (current) database
SELECT DATABASE()                          -- Show the default database
SHOW CREATE DATABASE databaseName          -- Show the CREATE DATABASE statement
-- Table-Level
DROP TABLE [IF EXISTS] tableName, ...
CREATE TABLE [IF NOT EXISTS] tableName (
   columnName columnType columnAttribute, ...
   PRIMARY KEY(columnName),
   FOREIGN KEY (columnNmae) REFERENCES tableName (columnNmae)
)
SHOW TABLES                -- Show all the tables in the default database
DESCRIBE|DESC tableName    -- Describe the details for a table
ALTER TABLE tableName ...  -- Modify a table, e.g., ADD COLUMN and DROP COLUMN
ALTER TABLE tableName ADD columnDefinition
ALTER TABLE tableName DROP columnName
ALTER TABLE tableName ADD FOREIGN KEY (columnNmae) REFERENCES tableName (columnNmae)
ALTER TABLE tableName DROP FOREIGN KEY constraintName
SHOW CREATE TABLE tableName        -- Show the CREATE TABLE statement for this tableName
-- Row-Level
INSERT INTO tableName
   VALUES (column1Value, column2Value,...)               -- Insert on all Columns
INSERT INTO tableName
   VALUES (column1Value, column2Value,...), ...          -- Insert multiple rows
INSERT INTO tableName (column1Name, ..., columnNName)
   VALUES (column1Value, ..., columnNValue)              -- Insert on selected Columns
DELETE FROM tableName WHERE criteria
UPDATE tableName SET columnName = expr, ... WHERE criteria
SELECT * | column1Name AS alias1, ..., columnNName AS aliasN
   FROM tableName
   WHERE criteria
   GROUP BY columnName
   ORDER BY columnName ASC|DESC, ...
   HAVING groupConstraints
   LIMIT count | offset count
-- Others
SHOW WARNINGS;   -- Show the warnings of the previous statement

I personally find the copy-pasted code
  • Boring at its best. Too high level for my C test. Even as compared to C#.
  • Syntax is strange for tradational programmers
  • Database is not used in computer science if you are going to be a computer scientist instead of a web developer.
  • It's known to have security bugs (99 little bugs, 99 little bugs, track one down, patch one down, 127 little bugs, 127 little bugs....)
What do you think as the end user or the programmer?
The documents do have sense of humor in them. I find them well-worth to read it, but sadly enough, not the language itself. Documents are great. MySQL itself is not....:(

Edit : If not exists is incorrect in English. Well you might say, "so what"? Because IS-A(n)-OBJECT is incorrect also in Java. But if MySQL tries to be high level, they should do it properly.
 
Last edited:
I won't lie, I don't like MySQL either. :D :p
MySQL is honestly one of the ONLY boring things in computer science. The other is networking (except the encryption), DNS TCP/IP ahhh, so boring....
C/C++ is great. C is one of my favourites. I use MySQL for some things... I just don't like the syntax.
I agree. C is the only language from a programmer to programmers. C++ is a language from a computer scientist to programmers. C# is a language from Microsoft to programmers (not bad, I love C#, but still, it's from Microsoft...) The rest is history.
 
Actually one of our professor told to those IT students that the most demand and engage must be in web development like using PHP/HTML and not on business type of VB.net except for Java and C/C++.
Nah, he must be living in future, because currently desktop rules web. And I really have no idea how people live as web designers, salary is too low.
Because web designers are the floor sweepers of computer science. They work for huge companies, but they find themselves to be a huge disappointment when they come across the word "compiler."
 
Nah, he must be living in future, because currently desktop rules web. And I really have no idea how people live as web designers, salary is too low.
Because web designers are the floor sweepers of computer science. They work for huge companies, but they find themselves to be a huge disappointment when they come across the word "compiler."
This is not true web designers are not sweepers. there is lots of options available with lots of money involved.
 
This is not true web designers are not sweepers. there is lots of options available with lots of money involved.
Web design has problems. For example, if your girlfriend's father asks what kind of job you have, you probably should not reply as "HTML and CSS designer", at least in Asia. Because even programmers in Asia can be taught as "jobless" because it is not well-developed in computers. The only way to "show off" to people in Asia is to say that you are either a doctor or an engineer. Or if to computers, a "computer scientist", because their thoughts are heavily modified after hearing the word "scientist."
 
Web design has problems. For example, if your girlfriend's father asks what kind of job you have, you probably should not reply as "HTML and CSS designer", at least in Asia. Because even programmers in Asia can be taught as "jobless" because it is not well-developed in computers. The only way to "show off" to people in Asia is to say that you are either a doctor or an engineer. Or if to computers, a "computer scientist", because their thoughts are heavily modified after hearing the word "scientist."
I do see what you mean. If you said to your girlfriends father you were a web designer or just a "software programmer" I don't think they would be much impressed and probably sets out a "bad impression"?
 
  • Like
Reactions: VirusAttak
I do see what you mean. If you said to your girlfriends father you were a web designer or just a "software programmer" I don't think they would be much impressed and probably sets out a "bad impression"?
Yes. Because computer science is not a "good enough" industry for the people of 20th century.
 
Web design has problems. For example, if your girlfriend's father asks what kind of job you have, you probably should not reply as "HTML and CSS designer", at least in Asia. Because even programmers in Asia can be taught as "jobless" because it is not well-developed in computers. The only way to "show off" to people in Asia is to say that you are either a doctor or an engineer. Or if to computers, a "computer scientist", because their thoughts are heavily modified after hearing the word "scientist."
Why even your are saying your are a web developer say you're running your own "company" or "business". You want girl not her father :D
 
Status
Not open for further replies.