HackerTrans
TopNewTrendsCommentsPastAskShowJobs

casual-dev

no profile record

Submissions

Ask HN: Help, I'm Drowning in JavaScript

51 points·by casual-dev·4 năm trước·54 comments

comments

casual-dev
·3 năm trước·discuss
[flagged]
casual-dev
·3 năm trước·discuss
Question is, can I use my spare APU for this. On second thought, giving it more VRAM in BIOS only means using more RAM for it. So it would just be a RAM disk with extra steps.

Nevertheless, neat!
casual-dev
·4 năm trước·discuss
My first time in the UK shook my world: Where is the bread? This is it? That is not bread! After that visit I realized that Germany has a rich baking culture. And yes, we do love a hard crust once in while. So please, leave the Knäusele for me, if you don't like it.
casual-dev
·4 năm trước·discuss
Im curious: Why are you running a fake HTTP server? To slow down bots for a while or does it serve a higher purpose?
casual-dev
·4 năm trước·discuss
You are much appreciated. I didn't even know there is term for this part of my work.

Down the line, we do everything you cautiously described. We extract single fields with pointers (in lack of a better term, english is not my main language) to the XML/JSON fields we like to extract. Our software then lets us use JS snippets to manipulate the contents. Problem is, once you define a rule, it may get 80-90% over hundreds of datasets. But breakage is not an option most of the time. It's pareto principle work: 80% in 20% of the time, 20% work in 80% of the time. In the end, they are just snippets, then a giant gap, then the projects my colleague does.

I get where you are coming from, regarding "never to do that again". This not the only work I do. I also build HTML from customer demands, many of which are pdfs meant for print use, but not for the web. I like it, but I only scratch the surface of what might be. Thanks to the resources in this thread, I have a good insight of what to come. So, thanks again.
casual-dev
·4 năm trước·discuss
Essentially, this is what I do. First matching with a broader regex ruleset, working down to next one and so on and so forth. But with more complexity of code comes more breakage down the line. I went in full maze mode yesterday and questioned everything after thtat, so this is what my sanity looked like this morning.

Regex isn't really the problem though (even though it technically should also not be the solution in this case, but I cannot dictate the techstack). It was just the last drop on my frustration with the situation and myself not being able to do, what my colleague does, even though I want to. I felt the need for help, and I got it. Awesome community around here.
casual-dev
·4 năm trước·discuss
I can agree on the fundamentals, even though I took OOP and CS in college, but that was a long time ago and not my main field of study. I find it hard to apply to JS though, as you said, it is not easy to comprehend.

Are you suggesting a different technology stack for the fundamentals? Others seem to go the same way, but they are suggesting it within the ecosystem of JS, just not with the overhead of the new technologies.
casual-dev
·4 năm trước·discuss
It does and it sets a good perspective on the problem at hand. Thank you.
casual-dev
·4 năm trước·discuss
You are right, but me and my colleague are limited on time unfortunately, because there is so much work to do. I already asked him, if he could include me in his next project, just to watch, what he is doing from the boilerplate up. Maybe this clears out some of the question marks. And thank you for the resources. I already use regexr.com for visualisation, but this seems better for learning.
casual-dev
·4 năm trước·discuss
Thanks, I just needed the hint to take a step back and reevaluate.

Having a wiki is a good tip, I already have started to maintain a small database with snippets I use often. But it's just that. My next focus will be having a project which does not have to many features. Baby steps it is.
casual-dev
·4 năm trước·discuss
Thanks for the kind words. Slowly going into the water is my approach as well, but sometimes it just gets to me. My learning projects die on the hill, because of the frustration I have on the job with these techniques. Plus, overwhelming ecosystem.

About my regex problem: This is a structual mess. JSON/XML with HTML code in the data fields. We process them and send them to multiple job boards. Our clients mainly use HRM software or some CMS, some of which are only able to spit out whatever HTML is displayed on their career sites. This code often does not even have classes or IDs. Most of the times we are dangling together whatever is between two headlines, praying those won't change. But they do, because the recruiters put fields, where they not belong. I call myself code cleaner, not web dev nowadays. We are not able to use APIs, because the receiving job boards either don't offer one, the client doesn't, or it's just not worth it financially.

I will take a step back and reevaluate my situation.
casual-dev
·4 năm trước·discuss
Thanks for the infos. Are Storage-Boxes fully enabled Nextcloud instances with the known web ui?
casual-dev
·5 năm trước·discuss
While I see your points, your statements are - as you said yourself - a good example of negativity. Covid for me personally was not that hard on me. I got to spend more time with my wife and less with colleagues at work while working remote. My commute dropped to zero, I had much more free time at hands. I got to work out indoor and outdoor whenever possible. Dropped 60 pounds from March 2020, after entering the first lockdown. I even got tighter with my family during these times. And I could finally tackle some of the projects I had left for dead.

I cannot claim to be the epitome of positivity though. I have to work on my views of people in general. Anti-Vaxxers and climate change have left me with deep emotional cuts, consider it weltschmerz.

Are you by any chance driven by outside 'pings'? Extrovert people that rely on direct feedback from others really had/have a bad time. Maybe this realisation or thinking about it may help you understand why you are feeling this way. In the end, every negative situation e.g. a global pandemic, need some form of personal resilience. How to get there is unfortunatley on you to figure out.
casual-dev
·5 năm trước·discuss
While that might be true, Samsung phones are not in the same realm when it comes to sustainable source materials. Which is kind of the idea behind Fairphone.
casual-dev
·5 năm trước·discuss
I had to read the headline twice. The name scheme chosen makes it almost impossible not to think that this isn't an IMDb news bit.
casual-dev
·5 năm trước·discuss
Thanks for the info, that looks promising. I will have a look into it, maybe it helps straighten some problems out.
casual-dev
·5 năm trước·discuss
I'm a biker by heart, I do not own a car anymore. It is delusional to think, that our bikes are better than any other globalized production cycle product. Even if you buy from a local store, you sadly don't know, if they used unethical source materials. We need full insight into this cycle, where the source material came from, who got their hands dirty etc.

Otherwise it all can be sold to much higher prices, being fair and all, but in reality you are just buying the same dubious materials as before. I will never feel like a customer that is treated fair, until I can be sure about the origins of the materials.
casual-dev
·5 năm trước·discuss
I admit it. I hate Windows 10. Probably 11 too. Maintaining four machines, two of which family related, I'm not able to say how much of a hassle it is to just keep them running, unsupervised and supervised. We are not talking rocket science here: mail and web browsing, some light gaming here and there. No malware, no miners, just plain and simple machines. After 6-12 months, they are not usable anymore.

Final straw for my private machine: I was not allowed to save in my own working folder. This was on a fresh out of the box install. I'm still angry. I switched to Linux full time after this.

I can not image how it must feel like when you are not having admin privileges. Given it is not a work machine, I would just refuse to go near it. No meditation would be enough to help me stay calm. My heart goes out to everyone who has to deal with this crap, I hope you get good money for it.
casual-dev
·5 năm trước·discuss
While I understand the problem, the only solution is a big red sign "Abandon all hope ye who enter" or taping it all shut. It was fun while it lasted.

I guess a big userbase will always attract people with malicious intent, abusing the tech behind everyday apps. But the original creator cannot do anything, when his or her successor does not weed out the bad. Even if they do, this cycle will never break. Interesting morale problem for open source software developers.
casual-dev
·5 năm trước·discuss
Once the audio chat feature is seamlessly integrated, I even consider ditching my old mumble server for it. Or not. Probably not. Our group just needs audio, with the occasional picture flood, until they get it out of their system. Since some (me include) won't use Discord due to privacy concerns, I still hope for a good and reliable self hosted alternative. A more modern user interface sure would be nice.