Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6832645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:53:01+00:00 2026-05-26T22:53:01+00:00

creating a very simple scheduling app I am asking the user to tell me

  • 0

creating a very simple scheduling app

I am asking the user to tell me what day(s) they work, and whether on a given day they work morning, lunch, or evening

so, for a given user her data could be one or all of the points in the following matrix

        morning    lunch    evening
mon
tue
wed
thr
fri
sat
sun 

I need to quickly be able to retrieve this information so that I can alert the user that it’s time to go to work. I will have many users.

I don’t care about specific dates, or time. just the discrete days 1 through 7 and the 3 slots within each day. Certainly, there are many possible combinations.

I am considering how to store this information. And I am wondering if a bitmask is appropriate / feasible / the ‘way to go with something like this’ ? How would you approach this?

thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:53:02+00:00Added an answer on May 26, 2026 at 10:53 pm

    While a bitmask will definitely work (employing 7 days X 3 shifts = 21 bits), my experience with these things is they always need modification. That is, a night shift is added, or shifts are otherwise changed.

    Given that, I’d suggest building some flexibility into your app. Combine the bitmask idea with a table that defines what the bits represent. That way you can redefine and modify as you please. If you add a shift, just add a record to the definition table and update each employee’s mask.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating a very simple timeshare application using Sinatra and Datamapper. Every user in
I'm creating a very simple bookmarks menu for my app. I just need to
I am working on creating a very simple app. 2 buttons, both play sound.
I'm creating an app on android in java, very simple, which has a button
I'm creating a very simple django upload application but I want to make it
I am creating a very simple forum as my first MVC project. My database
I am experiencing some performance problems when creating a very simple Python HTTP server.
I'm creating a web app with Django. Since I'm very familiar with Apache I
i'm creating a very simple (hello World quality) web application using spring mvc 3.0.
Hi guys I'm creating a very simple socket server that lets its clients save

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.