Making things the hard way
#8
That is not the way I was taught in regards of programming. Then again, I was taught structured languages such as Cobol which is used for business programming.

One should teach a programmer to include safeguards to prevent errors from occurring, not teach them to forego errors so they appear. And whilst my revision of your calendar month code has a safeguard, it still replies with an 'invalid' heading. It doesn't cause a downfall and sudden crash of the program, and still allows the user to see the month title as such. Then again, your code too includes a line ( "invalid",) in the event of an invalid value. Just throw a command of int_month(0) into the system. A month of 0 is invalid, correct?

One should always strive for error-free code, and all functions/methods should be expected to perform with proper data, or recognize data that is invalid and have a way to handle such. Certainly safeguards should be put into place to handle the testing of bitmaps before they are disposed. And of functions and methods receiving values unexpected or not worth processing, one should always account for such events.

I think you should recognize that programming is a mixture of both the logical and empirical. When we study, we observe and run tests for both observation and practice. When we develop a system, we do so with the understanding and logic of how the systems work as our foundation. I would suggest that merely those learning are those coding empirically. However, those that continue will develop their own guidelines and theories how to code based upon such study.

The hard way to code is where one allows errors to constantly creep up because one does not plan ahead. This forces one to repeatedly hunt for the error unseen and constantly make fix after fix. Typos not withstanding.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }


Messages In This Thread
Making things the hard way - by kyonides - 09-24-2018, 02:28 AM
RE: Making things the hard way - by DerVVulfman - 09-24-2018, 04:31 PM
RE: Making things the hard way - by MetalRenard - 09-25-2018, 12:17 AM
RE: Making things the hard way - by DerVVulfman - 09-25-2018, 03:24 AM
RE: Making things the hard way - by kyonides - 10-01-2018, 07:59 AM
RE: Making things the hard way - by DerVVulfman - 10-02-2018, 03:10 AM
RE: Making things the hard way - by kyonides - 10-02-2018, 01:24 PM
RE: Making things the hard way - by DerVVulfman - 10-02-2018, 11:59 PM
RE: Making things the hard way - by kyonides - 10-03-2018, 12:55 AM
RE: Making things the hard way - by DerVVulfman - 10-03-2018, 03:36 AM
RE: Making things the hard way - by kyonides - 12-10-2021, 08:53 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Making a "Wait Until Button Input" PK8 1 6,344 05-28-2012, 12:50 PM
Last Post: yamina-chan
   Making a Successful comedy RPG DerVVulfman 0 5,299 05-17-2011, 05:18 AM
Last Post: DerVVulfman
   The Ultimate Guide for Making Nifty Fantasy RPGs by Magus Masque DerVVulfman 5 11,453 06-07-2010, 02:44 PM
Last Post: sakhawat21
   Making an Impact, Part 3 Kaos Tenshi 0 3,880 01-19-2009, 05:33 PM
Last Post: Kaos Tenshi
   Making an Impact, Part 2 Kaos Tenshi 0 3,826 01-19-2009, 05:30 PM
Last Post: Kaos Tenshi
   Making An Impact, Part 1 Kaos Tenshi 0 3,905 01-19-2009, 05:26 PM
Last Post: Kaos Tenshi
   Rose Skye's Game Making Tips RoseSkye 0 3,714 12-06-2008, 05:06 PM
Last Post: RoseSkye



Users browsing this thread: 1 Guest(s)