r/StackoverReddit • u/NotOkay24 • Jul 10 '24
Question Advice for GitHub
I have a web application to make this week as the first step in the recruitment process for a company. One of the requirements is to use GitHub so that they will be able to see my project and also my commits.
Should I just commit to the main branch, then, or should I create a different one? I was also thinking about making a branch for each individual functionality and making PRs and then merging into the branch with the final product, but I thought maybe this would be too much since it's just me working on the project.
What do you advice me to do?
7
u/Uwirlbaretrsidma Jul 10 '24
DO NOT push directy to the main branch as this can easily be seen as a lack of knowledge on proper Git workflow (even if it makes sense, like in this case). You can either create a ton of feature branches and immediately merge them like you suggest, or just create a big development branch to which you'll be pushing everything directly, and only merge with main either at the end of development or preferrably after certain milestones.
It's impractical to worry too much about these things for what's essentially a toy project, but do worry enough to give a good impression.
1
u/EngineerSpaceCadet Jul 10 '24
I was about to respond so sinisterly 😂😂 here's my advice for general practice never ever commit to the main branch always make branches with pr's. That aligns with the idea of version control and CI/CD. However, if I company ever asks you to do something like make a presentation explaining something or build an app that does x NEVER EVER DO IT. I REPEAT DON'T DO IT. A company shouldn't ask you to build anything as a part of recruitment. Technical questions are fine , coding questions are fine, but if a company is asking you to build something for free there's a good chance you wouldn't want to work for that company anyways. Any reputable company won't ask you to do something like that. If there's a technology you need to know they'll teach you after your hired or have it as part of a ramp up. I know the job market is tough right now but trust that's probably not worth it.
2
u/mr_worldwide_daddy_ Jul 11 '24
I'd suggest not pushing everything directly to the main branch, but rather having a separate branch for every feature of yours and creating PRs for them. Considering this is not just a personal project, but a step of the recruitment phase, I think the company may appreciate it (and btw, my web development professor at university highly advised us to always use this approach for personal projects and to never directly push on the main branch).
1
u/alien3d Jul 10 '24
seperate open but for me
1
u/chrisrko Moderator Aug 08 '24
INFO!!! We are moving to r/stackoverflow !!!!
We want everybody to please be aware that all future posts and updates from us will from now on be on r/stackoverflow
We made an appeal to gain ownershift of r/stackoverflow because it has been abandoned, and it got granted!!
So please migrate with us to our new subreddit r/stackoverflow ;)
1
u/ncuxez Jul 10 '24
Don't do it unless they pay you. What if you don't get the job? What's stopping them from carrying on and using your code without hiring you? (by the way, you probably won't get the job, seeing you even had to make such a post).
0
u/[deleted] Jul 12 '24
Can you please share the specifications of the take home web application assignment? How many hours of work did they estimate this assignment would take? And is that how long it will take you? Is this your first Github account? How many take home assignments from other companies have you completed previously? What stack will you be working with when hired? What industry do they support? Are they reputable? Are they US based? What salary range did they list for the position you applied for?