How to Learn Programming?

College student interested in investing. I know a lot about investing, but have no programming knowledge whatsoever. How would you guys recommend learning how to program? I've seen that some HFs require hackerranks and leetcode, which surprised me.

Now with AI, it's somewhat easy to create projects and whatnot, but that wouldn't help me pass the aforementioned OAs -- which is why I took to here to ask y'all how you'd recommend learning programming nowadays to pass these (and utilize them for the job). I'm interested in macro investing (mainly discretionary) for background.

2 Comments
 

To get started with programming as a college student interested in investing, here's a structured approach based on the most helpful WSO content:

1. Choose the Right Programming Languages

  • Python: Highly recommended for finance due to its versatility and ease of use. It's great for data analysis, backtesting strategies, and working with financial models.
  • SQL: Essential for data retrieval and organization, especially in financial planning and analysis roles.
  • VBA: Useful for Excel-based programming and automating financial tasks.
  • R: If you're leaning towards portfolio or asset management, R is excellent for statistical analysis and handling large datasets.

2. Start with Beginner-Friendly Resources

  • Platforms like Codecademy, Udemy, or Coursera offer beginner courses in Python, SQL, and VBA.
  • For Python, Andrew Ng's Machine Learning course on Coursera is a great resource to explore once you have the basics down.

3. Practice with Real-World Applications

  • Use Python to backtest investment strategies or analyze financial data. Python's libraries like Pandas, NumPy, and Matplotlib are particularly useful.
  • Practice SQL by working with financial datasets to retrieve and manipulate data.
  • Explore VBA to automate repetitive tasks in Excel, such as creating financial models or running scenario analyses.

4. Prepare for Online Assessments (OAs)

  • Platforms like HackerRank and LeetCode are excellent for practicing coding challenges. Focus on:
    • Data structures (arrays, linked lists, stacks, queues).
    • Algorithms (sorting, searching, dynamic programming).
    • SQL challenges for database-related problems.
  • Start with easy problems and gradually move to medium and hard levels.

5. Build Projects

  • Create small projects to solidify your learning and showcase your skills. For example:
    • A Python script to analyze stock price trends.
    • A SQL database to store and query financial data.
    • A VBA macro to automate portfolio tracking in Excel.

6. Leverage AI Tools

  • Use AI tools to assist in coding, debugging, and generating ideas for projects. However, ensure you understand the underlying logic to perform well in OAs and interviews.

7. Adopt a Consistent Learning Routine

  • Dedicate a few hours each week to learning and practicing programming.
  • Join online communities or forums (like WSO) to stay motivated and seek guidance.

By following this roadmap, you'll not only prepare for online assessments but also develop practical programming skills that are highly valuable in the finance industry.

Sources: Learning coding on your own for finance?, Programming/Technical Skills for Finance: SQL and Python, Programming/Technical Skills for Finance: SQL and Python

I'm an AI bot trained on the most helpful WSO content across 17+ years.
 

Voluptatem nisi id delectus non eius. Consectetur ut et nisi adipisci. Quia eaque velit delectus. Provident aspernatur et omnis. Eius veritatis iste atque. Voluptatem eaque repellat ut. Atque tempore dignissimos suscipit quasi quis.

Career Advancement Opportunities

August 2026 Hedge Fund

  • Point72 99.0%
  • D.E. Shaw 98.1%
  • Citadel Investment Group 97.1%
  • AQR Capital Management 96.2%
  • Magnetar Capital 95.2%

Overall Employee Satisfaction

August 2026 Hedge Fund

  • Magnetar Capital 99.0%
  • D.E. Shaw 98.0%
  • Blackstone Group 97.1%
  • Citadel Investment Group 96.1%
  • Millennium Partners 95.1%

Professional Growth Opportunities

August 2026 Hedge Fund

  • AQR Capital Management 99.0%
  • Point72 98.1%
  • D.E. Shaw 97.1%
  • Citadel Investment Group 96.2%
  • Magnetar Capital 95.2%

Total Avg Compensation

August 2026 Hedge Fund

  • Portfolio Manager (9) $1,648
  • Vice President (27) $464
  • Director/MD (12) $423
  • NA (9) $320
  • Engineer/Quant (86) $288
  • 3rd+ Year Associate (26) $284
  • Manager (4) $282
  • 2nd Year Associate (32) $253
  • 1st Year Associate (77) $191
  • Analysts (242) $181
  • Intern/Summer Associate (29) $145
  • Junior Trader (5) $102
  • Intern/Summer Analyst (282) $96
notes
16 IB Interviews Notes

“... there’s no excuse to not take advantage of the resources out there available to you. Best value for your $ are the...”

Leaderboard

1
redever's picture
redever
99.2
2
kanon's picture
kanon
99.0
3
BankonBanking's picture
BankonBanking
99.0
4
Secyh62's picture
Secyh62
99.0
5
GameTheory's picture
GameTheory
98.9
6
dosk17's picture
dosk17
98.9
7
DrApeman's picture
DrApeman
98.9
8
Betsy Massar's picture
Betsy Massar
98.9
9
CompBanker's picture
CompBanker
98.9
10
bolo up's picture
bolo up
98.8
success
From 10 rejections to 1 dream investment banking internship

“... I believe it was the single biggest reason why I ended up with an offer...”