Notes from the field

Computer PC Tips - bits and bytes, News Items, Software development, Software development Concepts
In writing "Notes from the field" allows Baron Software to list quick fixes or observations from the programming world. Anchors away! Using PHP and HTML it can remember the window position as to where the user left off. Without the need of elaborate coding using an "Anchor" can solve the issue. Anchor Syntax <a id="anchor-name">The name where you want to jump</a> Anchors can be used when pages have considerable amounts of text. You would typically make an index at the top of the page linking to the anchors that have been added to key places in the text that follows. When displaying a list of records within a PHP while loop you can place the record ID within the data. The code listed below has the anchor next to the…
Read More

Steps for a successful code review

Computer PC Tips - bits and bytes, Rad Studio Delphi Development, Software development, Software development Concepts
Successful programming teams always have followed department or company guidelines on how code reviews should be done. Technical specifications provide the programmer the initial steps for application development. Excellent specifications provide insight on libraries and APIs. The coding standards should be part of this document. Preparing for a code review Self checking items: What are the company policies ?Did you follow company coding standards ?Have you read the company guidelines ?Did the code successfully compile ?Was testing successful ?Check for duplicate code or very large functions and procedures. These steps should be adhere to by any programmer. Code should be formatted and indented. Comments listed at the top of the module providing a brief description along with update history. You must be able to accept any type of criticism. This…
Read More

Gotchas when using Delphi Update

Rad Studio Delphi Development, Software development Concepts
Sometimes when you are programming using Embarcadero Delphi you will come up with a few Gotchas. These are not bugs but more as a pain. Initially you create an application in a debug mode while you are testing the code. You have a icon for the application making it look professional and just go to the release state. The icon may or may be what you expected. Your debug application has the correct icon but your release doesn't. Pretty strange but Windows keeps an icon cache. The simple thing would be to rename your executable and suddenly it looks good. You wonder why Windows would do that ? It is Windows and you have to live with that. Click on this link to see what else you can do to…
Read More

Terminating an Application when using Delphi

Rad Studio Delphi Development, Software development Concepts
Sometimes there are reasons to terminate an application due to unforeseeable issues and there has been a lot of talk how to handle this event. Let's go over a simple application and break down what needs to be done. Go to the code The initial code opens up a splash screen, displays it and finally releases it after a few moments. Splashscreen.Show; Splashscreen.Update; Sleep(2000); Splashscreen.Free; Application.Initialize; The application defaults are set with the title and the help file as well as creating the data module along with the login screen. Application.DefaultFont.Name := 'Arial'; Application.MainFormOnTaskBar := True; Application.Title := 'Application Name'; Application.HelpFile := ExtractFilePath(Application.ExeName) + 'Help.CHM'; Application.CreateForm(TDM, DM); Application.CreateForm(TfrmLogin, frmLogin); The application at this point will open up the login screen allowing the user to enter their information. The license is…
Read More

High number of adults unable to do basic mathematical tasks

News Items, Software development Concepts
High number of adults unable to do basic mathematical tasks Adults have had difficult times dealing with employment and career advancement but now there is proof that Adults cannot perform simple math. Participants were asked questions such as: "Suppose, upon your trip to the grocery store you purchase four types of tea packs: Chamomile Tea (US$4.60), Green Tea (US$4.15), Black Tea (US$3.35) and Lemon Tea (US$1.80). If you paid for all these items with a US$20 bill, how much change would you get?" Four in every ten adults in places like England, Canada, Spain and the US can't make this straightforward calculation even when they had a calculator to hand. Similarly, less than half of adults in places like Chile, Turkey and South Korea can get the right answer. The results clearly highlight how…
Read More