Home > Articles > Business & Management > Personal Development

Overcoming Obstacles as a Beginner, a Minority, or a Woman in Computer Science

Allison Collier, a freshman computer science student at Virginia Tech, discusses how to succeed in computer science despite the adversity beginners, minorities and women may experience while pursuing a CS major or minor.
Like this article? We recommend

Computer science can be an intimidating subject for anyone to study. It can be even more intimidating if you’re a woman, because only 18% of computer science majors in college are women. It can be extremely intimidating when looking at the field as a minority, because the percentage of minorities majoring in computer science is even smaller. From my perspective as a black woman, this disparity is frightening.

Disregarding computing’s lack of diversity for a second, the subject of computer science can seem menacing in and of itself. I believe that the perception of the difficulty of computer science stems from the answer to the question “What is computer science?”

The answer I heard the most was, “It’s when you make programs by writing code on a computer.” And that was usually followed with phrases like “Doesn’t that sound cool?” and “Eventually, you can make programs just like Microsoft Word.”

When people said that to me, I felt kind of scared. Yes, it does sound cool to be able to write code and program amazing software that millions of people will use on a daily basis, but looking at all of the features that programs like Microsoft Word has and imagining coding all of that from scratch seemed impossible. Especially because, in my freshman CS class, we aren’t going to cover the complex data structures needed to even begin writing a word processing program like Microsoft Word.

Not to mention the fact that many students in my CS class, including myself, are struggling with some of the concepts and logic that you must learn in order to succeed in CS. How are we supposed to even picture writing anything complex when we’re struggling to understand the most basic material? How are we to hope that we can persevere through the CS program when, during our first CS class, we all seem to simultaneously hit a wall that blocks us from the knowledge we try so desperately to grasp?

Learning programming is hard, but with the right tools, support, and frame of mind, it can be done. In this article, I discuss how the media has a negative effect on diversity in computing. I also talk about the challenges I’ve faced as a woman, a minority and a newbie in Computer Science, and offer some advice for how to persevere and overcome those challenges.

How the Media Affects Computing’s Diversity

One reason that young people shy away from computer science is the image that the media has given to computer scientists, which is that it’s not all too glamorous. The stereotype commonly depicts a white male with either an awkward, lanky frame or a heavy, round figure. This stereotype is usually accompanied by acne, large thick-rimmed glasses, and ill-fitting clothing that was popular in the 1950’s. Their personalities range from being extremely soft spoken and weak to extremely annoying and boorish in a “know-it-all” sense.

It’s hard for children and teenagers to relate to characters that are that extreme, especially girls and minorities. This stereotype perpetuates the idea that computer science is not for you if you aren’t white, male, or a genius (as many students may not “know-it-all”). Also, these images are not going to appeal to people who care about fashion and they won’t appeal to women or minorities because, speaking from experience, we don’t want to be the only person in the room with a different gender or skin color. Being singled out for our differences is uncomfortable and most times undesirable, and I understand why people try to avoid that kind of environment as often as possible.

These kinds of labels are the reason why that wall of learning that every budding computer scientist must face seems that much more impossible if you are a woman or a minority. There are so few examples of women and minorities in computer science in the media that we can look at and aspire to be like.

I chose to go into CS primarily because I fell in love with fixing problems and creating projects with code, but I also saw it as an opportunity to be a role model who could encourage young women to pursue CS by example. I felt encouraged to break the negative and exclusive stereotypes that people in CS are often given in the media because of the lack of role models and positive portrayals of people in CS that I saw in my childhood.

My Experiences with Computer Science in High School and College

I thought my first Computer Science class  in college would be a breeze. I took computer science classes in high school-- one in C++ and one in Java. The Java course was Advanced Placement (AP) Java, and while I did well on the programming aspect of the course, I struggled with pacing through loops and if-else logic manually. I thought that I would understand how to go through the logic as the year progressed, but while I understood the String and GridWorld APIs just fine, I still had trouble stepping through the logic.

Although I knew I wasn’t prepared, I took the AP test in the spring anyway and received a 2. The only way the credit would have transferred to my institution of choice was if I had received a 4 or 5. I took this as a sign that I definitely needed to be refreshed on the material and figured that college was the perfect place to start fresh.

I started with Introduction to Software Design. I was excited to begin learning techniques that are necessary to become a successful software engineer, and I figured since I already took AP Java, I had at least seen most of this material before.

It turns out that I was right and wrong. When the class started out, I knew all the material, but I still took notes in class. I answered questions when prompted and started the homework ahead of time. Everything was going well. The first test was a piece of cake.

Unfortunately, as the semester progressed, I had to put more time into my other classes, and sometimes CS was put on the back burner.

Because of this, I didn’t study as hard for my CS midterm. My first mistake was assuming that the second test would be just as easy as the first one. My second mistake was not taking the time to really look at the material before the test. I didn’t do well.

What happened? The material on the test was  the topic I struggled with the most: logic. When I received my grade after the exam, I felt depressed. There I was again at the same wall that I faced during high school. . While one barrier keeping people from flocking to CS is the image given to computer scientists by the media,  another barrier is the actual content.  There’s no doubt about it: learning to program is hard.

Tips on Learning to Program

There is good news. While there may not be many role models for us to look up to, we can become the role models that young girls and minorities can look up to in the future (or even right now). We just have to make it over that wall. I have a few suggestions that I think can benefit beginners who may be experiencing the wall:

  1. Manually debug your code with pen and paper.
  2. Sometimes it’s better to debug the old fashioned way. This method can be extremely tedious and confusing at times, but if you can manage to struggle through it, computer science will become less frustrating, especially as you begin to learn more complex topics.

  3. Begin discovering how code works by debugging it in a compiler.
  4. I had never heard of a debugger before this semester because I didn’t use it in my previous computer science classes, but this tool is really helpful to start with. It can benefit you tremendously if you’re having trouble finding out how the computer is implementing your code if it doesn’t act as expected.

  5. Write test cases.
  6. I also had never written a test case before this semester, but they are also a really great way to understand how your code can fail. Testing my code also helped me understand that it’s so much better to test your code as you write it. I cannot stress that enough! You will save so much time time if you can identify which components of your program are failing.

  7. Ask a TA or friend to look at your code.
  8. Sometimes it can be hard to see exactly what’s wrong with your code if you’re just looking at it yourself. Having a friend work through the code with you can reveal a logical error that you may have overlooked.

  9. Look at the way you’re formatting your code.
  10. It took me half a semester to really comprehend that there are more effective, shorter ways to write code. If you’re struggling with understanding why your code isn’t working or if you think your code can be shorter, break it up into smaller pieces (methods, functions, etc.) to make it easier to read. Also (boolean specific advice), if you are using if-else statements, always write the conditions so that they will test if the code is false first then, at the end, if all of those fail you can return true. This will make your code so much shorter and less convoluted!

What I’ve come to realize is that the logic behind CS is not something that can be avoided if I am to become a good computer scientist. I need to be able to step through loops and if – else statements with ease if I am to really understand how code works. It can be really tempting to just give up and say, “I’ll just let the compiler debug my program” when manually debugging the program not only helps my understanding of how my code works, but also makes me feel more competent as a coder. While it’s great to ask people for help, sometimes it can be really satisfying to know that you can find the answer on your own through pen, paper, and a lot of patience. I know it’s going to take a lot of effort on my part to climb this wall, but in the end I know it will make me a better computer scientist.

Advice on Being the Only Woman or Minority

When it comes to advice on how to deal with being the only woman or only minority in a computer science class, the best thing to do is try to make friends. There are always going to be people in these classes that think that you may not be capable because you are a woman or because you are a minority. I’ve found that most people are struggling just as much as (if not more than) you are. Maybe it will be different as I enter upper level courses, but right now, I can say that everyone tries their best to help everyone out regardless of race or gender.

I consider myself lucky, as I know that this may not be the case for many other women and minorities starting out in CS. If you are facing mild discrimination in your classes (i.e. the occasional sexist/racist remark), I would, first, recommend telling them that those comments bother you. If that doesn’t work, prove to them that you’re just as good as, if not better than, they are at coding. Lastly, I would recommend finding a network of people from whom you can receive specific advice. For me, the knowledge of having the NCWIT Award for Aspirations in Computing recipients network is very comforting as I continue through CS because I know that I can always ask them for advice or even just vent my frustration with CS topics, sexism, racism or anything, really.

If you are experiencing extreme discrimination in your classes (i.e., harassment), talk to your teacher or a school official, because that behavior is unacceptable and should not be tolerated.

The best thing to do when facing adversity, whether it be from other people, societal perception, or the course material, is to remember that the situation that you are in is not permanent and you will get through this. I try to remind myself of that as finals week approaches. We will get through this. We will dominate this wall.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information

To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.


Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.


If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information

Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.


This site is not directed to children under the age of 13.


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information

If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information

Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents

California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure

Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact

Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice

We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020