7 ms·
Ask HN: What problem can I help you with?
I'd like to offer up my expertise as a web/software developer and work through a problem of yours that I will post to my blog.
- _ink_ 5y agoWhat is a state of the art tech stack to sync backend session state to multiple browsers simultaneously with push messages?
- alejoar 5y agoWebsockets
- The_rationalist 5y ago
- bobblywobbles 5y agoI'd be interested to work on a post regarding this. My blog is in my profile. Bookmark it or sign up for updates and when I write it, you'll be notified.
- adamredwoods 5y agoI'm not sure what you're looking for, but a fun problem I ran into one day (one that I solved, but ultimately we went a different route) is to find an existing key in a js object, and insert a new key/value js object after that key. For example: const userdata = [ { name: "Emma", age: 21, hobby: { reading: true, gaming: false, sport: "tennis" }, class: ["Java", "Go", "Nginx"] }, { name: "John", age: 22, hobby: { reading: true, gaming: false, sport: "football" }, class: ["JavaScript", "HTML", "CSS"] }, ] const newdata = { knitting: true } And then, the task is to make a utility function to find "name: John", then "hobby" and append newdata in the "hobby"object. Try to apply immutability. Try to do without the overhead of JSON string conversion.
- LecroJS 5y agoMaybe I’m misunderstanding the problem but any reason why you can’t just call .map on the input array and if el.name === John -> el.hobby[knitting] = true, then return el regardless?
- adamredwoods 5y agoYou could if the object was a known structure, but I needed a function that could be a utility for any object (some were quite large), something like: const newobj = insertIntoObject( obj, ["name:John", "hobby:*"], newdata )
- bobblywobbles 5y agoInteresting, yes I think that would make a good post - what's the best way to get a hold of you? Do you prefer email?
- adamredwoods 5y agosure my email is on my site.
- NWoodsman 5y agoI need help building Wixsharp deployments of my note-taking app that hasn't seen the light of day, and/or otherwise migrating the code to Github to allow others to build from source. In general I need help launching.
- bobblywobbles 5y agoThat's a neat idea, get in touch with me? Let's see what we can figure out. Let me know - my contact detail is in my profile.
- pagemodel 5y agoI have an open-source web testing framework that I've been working and I'm preparing to launch. I you're interested, I'd love any feedback on using it or where to improve the documentation. https://github.com/pagemodel/page-model-tools https://github.com/pagemodel/page-model-tools
- bobblywobbles 5y agoPerfect, of course, I'll post a comment on your repo!
- muzani 5y agoHow can I refactor a monolithic codebase when every change breaks everything?
- kevinmhickey 5y agoVery carefully. But seriously, check out the book "Working Effectively With Legacy Code" by Feathers. It has helped me tremendously in multiple refactorings. His thesis is that Legacy Code is code without tests. So to make it not Legacy you need to add tests then refactor safely. Then he explains the very complex patterns that can arise and how to deal with them. This book is one of a few that changed my career. https://www.amazon.com/Working-Effectively-Legacy-Michael-Feathers/dp/0131177052/ref=sr_1_1?keywords=working+effectively+with+legacy+code&qid=1642561693&sprefix=working+effe%2Caps%2C95&sr=8-1 https://www.amazon.com/Working-Effectively-Legacy-Michael-Fe...
- muzani 5y agoThanks for the recommendation! Exactly what I was looking for. Yup, the problem is that large chunks of the code are useless and must be removed, but I don't really want to write tests on those. Other parts have to be decoupled and removed and I end up needing to write end to end tests.
- bobblywobbles 5y agoGreat idea! I really like it, I have worked in a few places where that happened as well. Can we collaborate a little bit more on what specific you are looking for - my contact details are on my blog (link is in my profile). Hope to hear back from you.
- navyad 5y agoFirst write tests without touching existing code. Once tests are complete, do refactor.
- muzani 5y agoFor context, it's Android, and it'd doing weird threading stuff that makes tests crash.
- BOOSTERHIDROGEN 5y agoAutotrader in IBKR, with this strategy: selling 1-3 dte spx put at 6 delta with profit 70%.
- bobblywobbles 5y agoI'm not fully sure what all of these acronyms mean, but I can look into it - can you reach out to me on my profile for my contact?
- ab_testing 5y agoThis sounds interesting. As I understand, IBKR does provide an API and examples. Although I am also a newbie, may be we can collaborate and try to write something like this together. Have you tried to run the API examples or connect to IBKR using the API.
- BOOSTERHIDROGEN 5y agoCoding wise I'm definitely not that proficient that is why I'm asking OP to help :)
- Lost101 5y agoEmployment. I'm old enough to wonder if it's age discrimination. I've got a messed up work history that it probably isn't, but I never had problems finding work until after I was 35 (I'm 47 now). I've done enough crazy things that I've added additional obstacles to normal sane employment. But, I'd like a stable job, one that pays well enough to import my wife, in the UK/Ireland or US based working remote (EU would also be great but brexit took that away from me). I've been working short term contracts that are okay and I live in a cheap place (I am living in Turkey), but my last contact just ended. My last job was game dev but I'd rather do things I previously was doing, Python/perl/C/Matlab scientific computing.
- bobblywobbles 5y agoI'll consider writing a post to try to help you out! I don't have similar experiences so my potential help isn't with actual experience though. I will see!
- nicbou 5y agoA way to visualize what a gicen salary means in a given country (in my case just Germany). See my latest submission for a better description of the problem.
- dipen_dedania 5y agoYou are software developer so have you created any hobby product? If yes, how do you start marketing of it?
- bobblywobbles 5y agoI actually just posted my own story here! (I can also approach a more "getting-started" guide as well though) https://www.debugandrelease.com/how-i-gained-1k-stars-on-my-github-project/ https://www.debugandrelease.com/how-i-gained-1k-stars-on-my-...