u/user9713 - 55 Archived Voat Posts in v/programming
u/user9713
  • home
  • search

u/user9713

19 posts · 36 comments · 55 total

Active in: v/programming (55)

  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››
ProjectLearn.io - a site with complex projects to help take your programming to the next level
1 0 comments 07 Dec 2019 14:03 u/user9713 (..) in v/programming
Comment on: Wirify: A bookmarklet that converts any page into a wireframe

Link: https://www.wirify.com/

0 05 Dec 2019 22:17 u/user9713 in v/programming
Wirify: A bookmarklet that converts any page into a wireframe
1 0 comments 05 Dec 2019 22:16 u/user9713 (..) in v/programming
Black Bear Design's Color Guide
2 0 comments 30 Nov 2019 17:06 u/user9713 (..) in v/programming
Comment on: GitLab pulls U-turn on plan to crank up usage telemetry after both staff and customers cry foul

Whatever happened to surveys and / or suggestions?

0 30 Nov 2019 06:32 u/user9713 in v/programming
Comment on: Can you get a job as a self-taught programmer?

It does, thank you.

0 30 Nov 2019 05:34 u/user9713 in v/programming
Comment on: Can you get a job as a self-taught programmer?

Show up at your local co-working place. Find your local tech community. Rent a desk for $100 / month and start working there as much as you can. If you are in a vibrant location, then lots of hiring is done in the break room

Can you expand on this further, especially the "renting a desk" part, please?

0 30 Nov 2019 04:58 u/user9713 in v/programming
Comment on: Banned from LinkedIn for exposing their flawed platform

Video that explains why LinkedIn is a shitty platform: https://www.youtube.com/channel/UC-91UA-Xy2Cvb98deRXuggA

0 07 Nov 2019 16:50 u/user9713 in v/programming
Banned from LinkedIn for exposing their flawed platform
11 3 comments 07 Nov 2019 16:49 u/user9713 (..) in v/programming
TypeScript - The Basics
1 0 comments 05 Nov 2019 23:03 u/user9713 (..) in v/programming
Comment on: In search of the perfect URL validation regex

Oh no, you're retarded.

Go back to building "Hello World"s.

0 05 Nov 2019 03:59 u/user9713 in v/programming
Comment on: In search of the perfect URL validation regex

Seriously man, you fucking lost and now you're trying to save face, and you're doing so doubling down on your retardedness. How stupid can you get? Just take the L and go home, you don't know what you're talking about.

0 05 Nov 2019 03:50 u/user9713 in v/programming
Comment on: In search of the perfect URL validation regex

wHy Do YoU eVeN nEeD tO VaLiDaTe?

0 05 Nov 2019 03:48 u/user9713 in v/programming
Comment on: In search of the perfect URL validation regex

lol why validate user input at all? Unless you run a registrar.

0 05 Nov 2019 03:27 u/user9713 in v/programming
Comment on: In search of the perfect URL validation regex

The regex part is what I'm interested in. As you can see from the link (or do a search), it's tough to find a 100% failproof regex pattern.

0 04 Nov 2019 14:51 u/user9713 in v/programming
Comment on: In search of the perfect URL validation regex

LOL I read that and didn't understand it, either.

0 04 Nov 2019 14:44 u/user9713 in v/programming
Comment on: In search of the perfect URL validation regex

Does anyone know if a perfect regex URL validator exists? There's one in the article I posted that passed all but one test, which makes me wonder if it's even possible.

0 04 Nov 2019 06:24 u/user9713 in v/programming
In search of the perfect URL validation regex
1 0 comments 04 Nov 2019 06:21 u/user9713 (..) in v/programming
Comment on: The 2019 UI Design Crash Course for Beginners

I know it's not programming, but /v/webdesign and /v/design have bother been disabled.

0 29 Oct 2019 00:23 u/user9713 in v/programming
The 2019 UI Design Crash Course for Beginners
1 0 comments 29 Oct 2019 00:23 u/user9713 (..) in v/programming
New in Chrome 78: New origin trials, CSS Properties and Values API, and fresher service workers!
1 0 comments 24 Oct 2019 03:33 u/user9713 (..) in v/programming
Comment on: JavaScript: Do you use a style guide?

Use a decent statically-typed programming language. If someone is forcing you to do some annoying client-side-dynamic Web-shit, and WebAssembly isn't good enough, use something that compiles directly to JavaScript, like Nim, etc.

Thanks! I never knew anything about this.

0 24 Oct 2019 03:20 u/user9713 in v/programming
Comment on: JavaScript: Do you use a style guide?

I thought you were pulling my leg, but there is a style guide called airbnb. Did the company really make a style guide or was it just the name that someone gave it?

0 21 Oct 2019 19:56 u/user9713 in v/programming
Comment on: JavaScript: How It's Made

I don't know of anyway to do what you're saying synchronously. XHR/Fetch use callbacks and promises, respectively.

But I do know that it's more than two lines.

0 21 Oct 2019 01:47 u/user9713 in v/programming
Comment on: JavaScript: How It's Made

lmao I guess I haven't reached that level where I start to see what's wrong with it. I do know that it sucked in the beginning, but it's improved a lot since then and I'm actually enjoying learning it.

0 21 Oct 2019 01:39 u/user9713 in v/programming
JavaScript: Do you use a style guide?
1 0 comments 21 Oct 2019 01:28 u/user9713 (self.programming) in v/programming
Comment on: JavaScript: How It's Made

lol I see.

0 20 Oct 2019 21:03 u/user9713 in v/programming
Comment on: JavaScript: How It's Made

Why do you hate it?

0 20 Oct 2019 20:10 u/user9713 in v/programming
JavaScript: How It's Made
1 0 comments 20 Oct 2019 18:06 u/user9713 (..) in v/programming
Comment on: Firefox's New WebSocket Inspector - Mozilla Hacks - the Web developer blog

Can't wait to see it. I've never messed with Web Sockets, but I have seen a few tutorials that use Web Sockets.

0 17 Oct 2019 01:56 u/user9713 in v/programming
Firefox's New WebSocket Inspector - Mozilla Hacks - the Web developer blog
1 0 comments 17 Oct 2019 01:55 u/user9713 (..) in v/programming
Cringe: This makes me want to draw a swastika using their library and send it to them
1 0 comments 08 Oct 2019 02:33 u/user9713 (..) in v/programming
Comment on: The Node.js Event Loop

I think your example will actually print four "4"s though.

Yup, it does, I just screwed that up lol.

If you did want to print "0,1,2,3" (not 1,2,3,4 since we are printing the "i" which is being used as an index for the array, you can save it in a closure:

Thanks for sharing the example! I've learned a bit about closures, but not to the point where I can recite what you can do with them off top of my head, other than that they're functions inside functions.

As for the code I posted, it's a JS brainteaser that was posted on reddit a few days ago.

FWIW, the top answer said that you could use let instead of var and it will give you the intend result.

I've learned a lot from both you and that other person and the article. Thanks again!

0 08 Oct 2019 00:05 u/user9713 in v/programming
Comment on: The Node.js Event Loop

I'm 99.9% sure the Event Loop is part of JavaScript (which Node.js builds on top of), but the guide is geared towards learning Node.js, so it was titled that way.

Regardless, this is one of the best explanations I've seen regarding the Event Loop, Call Stack, Message Queue, and Job Queue.

0 07 Oct 2019 22:23 u/user9713 in v/programming
The Node.js Event Loop
1 1 comment 07 Oct 2019 22:20 u/user9713 (..) in v/programming
Comment on: Surprise! Copying crummy code from Stack Overflow leads to vulnerable GitHub jobs

I've may have copied a snippet once from there. Assuming I had a question in the context of "How do you...," I would go there to look at the syntax than research the syntax myself to make sure it is what I need and then do some testing to get a feel for how it works.

Another flaw with relying on Stack Overflow is that the top search results can be outdated. Languages are always changing and there may be better / different ways to do things than there was before.

0 07 Oct 2019 16:19 u/user9713 in v/programming
Event Bubbling in JavaScript? Event Propagation Explained
1 0 comments 07 Oct 2019 03:56 u/user9713 (..) in v/programming
Comment on: Serious question: why would anyone use spaces?

I'm interested to know why.

I use Python quite a bit (programming is a hobby for me, though).

I actually never noticed the debate between Spaces and Tabs until I got ESLint running on VSCode and all those red squiggly lines popped up.

0 02 Oct 2019 23:53 u/user9713 in v/programming
Comment on: Serious question: why would anyone use spaces?

This is hilarious; I can't tell if you're serious 😂

Anyway, that's pretty fucked up that the compiler enforces an indentation type.

0 02 Oct 2019 23:35 u/user9713 in v/programming
Comment on: Serious question: why would anyone use spaces?

Would you make it: variable, some amount of tabs, =, value?

This is what I do (sorry that it's tough to see the mouse cursor)

https://files.catbox.moe/u8vw9s.gif

0 02 Oct 2019 15:28 u/user9713 in v/programming
Serious question: why would anyone use spaces?
1 0 comments 02 Oct 2019 04:02 u/user9713 (..) in v/programming
Comment on: Which is your favorite Version Control site?

This explains it, assuming you know the terminology: https://en.wikipedia.org/wiki/GitHub#Scope

If you don't, DYOR.

0 01 Oct 2019 22:41 u/user9713 in v/programming
Which is your favorite Version Control site?
1 0 comments 01 Oct 2019 17:50 u/user9713 (self.programming) in v/programming
Comment on: JavaScript: how to deal with a function that requires a callback or promise?

I was using this as a template and it didn't work. It just continued on.

var promise1 = new Promise(function(resolve, reject) {
  setTimeout(function() {
    resolve('foo');
  }, 300);
});
promise1.then(function(value) {
  console.log(value);
  // expected output: "foo"
});
console.log(promise1);
// expected output: [object Promise]
0 29 Sep 2019 14:22 u/user9713 in v/programming
Comment on: Python: Why is this evaluating to True?

That's pretty interesting, thanks for sharing. And yeah, that is a mess lol.

0 29 Sep 2019 13:27 u/user9713 in v/programming
JavaScript: how to deal with a function that requires a callback or promise?
0 0 comments 29 Sep 2019 13:24 u/user9713 (self.programming) in v/programming
Comment on: Python: Why is this evaluating to True?

Ah, I see. So just use == instead?

0 29 Sep 2019 05:41 u/user9713 in v/programming
Comment on: Python: Why is this evaluating to True?

I've tried this using a regular dictionary by inserting the key / value manually and it evaluates to False, as expected. But when I try it here, it evaluates to True.

FWIW, success is a string

0 29 Sep 2019 05:35 u/user9713 in v/programming
Python: Why is this evaluating to True?
1 1 comment 29 Sep 2019 05:33 u/user9713 (..) in v/programming
Are there any working Python YouTube APIs for downloading videos?
1 0 comments 23 Sep 2019 15:02 u/user9713 (self.programming) in v/programming
Comment on: Dynamic Typing vs. Static Typing

Thanks!

0 23 Jul 2019 17:32 u/user9713 in v/programming
Comment on: Dynamic Typing vs. Static Typing

LMAO great analogy!

0 23 Jul 2019 03:41 u/user9713 in v/programming
Comment on: Dynamic Typing vs. Static Typing

Explained here: https://voat.co/v/programming/3347536/19860217

0 23 Jul 2019 03:22 u/user9713 in v/programming
Comment on: Dynamic Typing vs. Static Typing

(For anyone reading, feel free to correct me or add more to it)

Programming languages are either Static Type or Dynamic Type.

Static Type means to declare the data type of the variable that you want to define. Example:

int a = 5;
string b = "Hello World";
bool c = true;

In the above, the data types are int, string, and bool.

In Dynamic Type programming languages, you do not declare the data type. Instead, the programming can deduce what type of data it is by what you put in. Example:

a = 5;
b = "Hello World";
c = true;

Pros and Cons:

  • Dynamic Type is generally easier for beginners, is faster to write code, and the compiler is less likely to give errors when you attempt to run the program. However, you still have to be careful as you might not get the result you were expecting.
  • Static Type forces you to cross your "i"s and dot your "t"s. The compiler will give you errors if what you're trying to define doesn't match with the data type you declared. However, it's a bit slower to write code.

And for the meme: the Dynamic Type guy finishes faster but gets unexpected results, while the Static Type guy is really far behind.

0 23 Jul 2019 03:14 u/user9713 in v/programming
Comment on: The programmer who created Python isn't interested in mentoring white guys

But why is Python so popular?

IMO, Python is just an easy language to program in. It's also great for scripts / bots / web apps, which are pretty popular.

0 24 May 2019 03:49 u/user9713 in v/programming
  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››

archive has 9,592 posts and 65,719 comments. source code.