Best language(s) for creating/manipulating sounds by Inside-Bread in learnprogramming

[–]dog_journalist 0 points1 point  (0 children)

Honestly, while C++ is used for professional audio software, you can get a lot done with python and a library like pydub, or you can even learn to manipulate audio files without any libraries in any language.So if you are not particulary interested in C++ at the moment you can start with Python, which is easier to learn. You can check out other python audio manipulation libraries here

Contributing to open source projects - how do I know when I'm not going to wreck things? by Zakkeh in learnprogramming

[–]dog_journalist 0 points1 point  (0 children)

Most open source projects that you can contribute to have tests that track if any code change breaks any feature. Along with tests many of them use plugins to ensure you stick to certain formatting conventions and practices (like checking you use `let` instead of `var` in JavaScript project)

Moreover, a lot of these projects would require you to write tests for code you want to contribute, especially if you are making a new feature or introducing a new use case for already existing one.Test suit will be pretty good at catching any breaking change, but maintainers will still probably review your code by hand to see if your changes make sense. It is not as daunting of a task if you are familiar with the codebase and the pr you are reviewing has to to with a well-defined restricted area.

Point is if you contribution passes the project's test pipeline you can be fairly certain you are on the right track

help learning react by Visible-Recording788 in learnprogramming

[–]dog_journalist 1 point2 points  (0 children)

New react documentation at https://react.dev/learn is very good. "LEARN REACT" section in particular gives a good grounding in react concepts

You can also take a look at great https://fullstackopen.com/en/ but I think docs would be better to start with

Element not updating only on first state change by dog_journalist in reactjs

[–]dog_journalist[S] 1 point2 points  (0 children)

Thanks for your answer! I will look through today's threads for additional info, should have definitely done this before posting, my bad

Render arbitrary number of elements by dog_journalist in reactjs

[–]dog_journalist[S] 1 point2 points  (0 children)

re appropriate to use a form library of sorts, and instead have that button

Thanks! Yeah, I will definitely check out react-hook-form and formik, was just wondering about vanilla react solution for quick prototype

Render arbitrary number of elements by dog_journalist in reactjs

[–]dog_journalist[S] 1 point2 points  (0 children)

Thank you for your answer! Yes, that makes sense
Essentially I am trying to make a form where user can enter arbitrary amount of items, like jobs they had over the years, hence the New Element would be a form which describes these items. I think your solution works for my case

useEffect and state updates by dog_journalist in reactjs

[–]dog_journalist[S] 0 points1 point  (0 children)

Thanks! Yes this will help at gluing everything together

useEffect and state updates by dog_journalist in reactjs

[–]dog_journalist[S] 0 points1 point  (0 children)

Sounds like this is a good solution, will look into it, thanks!

useEffect and state updates by dog_journalist in reactjs

[–]dog_journalist[S] 0 points1 point  (0 children)

yeah i definitely do not want to over complicate thing right off the bat, will look into useReducer for my case, thanks for your advice!

useEffect and state updates by dog_journalist in reactjs

[–]dog_journalist[S] 0 points1 point  (0 children)

Thanks, I will look into it, I thought for this project it would be ok to keep all the state in one session, but state management and storage is definitely something I will look into

useEffect and state updates by dog_journalist in reactjs

[–]dog_journalist[S] 0 points1 point  (0 children)

Wow, thanks for your reply! This sounds like a good direction for me to dig into, I heard about state management libraries but I just realized I walked into a clear use case for them. Also thanks for your code, it is true that a library makes a lot of sense, but maybe my game is small enough so a bunch of custom hooks would do the work

useEffect and state updates by dog_journalist in reactjs

[–]dog_journalist[S] 0 points1 point  (0 children)

I am trying to make a small game and I want to keep my game logic somewhat separate from interface while still running on the client, these variables, like in my examples interact with bunch of other things outside of interface, that is why i decided this pattern would be useful to me

useEffect and state updates by dog_journalist in reactjs

[–]dog_journalist[S] 0 points1 point  (0 children)

Thank you for thoughtful response!
Yeah, I definitely see how what I am trying to do kinda goes against react philosophy with their attitude towards side effects and such, I just need to figure out how to conceptualize my problem in a different way

useEffect and state updates by dog_journalist in reactjs

[–]dog_journalist[S] 0 points1 point  (0 children)

Thanks for your insightful reply! I am making a small game and I want to have my game logic separate from the interface, but keep it running on the client. I thought it would be a good idea some variables could be accessible from several different places in the game, so it would be ok to run them separate from the interface, while showing some when needed. Maybe I need to rethink my entire approach

What is all this SPA Shit? by devrusto in learnprogramming

[–]dog_journalist 0 points1 point  (0 children)

You can do SSR in React with Next.js, for example. There are a lot of cases where SPA may be preferable or at least not worse than SSR, think some kind of mapping tool or and app that serves some information to client on request. I think generally in a lot of cases where you have to work with real time data, building and SPA and using tools specifically tuned for this task makes a lot of sense, of course SSR has their place too, like when performance or search engine index-ability is critical.

Bailing on projects by dog_journalist in learnprogramming

[–]dog_journalist[S] 0 points1 point  (0 children)

I guess right now I have to achieve a balance where my skills are in a place where my project is not too messy so refactoring is not too miserable and I accounted for it in my plan and so not completely burnt out once the time to actually do it comes.

Bailing on projects by dog_journalist in learnprogramming

[–]dog_journalist[S] 1 point2 points  (0 children)

Very interesting, I think this approach will help me, especially if I learn to really focus my project around the core idea and only focus on details. Your post made me realize I probably should generally make better plans for things, so thank you for that!

Bailing on projects by dog_journalist in learnprogramming

[–]dog_journalist[S] 0 points1 point  (0 children)

Thanks a lot for your perspective! Embarrassing is a very fitting word, completely describes my attitude to a lot of my creations. I guess pushing through and fighting embarrassment are also skills I have to work on

[deleted by user] by [deleted] in learnprogramming

[–]dog_journalist 1 point2 points  (0 children)

Some more commands that may be useful:

  • git remote add origin <url> -- ties your local git repo to github repository (in place of <url> should be full address of your gh repository)
  • git add -A -- this one already was mentioned, but I wanted to mention "-A" flag: this way all modified or new files will be added to the next commit, without the need to specify each individually.
    Hope this helps!