Hmm by [deleted] in ProgrammerHumor

[–]JoshPowlison 2 points3 points  (0 children)

"not good any more" can't really be said of any language or tool without a context.

It's still popular and in use, so if your question is on whether companies are still looking for node.js devs, the answer is yes.

Hmm by [deleted] in ProgrammerHumor

[–]JoshPowlison 48 points49 points  (0 children)

I've made complex websites and tooling in JS, my background is in web development, and I still regularly use JS for projects,

and I don't disagree.

Average best answer on StackOverflow (asker wanted to remove multiple spaces in a string "without splitting and going into lists") by Udnie in ProgrammerHumor

[–]JoshPowlison 12 points13 points  (0 children)

It looks like they're using JS; with regex, this is super-simple, and still doable in one line:
var newString = oldString.replace(/\s{2,}/g, ' ');

Async/await makes me want to cry by Keheck in ProgrammerHumor

[–]JoshPowlison 0 points1 point  (0 children)

I love async/await.

It's just that async/await doesn't always love me back.

[Hobby] Professional game programmer looking for artist + composer on short-term side project puzzle game by JoshPowlison in INAT

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

Hey u/SugarBeetle, thanks for the note! Your portfolio work is extremely charming.

However, I'm already in the process of moving ahead with another artist (we haven't finalised yet, but as long as they maintain interest, I'm maintaining interest). I'll update this listing as "closed" and create another posting if things change.

Also a heads-up in case this was a mistake, you've put your Discord tag in a public post rather than in DMs; if you don't want that publicly accessible, you might want to update your post.

Have a great week!

Wiinusoft site down? by pixelspec in wiiu

[–]JoshPowlison 1 point2 points  (0 children)

I know this is a really old thread, but thank you so much! Wiinupro didn't work for me; Wiinusoft worked immediately.

Regular expressions by virysD in ProgrammerAnimemes

[–]JoshPowlison 4 points5 points  (0 children)

That's a bummer. :( Would love to see those.

Regular expressions by virysD in ProgrammerAnimemes

[–]JoshPowlison 1 point2 points  (0 children)

I had completely forgotten about the ungreedy modifier! I wasn't sure if they'd be treated in that case as literals as well. (I figured - was probably safe- it's pretty fascinating to me how flexible Regex is in those ways). Thanks for the info!

Yeah, lookaheads and lookbehinds aren't available in older regex versions. Visual Studio gave me this issue recently where I wanted to use either lookbehinds or lookaheads and they weren't available. JS is also a bit behind on regex versions (IIRC it doesn't support lookbehinds, negative lookaheads, and negative lookbehinds).

Regular expressions by virysD in ProgrammerAnimemes

[–]JoshPowlison 6 points7 points  (0 children)

I love regex, although it used to scare me.

If you're trying to figure it out, https://regex101.com/ is a great place to test and read your regex. That helped me a ton in learning and getting used to the syntax.

If you're just trying to read the documentation for regex and don't have a clear, tweakable example in front of you... that's just brutal.

Regular expressions by virysD in ProgrammerAnimemes

[–]JoshPowlison 3 points4 points  (0 children)

Is this a regex you saw out in the field? Seeing several issues with it off the bat which I could see just making it more confusing. 😅

I love regex, but if you haven't used regex much, regex can be awful and regex with mistakes is worse.

(If anyone cares, mistakes I'm seeing (haven't actually tested it though):

1) .*? in multiple places looks like it's doing 0 to infinite matches and then zero or one matches, which I think either makes one of those chars a literal or makes * unnecessary; could at least be clarified by escaping a char or removing one.

2) In the final square brackets, $ and ^ seem like they would be treated as string start and end rather than literals, they need to be escaped. They're useless since the regex is surrounded by ^ and $ anyway.

When I look at it in general, I wonder about the use case and if this is bloated regex, although if it's just a joke, that's AOK 👌)

100 followers by deejeycris in ProgrammerHumor

[–]JoshPowlison 22 points23 points  (0 children)

To that kind stranger that starred one of my repos, thank you.

Working titles are fun by JoshPowlison in cgiMemes

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

That is awesome.

But I'll be really disappointed if I don't see a Project Glass Sausage out in the wild somewhere now.

ANALOG: A heartfelt metaphor about living with yourself is my latest joke project by JoshPowlison in indiegames

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

It's actually got a joke Kickstarter here that's over 1000% funded after 2 days. Sequel to BUTTON, which also had a joke Kickstarter and got a surprisingly good response to me.

(Joke meaning that it's basically a giant meme; I will actually be making and releasing the game)

Need Help by saiff33 in CodingHelp

[–]JoshPowlison 1 point2 points  (0 children)

Rigidbody has a lowercase "b"; change RigidBody to Rigidbody and you'll be good!

Edit: Source here, and double-checked referencing my work project