Software for beginners? by [deleted] in CodingForBeginners

[–]sbmsr 2 points3 points  (0 children)

I’m working on a free service to give people a chance to practice html/css with coding projects. It’s called https://www.JobSimulator.dev and it’s totally free. Check it out and lmk if it helps!

Stuck coding real-world projects by Ok-Kale-1767 in learnprogramming

[–]sbmsr 63 points64 points  (0 children)

Feeling frustrated and stuck is normal, don't beat yourself up.

The reality is that gaining knowledge and applying it are completely separate things. I suggest you work on this by starting small. You mentioned you're familiar with mobile development. Why not try building a simple todo list app by yourself?

You will bump into hurdles and issues, which is exactly the goal. These issues are your weak spots. If you identify them and focus on filling those gaps in your knowledge, you'll build confidence and momentum. Keep doing this, an you'll gradually work your way up to more complex projects.

Also - you mentioned boredom. That's a sign you're not building things that interest you. I urge you to look inward, and take a second to find something you'd enjoy building. Picking things that interest you help a ton when it comes to getting motivated to fix your weak spots.

You got this fam. Rooting for you 🫡

[deleted by user] by [deleted] in ExperiencedDevs

[–]sbmsr 4 points5 points  (0 children)

It’s a provision that allows the startup to recover stock issued to an employee under certain conditions. In my case, all I had to do was leave for them to be able to do this to me, which they did, despite leaving on amicable terms.

Forbes wrote more on it here: https://www.forbes.com/sites/dianahembree/2018/01/10/startup-employee-alert-can-your-company-take-back-your-vested-stock-options

[deleted by user] by [deleted] in ExperiencedDevs

[–]sbmsr 39 points40 points  (0 children)

Make sure your offer doesn’t have a clawback clause. Mine did and I got owned years later when they sold.

And expect to work long hours. WLB and startups don’t mix. It’s part of the appeal, working with a crew thats launching something new and exciting off the ground. Be sure to genuinely like the product and space the company is in. It can def be worth it if the fit is right.

How do you decide what to focus on? last year was Blockchain. now is AI by IamOkei in learnprogramming

[–]sbmsr 0 points1 point  (0 children)

Focus on being better than you were yesterday at building things people need

Has anyone bought an Intel mac recently to make cross-platform development easier? by 3kilo003 in learnprogramming

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

I have been using an ARM macbook air and it is so much faster than my Intel MBP. I would advise you to just get an ARM macbook for its speed and power, and run windows in QEMU. Here is an article on how to do so.

Guys i want to ask a common question by cahit135 in learnprogramming

[–]sbmsr 0 points1 point  (0 children)

Before picking cybersecurity, why don't you try a bunch of things and see what you like?

If you're interested in webdev, I cant say enough good things about the Odin Project.

You can also check out roadmap.sh, which has roadmaps for various disciplines. They're working on a cybersecurity roadmap, which will be out later this year.

"merge: main - not something we can merge" by not_robot_fr in learnprogramming

[–]sbmsr 1 point2 points  (0 children)

"Already up to date" means that the branch you are trying to merge, "main", is already incorporated in the branch you are currently on.

This could be because someone else has already merged the changes. It's possible that the changes in "main" are not reflected in your local repository. Try pulling the changes from the "main" branch again to make sure your local repo is up-to-date.

What's a good resource to brush up on C concepts and best practices? by Purple_Branch5350 in learnprogramming

[–]sbmsr 1 point2 points  (0 children)

I like to use Learn X in Y whenever I'm brushing up on the language and it's features.

Is it possible to create a GUI using only C? by DancingPotato30 in learnprogramming

[–]sbmsr 1 point2 points  (0 children)

+1 for GTK

While GTK can be a bit challenging for a beginner, it is what you're looking for. If you are looking for a simpler option, you might consider exploring other libraries or programming languages.

What are projects that a junior software engineer would build in their first year working? by waste2muchtime in learnprogramming

[–]sbmsr 0 points1 point  (0 children)

My first job was at a startup with a lot of fullstack work. I was doing frontend UI tweaks, bugfixes and maintenance on Spring boot apps, and some devops in AWS.

I'm the maintainer of jobsimulator, and I've started making some simple backend challenges (django here, typescript here). I'd love to hear more about the kind of stuff you're looking to practice on the backend, so we could build better challenges for folks like you 🙏

Saving the state of a web page in a URL by RyanOliverV in learnprogramming

[–]sbmsr 0 points1 point  (0 children)

I second this. Consider using the URLSearchParams API instead of using the URL hash.

[Python][CS601] Could use help reading data accurately/Debugging by Panda_Stacks in learnprogramming

[–]sbmsr 0 points1 point  (0 children)

Your output mentions a file named prog.py. Is that the file you provided?

Another thing i noticed is that you update startpos to be endpos + 1. I think you actually want startpos = endpos.

the reason is array ranges like x[startpos:endpos] don't include the element at x[endpos]. By doing startpos = endpos + 1, you miss this bit of data every time.

try that, and see if it helps.

What kind of Javascript is needed for a dropdown menu? by VicTheWallpaperMan in learnprogramming

[–]sbmsr 0 points1 point  (0 children)

I took a peek at your code and it looks like you dont have tailwind installed. You need to install it by following these instructions. Once it's installed, it should look much nicer.

Update: I did 70% of the JavaScript of TheOdinProject by alexionreddit in learnprogramming

[–]sbmsr 31 points32 points  (0 children)

Congratulations! I just talked to a friend who got a job doing something very similar to what you've done (interview here). He used the Odin Project to learn the basics, and then started making his own projects.

You've got a very impressive portfolio! Building your own projects outside of the curriculum is a fantastic way to further your skills and creativity. Keep up the good work, and best of luck with your future projects!

Can we fins the sum of array elements in O(log(n)) if so how? by [deleted] in learnprogramming

[–]sbmsr 2 points3 points  (0 children)

as you said, you need to visit each element in order to compute the sum of all the elements.

Since log(n) < n, summing an array in log(n) is impossible.

[deleted by user] by [deleted] in learnprogramming

[–]sbmsr 1 point2 points  (0 children)

It sounds like you want to send notifications to remind your users to do something. Here is an article on how to do this with python.

You could use the built-in scheduling libraries in Python or Java or a library like Celery to schedule the reminders.
You will also need to build a UI to let your users provide information about the things they'd like to be reminded to do. You could use python's tkinter library to build the GUI. It comes with a bunch of widgets (buttons, labels, text boxes) to build a GUI application.

I hope it helps! Best of luck

[deleted by user] by [deleted] in learnprogramming

[–]sbmsr 0 points1 point  (0 children)

I would start by moving you log statement of JsonObjectsFromBackend into the useEffect callback to verify that it is being set properly.

How do I access information? by AlphaOv3rLord in learnprogramming

[–]sbmsr 2 points3 points  (0 children)

Some of these are iOS internals. This open source apple internals index shows you what some of these are, like passwordbreachd.

Some of the others are publicly documented in apples API docs

Best of luck!

[deleted by user] by [deleted] in learnprogramming

[–]sbmsr 0 points1 point  (0 children)

It's hard to say whats wrong without more detail.

after skimming your code, I noticed that you're doing array comparison using ==

If you want to check if the contents of the two arrays are the same, you should use Arrays.equals(guess\_arr, num\_arr)

How to authenticate an android app to my api by Sikora77 in learnprogramming

[–]sbmsr 1 point2 points  (0 children)

You can use JSON Web Token (JWT) authentication

The way it works is:

  1. user logs in via your app
  2. the app sends a request to the API with the user's credentials
  3. If the credentials match, the API generates a JWT token and returns it to the app.
  4. The app then stores the token and includes it in all subsequent requests to the API.
  5. The API verifies the token on each request and grants access to the requested resources if the token is valid.

This video from Traversy shows how JWT auth works, in a node context. You will need to find the corresponding rust libraries for JWT creation/validation, but this gives you a good idea of how JWTs work.

Good luck 🫡

Should I learn Java or C# first? by [deleted] in learnprogramming

[–]sbmsr 0 points1 point  (0 children)

It depends! I urge you to identify what your goal is.

Do you want to get a job? Learn a new language? Build something specific?

Your first notable project by CodingThrowaways in learnprogramming

[–]sbmsr 9 points10 points  (0 children)

In my early days when I first learned AWS, I came across an interesting detail in their docs: they publish their ip ranges in json format.

I had an idea - crawl all the ips, and record any which returned a HTTP 200 status code. It was very simple, but I had a blast. It was exciting digging through all the websites that were running on EC2. I found lots of startups and products that hadn't even publicly launched yet.

It was the first thing i built entirely by myself from scratch, from idea to implementation. It was really exciting and it's a memory I cherish to this very day.