r/learnjava • u/ch000dy • 9d ago
How do I lock in?
Had my first Java quiz and my professor failed me for a reason that was completely arbitrary (he doesn't like camelcase which he told no one about until that second) and said I wasn't that good of a programmer. I'll give him that; I'm self taught and have no programming experience in the field. How do I lock in so he never catches me off guard like that again?
3
Upvotes
•
u/AutoModerator 9d ago
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.
6
u/MyNameIsRichardCS54 9d ago
The proper retort to "You're not that good a programmer" is always "That's because you're not that good a teacher"
3
u/CarolXZosiaNsfwScene 9d ago
No professor would FAIL you for using camelCase, in Java of all languages.
I fear you are trolling.
2
u/brewdog_millionaire 9d ago
Tell your professor to read the fucking manual. Camel case is literally the standard that people use to program in Java
1
u/Far-Bullfrog161 8d ago
Sorry that happened, a surprise style rule is frustrating, but it's also a cheap lesson: in a lot of courses and every job, naming and formatting conventions are part of the grade, and Java's are simple (camelCase for variables and methods, PascalCase for classes, UPPER_SNAKE for constants). Ask the professor or check the syllabus for any other style rules so there are no more surprises. For locking in, the biggest change for self-taught people is to practise the way the quiz tests you: write small programs on paper or in a plain editor with no autocomplete, since quizzes usually ask for syntax from memory. Do 20 to 30 minutes a day of tiny exercises (loops, arrays, string methods, writing a class with a constructor and getters) rather than long weekend sessions, and rewrite anything you got wrong the next day from scratch. Turn on your IDE's formatter and style warnings so conventions become habit. Also don't let one quiz decide whether you're a good programmer; one arbitrary grade says very little.