TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: What advice would you give to a computer science undergraduate?

18 pointsby hereisdxalmost 6 years ago
I am about to enter into the 2nd year of my CS course in university. The second year is when actual CS courses begin. I've had a basic C course. I have good knowledge of basic computer science, some algorithmic knowledge and a good experience with JavaScript and Node.JS. Yet, it would be great if I could get real advice / insights from professional computers scientists on things to explore ( in the CS field ) in college.

31 comments

startupdiscussalmost 6 years ago
The things that you think are going to take a long time will take a short time and the things you think will take a short time will take long.<p>So, for instance, if you have 4 hours scheduled to implement some neural network to optimize X, it may take 30 minutes to type in the algorithm and get it working, but it will take 3 hours to get the environment set up, the version of Tensorflow or whatever up and running, and much longer to type up your results.<p>So, hopefully, if you expect this, you won&#x27;t crumple in despair when you find your self 1.5 hours into the time and you haven&#x27;t even got the right language working with your IDE for that hello world to come up. No, you&#x27;re right on track, and just keep going.
oumua_don17almost 6 years ago
- Make 1 web application<p>- Make 1 mobile application<p>- Make 1 desktop application<p>- Nothing fancy for the above just some that solve simple problems, good if they solve your problems!<p>- Learn to use a version control.<p>- Try to intuit with hands on coding a hard domain you will like: graphics, AI, compilers. The trick is if you like the hard parts, you most likely like it!<p>- See if you can work with some professor where you can learn how to implement code for papers published in the hard domain you like.<p>- By the time your internship arrives, you can build a decent portfolio.<p>- And eat, sleep, exercise.<p>I know the above can be a lot with your studies, hopefully you can pull it off. Good luck.
评论 #20474456 未加载
mcvepleasealmost 6 years ago
Learn how to use your debugger. People will tell you things like &quot;If you use unit tests, you never have to use the debugger!&quot; but it&#x27;s nonsense. When one of your tests break, you have to dig in and find out why it broke, and that means debugging. Plus a lot of things can&#x27;t be reasonably tested in unit tests.<p>Take a class on ethics. Most companies hiring CS majors today are sorely lacking in ethics and it would be good to know ahead of time which are which.<p>Learn how to ask questions to get good answers. In particular, learn how to write up an MCVE - Minimal, Complete, Verifiable Example [0]. The better the quality of the question, the better the quality of the answer. This is really hard when starting out using a technology you know nothing about. In those cases, describing what you&#x27;re trying to do, what approach you&#x27;re taking, and why you think that approach is useful will get you to answers about how to do it correctly more quickly.<p>Don&#x27;t spend too much time on HackerNews. The articles posted here tend to attract a certain crowd with a certain viewpoint on any given subject and it&#x27;s a bit of an echo-chamber.<p>[0] <a href="https:&#x2F;&#x2F;stackoverflow.com&#x2F;help&#x2F;minimal-reproducible-example" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.com&#x2F;help&#x2F;minimal-reproducible-example</a>
joker3almost 6 years ago
Study something else in addition to computer science, preferably in the humanities or social sciences. A lot of the problems we&#x27;re seeing in big tech come down to the fact that the people working there don&#x27;t understand anything outside of software development, and we&#x27;d be better off if they had wider and more diverse backgrounds.<p>Ideally you&#x27;d do your CS major in a liberal arts program rather than in engineering, but that might be impractical. Get as close as you can, though.
zakum1almost 6 years ago
Read (and converse) voraciously and follow the directions it may lead you... Into art, philosophy, psychology, business, politics, literature. This will help you to find things you love, it will also give you insight into adjacent topics that will allow you to shine in an area of CS that is right for you. You will never have such a perfect chance to do this as your university years.
评论 #20474314 未加载
vaggdanalmost 6 years ago
What I would suggest is to actually take advantage of the environment that the university provides to you. Speak with professors, learn what they do, ask questions, potentially work with them, interact with students - generally try to learn as much as possible by exploring all the different sides of the comp. science world and most importantly, enjoy it!!!
opportunealmost 6 years ago
If you want to go into academia:<p>Get very good grades especially in math and cs. Do research for credit or money. Get a summer research position. Don&#x27;t worry too much about authorships your first year; you will hopefully end up as an nth author. In later years you&#x27;re going to want to get a few nice publications (either high profile as nth author or ok-levle as first author) to get into a good grad school.<p>If you want to go into industry:<p>Prioritize getting an internship with a good company over all else. Get good at solving algo&#x2F;DS problems. The big household-name tech companies will open doors for you if you have them on your resume, and they have special programs for freshman-sophomore students.<p>Regardless:<p>Take academic courses instead of practical courses. University practical courses (e.g. web dev) usually lag behind industry, and you will have ample opportunity in your career to learn new practical skills. You will probably never be in a state of mind or environment where you can get as much out of academic subjects (e.g. statistics, AI, theory of computation, etc.) as you are in now. Always always always prioritize conceptual understanding over trivia you can just google.
评论 #20474594 未加载
jschwartzialmost 6 years ago
The best advice I can give you is to try things that your professors aren&#x27;t telling you to do already, and also to try going one layer deeper into the system then you think you need to in order to solve problems. Doing so will reveal things to you about why the solutions are the way they are.<p>You&#x27;ll probably come out with a good understanding of gc&#x27;ed languages like Javascript and Python, but the interpreters for these languages still interface with the modern operating system with a systems language like Assembly, C, or Rust.<p>Maybe try bringing up a simple application on a Z80 or similar MCU that blinks an LED connected to a GPIO. Then switch to using the pulse-width-modulated output to blink the same LED but at different blink rates and potentially even make it fade in and out.<p>You will learn more about embedded systems from that project than you ever could from messing with Linux on a Raspberry Pi. And everything you learn will give you a better understanding of how computer systems actually work. You will also have to learn more about C and potentially C++ then you ever thought was possible.<p>You don&#x27;t need to write an OS from scratch either. You can use something like <a href="https:&#x2F;&#x2F;freertos.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;freertos.org&#x2F;</a>. There&#x27;s board support for widely-available platforms.
评论 #20474312 未加载
thruhikeralmost 6 years ago
Computer science is not software engineering.<p>They are both very valuable and are extremely complementary but they are not the same thing. As you enter the workforce, understanding this distinction will serve you well.
评论 #20474587 未加载
throwaway3627almost 6 years ago
- If you&#x27;re in it just for the money, bounce now.<p>- Be curious.<p>- Push your comfort-zone, often. Do hard things: write a C compiler, design a pipelined&#x2F;microcoded&#x2F;branch-predicting MICMAC processor, write a kernel module, write a 3D graphics engine, and so on.<p>- Master the fundamental concepts, data structures and algorithms.<p>- Dig deep: computer architecture&#x2F;organization, assembly, Linux from Scratch, source code of OSes&#x2F;tools, etc. And, there&#x27;s more out there than just FOSS; some very useful tools aren&#x27;t new, OSS or popular. Get proficient at debugging tools.<p>- Don&#x27;t get stuck, emotional or religious about any one domain.<p>- Master one or two domains.<p>- Be ambivalent, healthily suspicious of and open to &quot;new&quot; flavors of tech fashions.<p>- Practicing and reading books is all well-and-good, but trying to make something is the best teacher.<p>- Throwing away and rewriting a few times helps.<p>- Write for clarity, not cleverness.<p>- Work on something that matters.<p>- Avoid job security where you can by documenting and writing obvious code, because it will hold you back more than help.<p>- Don&#x27;t write useless, giant comments.<p>- Don&#x27;t write heaps of uncommented code.<p>- Literate programming can be awesome for tricky&#x2F;complicated desired code behavior.<p>- Don&#x27;t reinvent the wheel if you don&#x27;t have to.<p>- Premature optimization is a faux pas.<p>- Small changes.<p>- The only good code is small pieces of low complexity, tested code; fragile, big function, &quot;black boxes&quot; are evil.<p>- Use mostly standard conventions.<p>- Have fun, break things and put them back together again :)
kabdibalmost 6 years ago
Do an internship. I found getting experience working with real cow-orkers and (hopefully) dealing with issues that affect real flesh-and-blood customers was incredibly valuable. Make sure you are paid, by the way . . .<p>Read a ton of code. You&#x27;re going to be spending your entire career doing this, so you might as well get started.<p>My personal prejudice is to understand what&#x27;s going on <i>at all levels</i> of a computer, from the silicon all the way to user experience. You don&#x27;t need to know the gory details of transistor physics, but knowing <i>in general</i> what&#x27;s happening at the major levels of things will be an invaluable.
评论 #20474428 未加载
alexhutchesonalmost 6 years ago
In no particular order:<p>- Find out which courses at your university require lots of coding, and make sure you take those. Often these will be known as some of the hardest courses in the department (although some hard courses are more theory-focused). Those classes will be your most direct preparation for the work you&#x27;d be doing if you took a job as a software engineer.<p>- Identify the smartest&#x2F;most talented students who are in your classes, and look for opportunities to work with them. You don&#x27;t necessarily have to be social friends, but you should aim to work on problem sets and group projects with them if possible. When you&#x27;re working with them <i>do not</i> skimp and let them do all the work - put in the best effort that you can, so that they enjoy working with you. You&#x27;ll learn a lot from them, and they will be a core part of your professional network after you graduate. Later in your career when you&#x27;re looking to switch jobs, your former classmates will be happy to endorse you when you apply for a role at their company (and vice versa).<p>- Office hours are underutilized, and tend to be frequented by students who are asking for extra credit, deadline extensions, etc. For each of your professors, read their web page and skim some of their publications to get an idea of their research area. If the topic interests you, then come up with some questions to ask, go to office hours, and ask them. You will broaden your knowledge of CS, and you never know when something you learned this way might be useful in the future. Learning firsthand from experts in the field is a rare opportunity, and you don&#x27;t even have to be graded on it. If you&#x27;re particularly interested in the topic, it&#x27;s normally pretty easy to get involved in research as an undergrad, since you you cost basically nothing.<p>- Make sure you take Linear Algebra, because it&#x27;s really useful for stats, ML, etc. and it&#x27;s a pain to learn by yourself.<p>- Don&#x27;t forget to have fun! Get involved in 1 or 2 on-campus clubs or organizations with people that you enjoy spending time with. This doesn&#x27;t have to be CS-related - any shared interest works well, whether that&#x27;s outdoor activities, literature, sports, theater, photography, etc.
joshuaellingeralmost 6 years ago
1. Spend some real time and energy learning how to debug: <a href="https:&#x2F;&#x2F;blog.regehr.org&#x2F;archives&#x2F;849" rel="nofollow">https:&#x2F;&#x2F;blog.regehr.org&#x2F;archives&#x2F;849</a><p>2. Learn how to decompose big problems into a set of little problems. I&#x27;m not sure where (if) they teach this in CS but that&#x27;s the skill that really lets you get somewhere interesting.<p>3. Find a group of friends and build something together. Most professional programming is a group activity and learning how to communicate and work with other people is super valuable.
ratzeputzalmost 6 years ago
Build up formal foundations eg. complexity, runtimes, grammars, state machines and proofing (use something like coq to get used to it). Learn an imperative (c), a functional (haskell), a declarative (answer set programming or prolog) and an oop language (java). if you understand them you can easily switch between languages. do math and ignore ai because it&#x27;s just simple math. Do something with parallel computing eg use MPI, OpenMP or computations on the graphic card. keep coding.
评论 #20468826 未加载
girfanalmost 6 years ago
Take courses across a breadth of areas in Computer Science, even if you think you don&#x27;t (or won&#x27;t) enjoy them much. Don&#x27;t take up courses only in areas you enjoy (say, Networking) and have no concrete knowledge of areas you think you don&#x27;t really like (say, Graphics) - Undergrad in my opinion is ideal for building up breadth of Computer Science knowledge. You can always focus on specific areas in grad school or when you start working.
Phithagorasalmost 6 years ago
<a href="http:&#x2F;&#x2F;paulgraham.com&#x2F;college.html" rel="nofollow">http:&#x2F;&#x2F;paulgraham.com&#x2F;college.html</a> outlines the advice of pg on the subject.
algaeontoastalmost 6 years ago
Practice building things from start to finish. Figuring out how to start and keep intellectual &quot;blinders&quot; on to keep yourself focused and making progress is a really important skill that&#x27;s hard to develop otherwise.<p>Go to meetups and well... meet people and potential investors &#x2F; founders. If you do this you&#x27;ll have a good set of potential mentors and likely not have issues finding interviews when it&#x27;s time to look for an internship or job.
评论 #20474376 未加载
评论 #20474321 未加载
ja27almost 6 years ago
One thing that helped me a lot was getting involved in competitive programming. Back then it was just the ACM contests but now there are multiple sites like Topcoder, Codekatas, Codewars, etc. Working through different levels of challenges in different languages helps push your language and algorithm knowledge. Reading other people&#x27;s solutions is also a huge help.
acconradalmost 6 years ago
What kept me from quitting my computer science program was advice I got from a friend of mine:<p>&gt; <i>A computer science program is like training for the Olympics only to coach your little cousin&#x27;s softball team</i><p>In other words - it&#x27;s going to be hard, it&#x27;s likely going to over prepare you for the real world, but if you make it, you&#x27;ll be fine.
seibeljalmost 6 years ago
You must learn how to learn. You need to be able to teach yourself new things. Professors will only be around for a brief moment, and in the real world you&#x27;ll need to be able to teach yourself new things from the internet and books. So whatever it is you decide to learn, try and teach it to yourself using available materials.
sunshinelackofalmost 6 years ago
General workplace advice: Know how much you want to work. Don&#x27;t get exploited into doing extra work. Do your best not to take work home. Your boss it typically useful, but ultimately he&#x27;s not your friend. Keep your dignity and try to have a life outside of work.<p>Other than that, know what interests you and what doesn&#x27;t interest you. Don&#x27;t be afraid to reevaluate your interests over time. Don&#x27;t be afraid to ask questions. If you think you&#x27;re correct, be confident and say it.<p>Some people will say a breadth of skills is important and they are. But don&#x27;t seek undue skills just because people say they&#x27;re important. Do what interests you and you&#x27;ll find a way to make it work out. Though in general, having a base of knowledge in complexity, algo, and data structures will help you find a job quicker. Every computer science program will teach this though.
psychotikalmost 6 years ago
Writing is a highly underrated skill. Start practicing how to write effectively, to be succinct and precise.<p>Reading helps in more ways than you might imagine - voraciously read.<p>Build many things. They don&#x27;t need to be large, they don&#x27;t need to be fancy.
bradwoodalmost 6 years ago
Make sure you understand big-O properly. Focus hard on algos and data structures. Keep looking for areas of specialization, eg Networking, AI, compilers, formal grammars, etc. Don&#x27;t forget to work on the math. Keep coding.
评论 #20468818 未加载
nkozyraalmost 6 years ago
Pursue what truly interests you, not the hot trends of the day, which will be gone in a year or two.<p>Fundamentals. Algorithms, efficiency.<p>Related maths that interest you and intersect with CS. Topology, graph theory, set calculus.
pequalsnpalmost 6 years ago
Take as many math and&#x2F;or statistics classes now up to as high a level as you can while still learning effectively.
dmitrygralmost 6 years ago
Learn C and some asm, so you know how the computer really works. There will always be jobs for people who know that. Jobs in the higher levels shift a lot (go find someone today who still gets paid to write visual basic)
tgafpgalmost 6 years ago
Do not incur more than $7,540 in debt. This is half a minimum wage job so even if you can&#x27;t get employment and have to live with your parents, you can pay it off in max 6 months with just a min wage job.
neilvalmost 6 years ago
Learn a lot now about the societal context in which you will practice, decide how you want to fit into the world, and pursue that.
TruffleLabsalmost 6 years ago
Practice writing, speaking, and presenting. Communication with other people is key to working on projects and teams.
RickJWagneralmost 6 years ago
Find a company that&#x27;s going to grow.<p>This single factor can dramatically affect your career growth.
scottlocklinalmost 6 years ago
Get the fuck out of coding. Get an MBA and if you must remain in tech rather than doing productive work: become a product manager. Preferably not in the US.<p>Being a coder means being a commodity; you&#x27;re competing with people in countries where the GDP per capita is less than $2k. Unless you can quote chapter and verse from Knuth, and since you&#x27;re mentioning Javascript, you probably can&#x27;t, you&#x27;re human chum to be exploited by oligarchs. Find something better to do, even if it&#x27;s bullshit.
评论 #20475263 未加载
评论 #20474357 未加载
评论 #20474326 未加载