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/programmingComment on: Wirify: A bookmarklet that converts any page into a wireframe
0 05 Dec 2019 22:17 u/user9713 in v/programmingWirify: A bookmarklet that converts any page into a wireframe
1 0 comments 05 Dec 2019 22:16 u/user9713 (..) in v/programmingComment 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?
Comment on: Can you get a job as a self-taught programmer?
It does, thank you.
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?
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
Banned from LinkedIn for exposing their flawed platform
11 3 comments 07 Nov 2019 16:49 u/user9713 (..) in v/programmingComment on: In search of the perfect URL validation regex
Oh no, you're retarded.
Go back to building "Hello World"s.
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.
Comment on: In search of the perfect URL validation regex
wHy Do YoU eVeN nEeD tO VaLiDaTe?
Comment on: In search of the perfect URL validation regex
lol why validate user input at all? Unless you run a registrar.
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.
Comment on: In search of the perfect URL validation regex
LOL I read that and didn't understand it, either.
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.
In search of the perfect URL validation regex
1 0 comments 04 Nov 2019 06:21 u/user9713 (..) in v/programmingComment 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.
The 2019 UI Design Crash Course for Beginners
1 0 comments 29 Oct 2019 00:23 u/user9713 (..) in v/programmingNew 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/programmingComment 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.
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?
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.
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.
JavaScript: Do you use a style guide?
1 0 comments 21 Oct 2019 01:28 u/user9713 (self.programming) in v/programmingComment on: JavaScript: How It's Made
Why do you hate it?
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.
Firefox's New WebSocket Inspector - Mozilla Hacks - the Web developer blog
1 0 comments 17 Oct 2019 01:55 u/user9713 (..) in v/programmingCringe: 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/programmingComment 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!
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.
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.
Event Bubbling in JavaScript? Event Propagation Explained
1 0 comments 07 Oct 2019 03:56 u/user9713 (..) in v/programmingComment 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.
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.
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)
Serious question: why would anyone use spaces?
1 0 comments 02 Oct 2019 04:02 u/user9713 (..) in v/programmingComment 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.
Which is your favorite Version Control site?
1 0 comments 01 Oct 2019 17:50 u/user9713 (self.programming) in v/programmingComment 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]
Comment on: Python: Why is this evaluating to True?
That's pretty interesting, thanks for sharing. And yeah, that is a mess lol.
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/programmingComment on: Python: Why is this evaluating to True?
Ah, I see. So just use == instead?
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
Python: Why is this evaluating to True?
1 1 comment 29 Sep 2019 05:33 u/user9713 (..) in v/programmingAre there any working Python YouTube APIs for downloading videos?
1 0 comments 23 Sep 2019 15:02 u/user9713 (self.programming) in v/programmingComment on: Dynamic Typing vs. Static Typing
Thanks!
Comment on: Dynamic Typing vs. Static Typing
LMAO great analogy!
Comment on: Dynamic Typing vs. Static Typing
Explained here: https://voat.co/v/programming/3347536/19860217
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.
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.
Link: https://www.wirify.com/