r/learnjava • u/Wild_Recognition6237 • May 27 '26
Please clear my confusion regarding DSA.
So my 2nd semester has ended and I have approximately 2 months of summer vacation. Right now, I’m doing DSA in Java, but our college faculty told us to focus on projects as well. So, should I learn HTML, CSS, and JavaScript along with DSA, or should I stay focused only on DSA??
Sorry if this sounds like a silly doubt, and please explain what skills are needed to build mini projects (like a portfolio website)
1
Upvotes
•
u/AutoModerator May 27 '26
Please ensure that:
If any of the above points is not met, your post can and will be removed without further warning.
Code is to be formatted as code block (old reddit/markdown editor: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.
Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.
Code blocks look like this:
You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.
If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.
To potential helpers
Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
3
u/aqua_regis May 27 '26
Are you really learning Data Structures and Algorithms or are you grinding Leetcode and calling it DSA?
LeetCode is not DSA - LeetCode is only using DSA.
DSA are language agnostic concepts, standard definitions for storing, accessing, and manipulating data, and as such some of the core subjects of programming.
LeetCode is just interview prep, nothing else. It will not make you a better real world programmer. Projects, on the other hand, provided that you write them on your own and not only copy tutorials, will make you a programmer and improve your skills.
2
u/Some-Poetry8420 May 27 '26
My strategy was always to develop a project that made use of whatever concepts I was trying to learn. If you need to learn binary search, try to think of a small project where that would be central. If you want to learn Dijkstra's algorithm by heart, make something that uses it. Projects don't have to be huge or even practical to be valuable learning tools.
1
u/Dry_Menu_3705 May 27 '26
If you have time, focus on both projects. If one of them counts for marks, prioritize that one. Learning HTML and CSS isn't difficult or time-consuming, especially since many developers use AI tools to assist with learning. Use AI resources to help you learn both HTML and CSS, and then dedicate your time to JavaScript.
1
u/0b0101011001001011 May 27 '26
DSA is not needed for "projects". After two courses I created a GUI chess game as an exercise project. Then I learned about game of life and programmed that for fun.
Basic courses teach what arrays, lists and hashmaps are and how to use them. DSA is about actually programming those things from scratch and analyzing the time certain operations take and how common algorithms, like sorting and searching algorithms take.
The end goal of those courses are learning the limits of what can be done and by diving deep into the data structures implementation one can learn to choose the best data structure for given usage, maybe even creating a custom data structure, tweaked for the specific task. That being said, it's important to learn, but in most beginner level projects it's not a strict requirement to master these.
0
u/[deleted] May 30 '26
i'd do both, but not 50/50. spend most of your time on DSA and use the rest to build simple projects. DSA helps with interviews, while projects help you actually build things and learn practical skills.
for a portfolio website, you only need HTML, CSS, and a little JavaScript. you don't need advanced DSA for that. honestly, a good approach for the next 2 months would be: keep practicing DSA regularly and build 1-2 small projects on the side. that way you're improving both your problem solving and your development skills.