Does Chatgpt Make People Do Stupid Stuff?
FleetingThose are real life example of stuffs I saw.
dockerfile spurious bash -c
RUN bash -c 'shuf -n 1 -e a b c'
instead of
RUN shuf -n 1 -e a b c
When informing the person about the alternative, I get the answer “Yes, but it works that way” (see does chatgpt make people loose critical thinking?)
good commit message?
The commit updates a database table and adds some data.
+ALTER TABLE applications
+ADD COLUMN name TEXT NOT NULL DEFAULT ('app_' || substr(gen_random_uuid()::TEXT, 1, 8));
+
+UPDATE applications
+SET name = 'XXX'
+WHERE app_id = 'YYY';
+
+INSERT INTO applications (
+ app_id,
+ jwks_uri,
+ name
+) VALUES (
+ 'AAAA',
+ 'BBBB',
+ 'CCCC'
+);
The commit message
feat: Add name column to applications table
This commit adds a new column named "name" to the applications table in the database. The column is of type TEXT and has a default value of 'app_' followed by a randomly generated UUID. The commit also includes an update to set the name of a specific application to 'XXX' and an insert statement to add a new application with a specific app_id, jwks_uri, and name.
This 364 character lines describes exactly what the commit does. It does not tell anything about the intent, why this was done. It is even easier to find out this information looking at the sql code rather than this one line description.