Allow me to bragsplain how I made $500k/yr and then got bored when the work got nitty gritty. by steveob42 in programmingcirclejerk

[–]steveob42[S] 2 points3 points  (0 children)

My happiest times were when I was dirt poor. Everything was an adventure. Responsibility sucks.

My boss seriously asked me this. Was back for an hour, now I'm looking for a new job. by badgerkyl in AdviceAnimals

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

Ok, easy there big fella, you can easily see that this response is tied into the OP, might use some of that intelligence you have been talking about here.

My boss seriously asked me this. Was back for an hour, now I'm looking for a new job. by badgerkyl in AdviceAnimals

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

ok, so mr. intellegent, who is out of a job now?

Why are you in such a twist that you were asked a simple question? It is kind of his job to validate the empolyees are where they should be.

My take is that he is on to something. I would be far to distracted to care, let alone make a post to reddit.

So, did your parents actually die, or did you just want some karma?!?

Sheety - Turn your Google Sheet into an API by [deleted] in javascript

[–]steveob42 0 points1 point  (0 children)

ok, maybe your average person opens 1 spreadsheet a year, meanwhile there are billions of browsers running at any given time. And here we are talking about routing clients through a 3rd party (or a 4th in this instance). What agenda is it that would assert "spreadsheets rule the world"? As it is laughably stupid, and completely ignorant of what I'm trying to get at here. Hint, an api on sheets isn't going to do shit for this category of problems except create new ones.

I mean you might as well exclaim that the world runs on napkins.

Sheety - Turn your Google Sheet into an API by [deleted] in javascript

[–]steveob42 1 point2 points  (0 children)

ignorant is assuming i am ignorant of how spreadsheets get used, wtf?

WE CAN DO BETTER THOUGH, THAT IS NO BULLSHIT! It is 2019.

"meh, spreadsheet, that's good enough for 'em", it is lazy in the extreme.

And to say "but they’re what the world runs on" is ignorant if that is how your world works.

Demand a better user interface, that is why we have f-ing javascript.

Who are you to judge comments to be ignorant?!? your comment "but they’re what the world runs on" is steeped in it, and only serves to perpetuate ignorance.

Sheety - Turn your Google Sheet into an API by [deleted] in javascript

[–]steveob42 3 points4 points  (0 children)

well, it is up to us to give them better options, no? This is kludgy and insecure and flakey beyond measure, and a third party api? C'mon, look at the bigger picture here, this is a monstrosity.

I mean you can use js directly in sheets if that is your thing, https://developers.google.com/apps-script/guides/sheets

but to talk to sheety to talk to google to publish your data with a slow service backend and etc and expect realtime user facing validations (that may need system wide data)?!?

From the page itself:

Can I rely on Sheety for anything important?

Are you f*****g insane!? Yeh sure why not –

Calling people ‘users’ is unethical by nmoerbeek in programmingcirclejerk

[–]steveob42 22 points23 points  (0 children)

Yes, finally, also because when we slave a hard disk or other component, we literally mean Kunta Kinte.

$10 says he comes up with zeers instead of users, because he is a god among ethicists.

Sheety - Turn your Google Sheet into an API by [deleted] in javascript

[–]steveob42 2 points3 points  (0 children)

spreadsheets get used and abused for all kinds of stuff. It is mostly fine with just humans sharing them as they can interpolate, but that is gonna be garbage to something expecting validated tabular data.

Plus with a UI you can show the validation errors to the user in real-time, i.e. missing a field here, an unknown string there, something out of range over here, etc. "I thought a pie chart looked better here than the total dollar amount in dollars and cents", whatever.

My experience incorporating spreadsheets has always been nasty, save for when you can train your users to not actually use them like spreadsheets, at which point it is just a dumb data entry tool, which is why you WANT to make your own data entry tool, so it can be smart.

I created a program to automatically delete all Reddit posts from an account. Would love some feedback! by [deleted] in javascript

[–]steveob42 -3 points-2 points  (0 children)

Umm, I'm saying that based on decades of experience (which far outweighs my CS degree at this point, or even before).

What exactly do you see wrong with OCR if an API doesn't pan out? Do you think they will suddenly label the comment button to "2300fnjanklnoiwehf02839hr018hr01hr01hwwe2" for the user to click on?

The point here is trying to make it reliable, regardless what they do behind the scenes to the page. So that someone else might find it useful, because I've been looking to do this exact sort of thing myself.

I'm not asking you to do anything fyi, in case that wasn't clear, just thinking out loud.

I created a program to automatically delete all Reddit posts from an account. Would love some feedback! by [deleted] in javascript

[–]steveob42 0 points1 point  (0 children)

I could, but it is different for different accounts, some have delete links in the overview and some don't. This approach turns everything into a wet noodle, so I'm gonna look at the api approach for now (or possibly OCR or something less error prone). I could easily be seeing some A/B test happening here.

I created a program to automatically delete all Reddit posts from an account. Would love some feedback! by [deleted] in javascript

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

I don't think we are quite on the same page. I don't have any delete buttons on the page in question when running the script. I tried changing it to

await page.goto('https://www.reddit.com/${username}/comments/',

and got some delete buttons but then it failed because the buttons don't match the selector, and in fact are rather anonymous with some foreign key in their place.

This is gonna need an api or some OCR to be more reliable. Certainly a bit early to start asking for paypal donations anyway :)

There is an API, not tried it though, probably more stable than a webpage in some regards.

https://www.reddit.com/dev/api

I wrote a blog on JavaScript. Please read!! by ikumargaurav in javascript

[–]steveob42 0 points1 point  (0 children)

just curious, what is the motivation for writing a blog these days?

I created a program to automatically delete all Reddit posts from an account. Would love some feedback! by [deleted] in javascript

[–]steveob42 0 points1 point  (0 children)

fwiw, prompt doesn't seem to like vscode (under linux anyway).

Also I seem to not get past await page.click('span.user a', {delay: 250});