The Straight Dope

Go Back   Straight Dope Message Board > Main > General Questions

Reply
 
Thread Tools Display Modes
  #1  
Old 05-11-2010, 07:19 AM
Sparky812 Sparky812 is offline
Member
 
Join Date: Aug 1999
Location: Great White North
Posts: 2,358
Computer Programs?

Unfortunately, the days of my Assembly, Fortran, C and, Pascal are well behind me. I'm looking to write or download some simple software that would match a name to several different variables. So that I could call up info as needed.
I remember doing this with arrays, stacks, and pointers back in the 80s, how would one go about writing this code today?

i.e. Each employee is issued a set of keys. The database may include name, keys, and room number. If I enter a name, it would return a list of their keys. If I enter a type of key, I would get a list of who has that particular type of key. Same with room number.

Similarly, what about names, colour/make of car, license plate, and parking pass number?

IANIHS (I am not in high school! ) and this is not an assignment. I am trying to develop a system for my employees to track this information by using the computer instead of scribbling down the info on scraps of paper, Post-Its, etc!

Last edited by Sparky812; 05-11-2010 at 07:22 AM.
Reply With Quote
Advertisements  
  #2  
Old 05-11-2010, 07:36 AM
j_sum1 j_sum1 is offline
Guest
 
Join Date: Jul 2003
Sounds like the kind of thing that Microsoft Access was designed for. (Not that I have ever had occasion to actually use the thing.)
If it was me, I would probably put together something clutzy but functional in excel.
Reply With Quote
  #3  
Old 05-11-2010, 07:36 AM
johnpost johnpost is offline
Guest
 
Join Date: Jul 2009
FreeBasic will give you all the power for you to code your own database.

Open Office ( www.openoffice.org ) has a database in it.
Reply With Quote
  #4  
Old 05-11-2010, 08:04 AM
Mangetout Mangetout is offline
Charter Member
 
Join Date: May 2001
Location: Kingdom of Butter
Posts: 47,514
Although you can still do this kind of task with arrays, pointers, etc, implementation of such a system is nowadays nearly always built on top of a table-based database.

Desktop applications such as MS Access (mentioned by j_sum1) incorporate the database with all the tables together with design tools for creating an interface, etc into a single package, but it's also possible to create the data structures in something that is more purely a database (say, SQL Server, Oracle, MySQL) and program the interface (AKA 'front end') using some general-purpose application development toolset wuch as Visual Basic. Visual C++, PHP, Java - however, this kind of approach is more common with larger applications holding bigger and more complex datasets and having multiple users, etc.

Access will do everything you need at the moment, but it's not free.
Reply With Quote
  #5  
Old 05-11-2010, 08:20 AM
Sparky812 Sparky812 is offline
Member
 
Join Date: Aug 1999
Location: Great White North
Posts: 2,358
Quote:
Originally Posted by j_sum1 View Post
Sounds like the kind of thing that Microsoft Access was designed for. (Not that I have ever had occasion to actually use the thing.)
If it was me, I would probably put together something clutzy but functional in excel.
Thanks for all for the input everyone. I have been trying to use Excel but it doesn't really do what I need. I'll try OpenOffice and/or MS Access, but really... as a former programmer I know that it is a pretty simple program that I could write myself if I knew what "the kids use these days"
To buy a whole software package seems overkill to me!

ETA missed the Freebasic post..I'll may try that depending on how my memory serves.

Last edited by Sparky812; 05-11-2010 at 08:22 AM.
Reply With Quote
  #6  
Old 05-11-2010, 08:52 AM
Khendrask Khendrask is offline
Member
 
Join Date: Feb 2010
Location: Nowhere, South Carolina
Posts: 535
In addition to FreeBasic and OpenOffice, you can also use the Microsoft "Express Edition" development software for free. Either Visual Basic Express, or Visual C# Express are both fairly simple to work with, and incorporate simple database hooks. For the database, you can use MS SQL Server Express, which is again, free, and extremely powerful.

ETA - Access would probably work fine, but if you get into a multi-user environment, I find Access very difficult to manage, as it has problems with table locks. SQL Express doesn't have that issue at all.

Last edited by Khendrask; 05-11-2010 at 08:54 AM.
Reply With Quote
  #7  
Old 05-11-2010, 09:40 AM
Gagundathar Gagundathar is offline
Guest
 
Join Date: Jan 2010
One caveat is that the development environment in the express editions of VB and VC++ is a bit buggy. SAVE YOUR WORK OFTEN because I have had the most recent changes disappear in the bit bucket if I don't manually hit the ctrl-S button prior to a compile. Otherwise, it is a useful and free dev env.
Reply With Quote
  #8  
Old 05-11-2010, 10:06 AM
don't ask don't ask is offline
Member
 
Join Date: May 2001
Location: Sydney, Australia
Posts: 14,899
I think you'd be able to do what you are talking about in Excel with nothing more than selecting autofilter.
Reply With Quote
  #9  
Old 05-11-2010, 10:15 AM
Sparky812 Sparky812 is offline
Member
 
Join Date: Aug 1999
Location: Great White North
Posts: 2,358
Quote:
Originally Posted by don't ask View Post
I think you'd be able to do what you are talking about in Excel with nothing more than selecting autofilter.
I don't want just a spreadsheet, I need to cross reference info., maybe differently each time.
If you know how to get Excel to do that please let me know.

ETA, actually Excel might work for the second application...

Last edited by Sparky812; 05-11-2010 at 10:18 AM.
Reply With Quote
  #10  
Old 05-11-2010, 11:27 AM
Kinthalis Kinthalis is offline
Guest
 
Join Date: May 2003
I'll go ahead and second the Visual Studio suggestion. VS 2010 Express is now available and it's probably one of the best development environments out there.

You can also target multiple solutions with your code making it easy to deploy to desktop, internet, and mobile devices (well, windows mobile devices, though you can also apply some of your code to android and apple devices too with some help).

So, for example, you can have a desktop app that runs on a server attached to the database and have clients that could be your employees accessing an asp or silverlight web (or native) application from mobile devices or desktop clients at the sign in desk, all talking to one another. Pretty simple to pull off too, and all in one environment, with any of the .net managed languages (VB.net, C#, F#, C++).

Last edited by Kinthalis; 05-11-2010 at 11:29 AM.
Reply With Quote
  #11  
Old 05-11-2010, 01:02 PM
Chronos Chronos is offline
Charter Member
 
Join Date: Jan 2000
Location: The Land of Cleves
Posts: 47,968
Personally, I'd use awk for that, but then, I'm just a big fan of awk. It's probably easiest to use a spreadsheet.
Reply With Quote
  #12  
Old 05-11-2010, 08:50 PM
DanBlather DanBlather is offline
Guest
 
Join Date: Jul 2001
This would be a trivial web app. PHP script to access MySQL. MySQL is free for both Windows and Linux
Reply With Quote
  #13  
Old 05-11-2010, 10:45 PM
AHunter3 AHunter3 is offline
Charter Member
 
Join Date: Mar 1999
Location: NY (Manhattan) NY USA
Posts: 15,758
I would do it in FileMaker, of course.
__________________
Disable Similes in this Post
Reply With Quote
  #14  
Old 05-12-2010, 01:15 AM
BigT BigT is offline
Guest
 
Join Date: Aug 2008
Quote:
Originally Posted by johnpost View Post
Open Office ( www.openoffice.org ) has a database in it.
Yes, but it's pretty much crap. We've recently had a thread or two of people asking how to do something in it, and it turned out the answer was "You can't." And it was pretty simple stuff, too.

Access is really the better choice, but Excel will work, too. If you've got Excel and dont' want to pay for Access, use that.

And, yes, these other options will work, too. Access or Excel are just really, really easy.
Reply With Quote
  #15  
Old 05-12-2010, 02:11 AM
Reply Reply is offline
Guest
 
Join Date: Jul 2003
Quote:
Originally Posted by Sparky812 View Post
I don't want just a spreadsheet, I need to cross reference info., maybe differently each time.
If you know how to get Excel to do that please let me know.

ETA, actually Excel might work for the second application...
I wanted to plug Zoho Creator. Zoho is an online office suite that competes with Google Docs and Creator is their equivalent of Access.

It's very easy to use. From never having used it before (I just know of Zoho because their word processor and spreadsheet are much better than Google's), I made a database app doing exactly what you wanted in 5 minutes. You drag and drop fields (Name, Room #, Keys [as a text field or checkboxes or drop-down box]) and then you can search the resulting database using any criterion or combination of criteria (e.g. only people who have keys to the office AND are in room 101).

Excel would work just fine for the purpose too, using exactly what don't ask suggested - autofilters. Make a spreadsheet, separate different values with commas, and then use custom autofilters to display only rows that have "key CONTAINS 'office'", for example.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:22 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Send questions for Cecil Adams to: cecil@chicagoreader.com

Send comments about this website to: webmaster@straightdope.com

Terms of Use / Privacy Policy

Advertise on the Straight Dope!
(Your direct line to thousands of the smartest, hippest people on the planet, plus a few total dipsticks.)

Publishers - interested in subscribing to the Straight Dope?
Write to: sdsubscriptions@chicagoreader.com.

Copyright © 2013 Sun-Times Media, LLC.