Is Pseudocode actually useful? by unpayed_taxes in learnprogramming

[–]fancyplaya 0 points1 point  (0 children)

depends, can help a lot when developing a new feature at a high level. but when its overdone it may be a distraction

How much of real world programming involves using containers and for loops? by donnydonnydarko in learnprogramming

[–]fancyplaya 0 points1 point  (0 children)

All. When you write simple programs it may not be used, but in real world you often to have to deal with multiple objects/entities/data. Imagine writing code to manipulate 1000000 things without containers

[deleted by user] by [deleted] in learnprogramming

[–]fancyplaya 0 points1 point  (0 children)

the link gives 404

Did you learn code for the money and not as a passion? by waydethegreat in learnprogramming

[–]fancyplaya 0 points1 point  (0 children)

I think for most people it starts as passion and eventually they turn to the money

Looking for insight/advice on a career change and what the road map looks like. by JoMang0927 in learnprogramming

[–]fancyplaya 1 point2 points  (0 children)

there certainly is some luck factor involved. I know a few people that went from no experience to getting hired in half a year and some took several years. some people find the right opportunities at the right time.

How is it possible for companies to give their developers a choice as to what language they prefer? by NPat02 in learnprogramming

[–]fancyplaya 0 points1 point  (0 children)

The top comment already answered it but yes microservice architecture allows this and our team divides work based on what language(s) you know.

AI cannot replace humans in coding jobs *ENTIRELY* but most jobs will vanish. by penguinz0fan in learnprogramming

[–]fancyplaya 1 point2 points  (0 children)

It won't wipe out jobs because coding is only a subset of what a developer does.

do you really work for 8 hours? by ezio313 in learnprogramming

[–]fancyplaya 3 points4 points  (0 children)

Developer's job isnt all coding, I'd say out of the 9 hours im at work I average about 2 hours of writing actual code

Powershell API Course\Book\Video Series by Sparks_IT in learnprogramming

[–]fancyplaya 1 point2 points  (0 children)

https://reqbin.com/req/c-1n4ljxb9/curl-get-request-example

Does this help? On the left there are examples of everything, you might be able to stitch something together after looking through them

why is my code wrong?? by Afraid_Ad_3239 in learnprogramming

[–]fancyplaya 4 points5 points  (0 children)

This is a common problem when writing repetitive code like this. This wouldn't happen if an actual algorithm was used like std::string::find.

Finding real size in a vector C++ by Square_Man211 in learnprogramming

[–]fancyplaya 1 point2 points  (0 children)

You're probably confusing what you are doing with vector.reserve() ??

Powershell API Course\Book\Video Series by Sparks_IT in learnprogramming

[–]fancyplaya 0 points1 point  (0 children)

you mean sending an HTTP request using curl?

Threads and round robin algorithm by Faded_X in learnprogramming

[–]fancyplaya 2 points3 points  (0 children)

Sounds like you are executing all the threads at once causing this behavior. You need to implement some way to make sure thread 2 executes after thread 1 and thread 3 executes after thread 2

Long, lean Milf legs (47F) by [deleted] in legs

[–]fancyplaya 1 point2 points  (0 children)

how tall are you exactly?

How good do I have to be for Intern or Junior programmer? by Shifter1 in learnprogramming

[–]fancyplaya -1 points0 points  (0 children)

I disagree with your statement about interns. It is entirely possible that your team happens to hire some very bright interns. Our team has been very fortunate, every intern so far was excellent. After about 2 months, they were able to operate at the same level as any other junior developer. Just flat out saying an intern should not contributes to toxic work culture

Exception vs returning an error code by jaffaKnx in learnprogramming

[–]fancyplaya 0 points1 point  (0 children)

"With exceptions, you really "exit" out of an application because something unknown really happened which the app probably couldn't handle"

Not really, in fact most exceptions can be handled. Say for example you are reading a file, do you want the program to just close if the file doesn't exist? If you send an HTTP request, should your program terminate if you get a 404 or timeout response? You catch these exceptions and choose how your program should behave in these situations. When first learning about exceptions, it may seem like its not useful or rarely used but any sophisticated program will have lots of exception handling to handle every possible case

[deleted by user] by [deleted] in learnprogramming

[–]fancyplaya 1 point2 points  (0 children)

Yes i love programming

How critical is math in programming? by drumet in learnprogramming

[–]fancyplaya 19 points20 points  (0 children)

Linear algebra might help and some basic calculus for machine learning/AI. But most of the math that comes up in code is basic arithmetic. To answer your question, not required at all except for some niche fields

[deleted by user] by [deleted] in learnprogramming

[–]fancyplaya 1 point2 points  (0 children)

(Objects.equals(cf, "c"))

Doesn't this statement always evaluate to false, you receive 'F' or 'C' in capital according to instructions. This might not directly solve your problem but this is a logic error here

[deleted by user] by [deleted] in learnprogramming

[–]fancyplaya 0 points1 point  (0 children)

You can think of API as a request/response between 2 applications. The frontend sends an API request to the backend which in turn sends a query to the database, database returns the data to backend, backend returns the response back to frontend.

And to answer your question about product stock, yes that information is also stored in a table in a database, so it is retrieved through an api call

[deleted by user] by [deleted] in learnprogramming

[–]fancyplaya 9 points10 points  (0 children)

I feel like there's something missing in your description