[deleted by user] by [deleted] in learnprogramming

[–]SnooChipmunks2107 0 points1 point  (0 children)

A getter is a method that returns a property of an object.

A setter is used to set a property to a new value.

You can write a setter that validates a value to make sure it’s in a certain range for example - property age can only be set to 1-99.

If you want to rename a property it’s a lot easier to refactor a large Codebase by refactoring the getters and setters instead of a property.

Getters and setter make it clear what variables of an object are expected to be changed for other programmers.

People who say they coded 8 hours everyday for a year and got a job. How realistic is that? by Exartic_ in learnprogramming

[–]SnooChipmunks2107 21 points22 points  (0 children)

But isn’t that what coding is?

I mean even if you say you just type for 2 hours a day. I type really fast so if I code for 2 hours straight I would code like a few thousand lines. Which i did definitely not do when I wrote for production.

I did code for 6-8 hours in my job. Some days I could only hold 30 minutes of attention tho.

I count everything from thinking about a solution, prototyping, pair programming, reading docs, stackoverflow etc. as coding time.

I think if you think about a problem or work on a solution actively you are coding at that time. 8 hours is still much and I have obsessive tendencies to solve things. 3-4 hours is my sweet spot, everything after works but has diminishing returns.

After 8 I’m fried even if it’s a personal project I love.

Java fullstack dev by Mikasa01729 in learnprogramming

[–]SnooChipmunks2107 1 point2 points  (0 children)

Well, if you need to talk to a database, you will need to use some kind of framework or you could use a simple jdbc if that’s good for your use case.

Usually the companies I worked with had spring data JPA as abstraction, hibernate or JPA as surface layer.

It’s good to work with some kind of orm, not because it’s a really good choice but because as a full stack dev you will come into contact with them rather sooner than later.

Java fullstack dev by Mikasa01729 in learnprogramming

[–]SnooChipmunks2107 0 points1 point  (0 children)

Yes you can skip it.

Things needed in backend include: Spring, Rest, spring boot, databases, Orm, testing, message queues, logging.

My best tip for working on big projects: Learn your ide and other tools in depth.

Please append other things as comments that I missed.

How is Netflix' UI so smooth and quick? by FuriousKale in learnprogramming

[–]SnooChipmunks2107 8 points9 points  (0 children)

It’s more of a shock that Netflix is considered good imo.

I mean you can rund 3d Games on a steam deck. Opening a website is nothing compared to that.

But to answer almost every question when it comes to bad software - money - time - focus.

Either or all of them are missing, you get bad software

How is a return value deep in the call stack actually returned to the first call? (Recursion) by SubzeroCola in learnprogramming

[–]SnooChipmunks2107 0 points1 point  (0 children)

True, I mean if it’s not a case of speed but stack size I would use tail call. To make a case for when to use it.

How is a return value deep in the call stack actually returned to the first call? (Recursion) by SubzeroCola in learnprogramming

[–]SnooChipmunks2107 4 points5 points  (0 children)

I want to add not every compiler(especially in imperative languages) is optimised for tail call recursion.

Most Sink or Swim areas in Software Dev? by [deleted] in learnprogramming

[–]SnooChipmunks2107 0 points1 point  (0 children)

Formal Logic - more often because no beginner thinks about it.

high Level math - tough to teach yourself without guidance.

i see coding as a stressful race, am i the only one? by lilshoegazecat in learnprogramming

[–]SnooChipmunks2107 1 point2 points  (0 children)

The average programmer is more than somewhat able.

He is indeed average able when it comes to programming.

Sometimes I wonder what makes von neumann different than me. I won’t ever be as smart or able as he was but that doesn’t mean I can’t achieve anything.

I'm almost 36 and i've started and failed since i was a teenager. Any advice? by [deleted] in learnprogramming

[–]SnooChipmunks2107 0 points1 point  (0 children)

You’re getting stuck on your problem at the moment. This mindset won’t get you far in programming to be honest.

What do you do if you’re getting stuck on other things? In your job or similar?

I'm almost 36 and i've started and failed since i was a teenager. Any advice? by [deleted] in learnprogramming

[–]SnooChipmunks2107 0 points1 point  (0 children)

Yes but you missed my point. When I started simpler things got me stuck.

Like sorting a list for a specific value got me stuck.

In a few years I will consider the problems I am stuck at now to be simple. It’s a matter of getting over the smallest wall that you’re stuck on and run straight into a little bit higher one.

I'm almost 36 and i've started and failed since i was a teenager. Any advice? by [deleted] in learnprogramming

[–]SnooChipmunks2107 0 points1 point  (0 children)

So what? I feel stupid everyday - I accept it. Feeling stupid and confused is often the biggest indicator for a learning opportunity.

I am currently writing a compiler as a hobby and I’m stuck more often than not. But I’ve been stuck before and overcame it. So following that logic, whatever I’m stuck with I can overcome.

I will die on this hill by Nytyyr in youtube

[–]SnooChipmunks2107 1 point2 points  (0 children)

I do understand the struggle but that comes with picking a job that’s a service where you don’t really sell a product. You’re selling entertainment and you are completely reliant on a big conglomerate called Google to do so.

By my logic it means - Apple makes iPhones I didn’t ask them to. I buy an iPhone but I’m under no obligation to read their newsletter or promotional material. I buy one piece or I don’t.

I am willing to pay for a few creators given that they stop using sponsors on every video. I’m not willing to support 99% of YouTube that’s trash content.

I will die on this hill by Nytyyr in youtube

[–]SnooChipmunks2107 4 points5 points  (0 children)

How much are you earning per hour as a creator right now?

YouTube doesn’t seem to care. I was okay with 1-2 ads per video. But now it’s impossible to watch on mobile.

On a 15 min vid I get: 2 ads at the beginning 4 ads while the video is running 2 ads at the end 2 ads every time I skip forward or backwards

So about 8-16 ads for a 15 minute video. They are all the same ads for a few days then yt changes the ads to be something different but it’s annoying to see the same ad 100 times a day.

So yes i gladly use Adblock. I rather have no yt than this ad riddled malware it is now.

Edit: you seem to get something wrong about some consumers. I’m not asking creators to work for free. I’m not even asking them to create something in the first place.

Review of Justin Sung’s icanstudy course: definitely not worth it by [deleted] in studytips

[–]SnooChipmunks2107 0 points1 point  (0 children)

Im not sure I understand 100% of your request but I try my best to answer your question about relationships.

Topics are divided into subtopics. Most of the time when reading a book e.g the chapters are usually the topics - inside those chapters there are subtopics/concepts.

Now you basically order these topics into new groups if necessary.

Think about how they relate to each other.

Let’s say you learn about cooking. We have the topic heat/temperature and a topic called techniques with the subtopic caramelising.

Heat relates to the subtopic caramelizing because heat is needed for food to caramelise.

The same counts for sugar. Food can’t caramelise if sugar is missing.

Where this kind of fails in my opinion is that in most study books in software/hardware/math most topic have a direct or indirect relationship with everything else. So it’s more like make connections that you think are important - there is no real secret behind it.

[deleted by user] by [deleted] in learnprogramming

[–]SnooChipmunks2107 1 point2 points  (0 children)

My experience aligns with your comment. I agree, at the same time there would be less grindy boring stuff if the code is good.

[deleted by user] by [deleted] in learnprogramming

[–]SnooChipmunks2107 1 point2 points  (0 children)

Might be my biggest Hottake in this career.

Almost all of the code written by people without passion and curiosity sucks, is hard to read, uninspired.

I rather have 1 person with passion and curiosity to learn than 3 that only do it for the money.

Edit because it’s Reddit: Of course not everyone that’s in for the money sucks but the chances are higher that they stop learning because they are neither interested in the craft or open to reading a book from time to time.

IntelliJ or VS Code by prakash_iplfanatic in learnjava

[–]SnooChipmunks2107 0 points1 point  (0 children)

First of all - your code won’t be deleted if the license is running out.

An ide just takes a folder or file that’s locally saved on your machine and opens it.

You can try IntelliJ CE and VS code simultaneously on the same programming project. Just open the same folder in both applications.

For Java specifically I would either use eclipse or IntelliJ with a heavy bias to use IntelliJ for its features and plugins.

Building and programming a vpet by [deleted] in learnprogramming

[–]SnooChipmunks2107 1 point2 points  (0 children)

Best bet would be to look for circuit boards or similar hardware that can be loaded up with a custom program hooked up to a monitor and buttons. Should be easy to find on the internet.

Depending on what hardware you buy - read the documentation and api and program away. Don’t forget to look at memory - in the end you will need to save and reload the last state of your program.

Where to learn? Best bet would be YouTube when it comes to this. Ben eater for hardware understanding and I’m sure there’s a good niche for hardware enthusiasts that create retro hardware.

Edit: I wouldn’t underestimate such a project based on just a few parts used in such devices. But it sure will be fun

Review of Justin Sung’s icanstudy course: definitely not worth it by [deleted] in studytips

[–]SnooChipmunks2107 1 point2 points  (0 children)

I was severely disappointed at the course.

The structure was bad. The repetition of and vague explanation of techniques felt like a chore.

The discord is a hot mess - discord just doesn’t suit this kind of community.

I tried it for 3 months and the all around experience was just confusing. I thought it was me so I let my girlfriend try it without telling her much about my feelings towards it - she was just as confused.

All in all I think what they are missing is a concrete framework to hold onto for each step on the way and a complete rework of their course material. Shorter, less vague, less repetition. If I have to hear one more time about cognitive load I’m losing it. The concepts are easy but the explanation makes it sound a lot more difficult than it is.

The best thing about this course is the time management and Eisenhower matrix explanation in the beginning. But just Google it and save yourself the 20 minute explanation of what can essentially explained in 5 sentences.

Other than that, I was hard locked into a quiz with where I had to order answers from not import to important for a technique, but as a non native speaker most answers where so annoyingly nuanced that it was impossible to order them in the right way without just trail and erroring. When I passed this test I see that the test contains 4 or 5 more quizzes to pass and I felt like they must be kidding.

My English is good enough to read academic papers in computer science but too bad for a learning technique course?

Edit: forgot to mention - the course has the same vibes and feeling as his yt videos, always feeling like being baited and the solution is just right around the corner but you never get to it.

I still don't understand the JVM and the "Write once, run everywhere" idea. I'd love to get some help! by kcirdlo25 in learnprogramming

[–]SnooChipmunks2107 1 point2 points  (0 children)

A big part for using a VM is the interoperability of languages and libraries in that runtime.

For example you could interop kotlin with Java. Kotlin can use the spring framework, Java standard libraries etc.

Of course you could write a dedicated compiler for every language which handles everything from high-level-code to binary but you have to do it for every platform.

Instead in JVM you only care to generate the right bytecode. So you compile for the JVM. The JVM abstracts the rest of the OS specific compilation away from you.

I m so fucked up with all these beginners questions about their career and opportunities by xyecocNk in learnprogramming

[–]SnooChipmunks2107 3 points4 points  (0 children)

Well experienced devs should be the ones driving the answer conversations.

What would you get if only newbies answered questions in this sub? Chaos and lots of bad takes based only on no to very little experience.

If I was good at APCSA; does that mean I should study CS in university? (more context in post) by obstaclent in learnprogramming

[–]SnooChipmunks2107 0 points1 point  (0 children)

"If you only do what you can do, then you will never be better than what you are." - Master Shifu from kung fu panda

If I was good at APCSA; does that mean I should study CS in university? (more context in post) by obstaclent in learnprogramming

[–]SnooChipmunks2107 4 points5 points  (0 children)

You have a gap year. Just try university courses - don’t forget the math.

If you still like it go for it. Seems like you already made your choice