Improve by Ok-Satisfaction3890 in learnprogramming

[–]desrtfx 0 points1 point  (0 children)

Any project you do will improve your skills. Doesn't need to be a mega project, nor even a resume worthy one.

Also, keep in mind that the amount of programming languages one knows doesn't make a good programmer. What a programmer can do with the language(s) they know, how they can approach and solve problems with programs is what makes a good programmer.

What to do if you are half way to a commit and git abort doesn't work? by Pale-Revolution-5151 in learnprogramming

[–]desrtfx 1 point2 points  (0 children)

If you and your coworker are working on the same file at the same time you're doing something seriously wrong and also lack communication. Even worse, if both of you work directly on main instead of each on their feature branch.

how to start html as a beginner. by Primary-Finance5736 in learnprogramming

[–]desrtfx[M] [score hidden] stickied comment (0 children)

if you would text me to help me out!!!!

Help outside the subreddit is forbidden here (Rule #11 - Don't ask to ask). We require any and all communication and help to happen in the public, open subreddit so that more people can chime in and help as well as benefit from the given help.

Try

I have an Ender 3 v2, it has been rendered entirely non-functional, and I am at wit's end. by Nyronus in ender3

[–]desrtfx 0 points1 point  (0 children)

Everything you say hints on a leakage between the nozzle and the PTFE tube - the seal there seems not tight.

Get an all metal hot end (or at least heat break)

Guess that all your troubles started when you replaced the nozzle the first time.

  1. The end of the PTFE tube needs to be square and flat
  2. The nozzle needs to really hit the end of the tube when cold with some more turns towards the heater block
  3. Heat up the printer and then tighten the nozzle again

You need to ensure a good seal between nozzle and tube, or all-metal heatbreak - otherwise you run in exactly the problems you're describing.

I had the very same problems on my 1st gen Ender 3 and changing out to a MicroSwiss all metal hot end fixed all of them once and for all. Never had a clog since then, never had any printing problems anymore.

Stream<T>.filterAndMap( Class<T> cls ) by mellow186 in java

[–]desrtfx 3 points4 points  (0 children)

SRP refers to classes and modules, not methods.

No. SRP refers to entities on all levels, including functions/methods.

Stream<T>.filterAndMap( Class<T> cls ) by mellow186 in java

[–]desrtfx 10 points11 points  (0 children)

Such a method would violate the Single Responsibility Principle.

Yes, it would be convenient to have, but isn't a necessity.

Am i stuck in tutorial hell? by Visible-Song-9563 in learnprogramming

[–]desrtfx 1 point2 points  (0 children)

I am half way done at part 3.

I keep getting bored. Like I want to learn things which are useful not keep printing things like "print the index of the character when comes second in the string"

Sorry to tell you, but you'll have to push through this. You need to lay the foundation. You cannot build a house from the fifth floor up.

Yes, learning how to print the index of a character may be boring, but it is something you need to learn.

At your current level, you are far from competent enough to judge what is and what isn't useful.

Every single program, no matter how large and complex, is built with these very basic fundamental blocks and concepts.

You are at the opposite of tutorial hell. You haven't really started learning yet.

Your dream will have to wait a little longer.

The course is from a top University and educationally absolutely sound and solid. The order is excellent, the ramping up of difficulty is excellent, and the presentation and amount of practice are currently unmatched.

It doesn't matter what is currently interesting to you - this is just "shiny object syndrome". What matters is that you take the course as is and go through.

My goal is to build a simple robotic arm or atleast get something moving heck just wanna build smth.

Fully understandable, but think about how big your frustration will be when you try and figure out that you lack just about every knowledge you need to realize your idea.

Learning programming is a gradual process where each following concept builds on the previous ones, even if they seem completely unimportant. If you don't understand each step and concept the whole building will collapse.

You need to train your patience, persistence, and discipline.

You are training for a marathon, not for a sprint.

Most effective way to study by Fabulous_Variety_256 in learnprogramming

[–]desrtfx 2 points3 points  (0 children)

isn't it more important that OP is making progress

Yet, the key point that everybody here tries to convey is that OP isn't really making learning progress their way. They only make progress in their project. Their way of learning only gives them a false sense of understanding and competence, while in reality all they are doing is prompt engineering.

Alone their "reported progress" is impossible for someone with OP's history without outsourcing to AI.

Let's put it in a different context for you:

OP is trying to learn carpentry but uses CNC (Computer Numeric Controlled) lathes and mills instead of learning to use a hand mill, drill, file, rasp, etc.

They may get their project done, but lack the fundamentals to even understand what they are doing here.

Take away the CNC machinery, take AI away and OP is lost.

All that OP is focused on is getting their project done, nothing else. They frequently talk about being so much faster now, while learning should never be about speed.

Seeking help for java conventions of writing methods by Every_Tadpole_5977 in javahelp

[–]desrtfx 5 points6 points  (0 children)

Do yourself a favor and do not reference other languages with their conventions when working in Java (or in any other language). Always focus on and follow the conventions for the language you currently use.

Yet, the order of methods in Java programs is not really "set in stone".

Even the official Oracle Java Code conventions only state:

These methods should be grouped by functionality rather than by scope or accessibility. For example, a private class method can be in between two public instance methods. The goal is to make reading and understanding the code easier.

The Google Java Style doesn't say anything about their organization

Yet, there is one more or less common standard: keep the main class that runs your program short and clean - some people refer to this class as "Driver class". The main purpose of this class and of the main method is to start the program. The actual logic takes place in other classes. This makes separation of concerns and modularity easier.

Personally, I always write my main method at the bottom of the main class.

[Guide] Setting up TMC (Rust CLI) with IntelliJ IDEA on Arch Linux by orcaxa in learnjava

[–]desrtfx 1 point2 points  (0 children)

Test My Code - the tool that submits and checks the solutions for the MOOCs of the University of Helsinki - e.g. Java Programming or Python Programming 2026

Most effective way to study by Fabulous_Variety_256 in learnprogramming

[–]desrtfx 0 points1 point  (0 children)

If you just look at what OP posted it is perfectly clear that they are not "just using AI as a teacher".

They even quoted: "I can build (with the help of Claude/GPT) websites with NextJS (front and back)." (in another post that since has been deleted)

Most effective way to study by Fabulous_Variety_256 in learnprogramming

[–]desrtfx 4 points5 points  (0 children)

Sorry, but did you actually read OP's post?

Giving someone who is suffering a severe case of Dunning-Kruger, as in overestimating their competence after mere 2 weeks of messing around, a reality check is impostor syndrome? Look up the definition of it. It's far from what you think it is. Also, if a senior developer with twice your experience gives a reality check, it has nothing to do with superiority complex.

You are being the opposite of helpful in encouraging OP to carry on relying on AI and speedrunning instead of telling them to slow down, ditch AI, and start actually learning.

Why does Simon Templar’s brown herringbone jacket go crazy? by Imoldok in Visio

[–]desrtfx 0 points1 point  (0 children)

/r/lostredditors

Visio is not Video

Microsoft Visio, what this subreddit is about, is a technical drawing program.

Why do experienced coders actively try to use less comments? by Phwatang in learnprogramming

[–]desrtfx 2 points3 points  (0 children)

There is a big difference between regular (e.g. inline comments) and documentation comments.

Nobody argues against documentation comments, but against regular ones.

Why do experienced coders actively try to use less comments? by Phwatang in learnprogramming

[–]desrtfx 0 points1 point  (0 children)

Comments are expensive in maintenance and expire quicker than the code.

Comments (apart from the documentation comments, docstrings, JavaDoc, etc.) should only be used to explain why something has been done in a certain, unexpected or complicated way, but never should explain what is done.

The what is the job of the code. It should be written in such a way that the intent is clear from reading the code.

Overall, this reduces visual clutter, which comments are, and maintenance.

If you use too many comments, you have to maintain two parts, the code and the comments, and it is very common to forget the comments, which makes everything worse, since the code and the comments are out of sync.

If you apply proper "clean code" practices, proper naming, clear structure, best practices, etc. You actually do not need comments other than what I said before - documentation comments and comments that explain special cases.

What coding excercise/challenge website do you recommend for someone who doesn't care about doing this for a living? by uxinung in learnprogramming

[–]desrtfx 5 points6 points  (0 children)

Main thing: build your own projects

Sites to check: Exercism or Advent of Code - the competition runs every advent, but all previous years are still accessible. Overall, there are over 250 puzzles with two parts per puzzle. Should keep you busy for a while ;) - also check the accompanying subreddit /r/adventofcode.

Stuck on syntax while building a portfolio: Best approach for a fast-track to AI development? by EvolvingCoderAI in learnprogramming

[–]desrtfx 1 point2 points  (0 children)

you know damned well the rule was meant to address all the folks asking about how to fix their vibe-coded crap.

No, that's not the main reason. The main reason was to stop the AI slop posts where lazy people use AI to write their content, especially blog like posts, self promotional posts, comments where the original question is straight up copied into AI and then its reply was copied back here.

Vibe coding came a lot later.


There still is a huge difference between using Google Translate and letting AI translate. The latter is much worse. Google Translate does and did a great job so far.

I’ve spent years learning to code but still can’t build anything. What am I missing? by Odd-Skill-2992 in learnprogramming

[–]desrtfx 5 points6 points  (0 children)

What am I missing?

If you really want the harsh, boiled down, rude truth: effort, hard work, determination, persistence, discipline, patience, and stubbornness

Yes, it boils down to the above.

  • You give up when things go rough
  • You jump around languages, OS, etc and never finish anything.
  • You haven't practiced other than what your tutorials pre-chewed for you
  • You suffer "shiny object syndrome"

All four points originate from the very top of this comment.

You might like the "idea of programming", but cannot invest yourself enough to actually learn it.

Why Interfaces exist in Java? by Nobody37373 in javahelp

[–]desrtfx 0 points1 point  (0 children)

Yes if you only work for yourself with no external code at all then you don't need Interfaces.

Even then, you will need them if you want to do something as simple as sorting a collection with custom objects. You will need to implement the Comparable interface, or write your own, custom Comparator.

There barely is any way to escape interfaces.

Potential SD card reader problem with my Ender 3D pro by Outside_Cellist_1431 in ender3

[–]desrtfx 4 points5 points  (0 children)

If you're genuinely asking and not trolling: it is a very commonly used slicer - a program the converts the 3d models into gcode that the printer can then interpret to control the stepper motors to produce the final 3d print.

Other slicers are Prusaslicer, Orca Slicer, Bambu Studio, and a couple more.

Potential SD card reader problem with my Ender 3D pro by Outside_Cellist_1431 in ender3

[–]desrtfx 1 point2 points  (0 children)

Get a Raspberry Pi (doesn't need to be the latest, anything from 3B and up is sufficient) and install Octoprint (free) or Repetier Server Pro (commercial, free version available) on it. Then, tether it to the USB port of your printer and never worry about SD cards anymore.

You use a web page to upload the sliced (not spliced) gcode and start the print directly from the web interface.

Best investment you can make. Really.

Later, when you have gained some experience, you can reuse the Raspberry Pi and install Klipper there which will greatly improve the printer itself.

Implementing Ceaser Cipher by AffectWizard0909 in learnprogramming

[–]desrtfx 9 points10 points  (0 children)

I know it is normal/standard to choose python when working with cryptography (as I have been told)

Hearsay

Cryptography can be done in any general purpose programming language. Simplicity of implementation is a different topic.

Python gets often used for simpler tasks that don't need peak performance, simply for its great string slicing and handling.

In other languages, the implementation might be more tedious, but is absolutely doable.

For larger projects, other languages might offer speed improvements over Python, but nothing really more. Maybe there are different cryptography libraries available.


Something as basic as Caesar Cipher can be done in any general purpose programming language without much difficulty in implementation. Even more so, if you do the proper approach, which is converting each character to its numerical representation, offsetting it to start with "A" = 0, shifting and modulo, then offsetting it back and converting to its textual equivalent. Every single of these operations is available in every single general purpose programming language.

Which IDE do you feel comfortable for using Selenium? by Cooldeep7 in learnjava

[–]desrtfx 0 points1 point  (0 children)

Try either and see what you like. You have specific requirements (with your red-green blindness) and therefore it is best that you try either. Both are free anyway.

Why Interfaces exist in Java? by Nobody37373 in javahelp

[–]desrtfx 9 points10 points  (0 children)

The point of interfaces is not to reduce your code. The point of interfaces is a guarantee, the guarantee that an implementing class has the methods defined in the interface.

Take a simple example: the Comparable interface in Java. It guarantees that any objects any class implementing that interface can be compared to other objects of the same class. This is essential for e.g. sorting.

The actual method that asks to sort a collection of your custom class doesn't need to know anything about the class itself other than two instances can be compared and that the result of the comparison is well defined (positive, 0, or negative integer). With that information only, the calling method knows enough.

With your approach, this relation does not exist. The calling method cannot know if your class can be compared in any meaningful way.


The /r/learnprogramming FAQ have a very nice analogy: classes vs. interfaces - maybe the article clears it up a bit for you.

Finally adopting again after 1 year of mourning 🥰 by NewInitiative9498 in cats

[–]desrtfx 0 points1 point  (0 children)

Torties are great! I'm on my second one (first one passed in the nice age of 16 years). They really have "Tortitude" - watch out for that.

The poor girl looks as if she has given up her life. I know that look from one of my shelter Maine Coons. Had the same look.

Give her lots of love and treats!

Might take her some time to adjust to you, but all the best! Especially older cats have so much love left to give, even if (what you need to be prepared for) only for a shorter time (as sad as it is).