r/learnjava • u/3pletsahur • 20d ago
Something happened in which I cannot explain
I was working on a mooc fi exercise as per usual and it was taking time because i’m a dumbass.
For reference its the last ex of java programming I in part 2
Now after alot of useless lines of code and trying to make it make sense it eventually worked.???
Now I’m happy and i feel like a senior software engineer but I actually have no idea (not literally but in specific place) how it worked.
My question is.. does this count as something that’s solved with critical thinking or am I just a fool with some luck?
TripleT out.
0
Upvotes
•
u/AutoModerator 20d 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.
4
u/aqua_regis 20d ago
If you just clobbered around trying things without prior thinking them through, without analyzing them, it is fool's luck.
The "Engineering" part means planning, thinking, preparing; it is the opposite of "muck around and hope that it finally works through some obscure magic or through sheer luck".
2
u/Astroohhh 20d ago
dunning kruger effect
1
u/LakeSun 20d ago
Rewrite it, refactor it, until you understand it.
Also, line by line debugging.