u/Lesuorac - 4 Archived Voat Posts in v/programming
u/Lesuorac
  • home
  • search

u/Lesuorac

0 posts · 4 comments · 4 total

Active in: v/programming (4)

  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››
Comment on: Programming tip: Stay away from throwing exceptions.

Wasn't one of the primary reasons to use exceptions to get away from error codes?

Rather than having to memorize that error code 10 was G4Network down you're supposed to throw G4NetworkException? Seems more logical to me to throw an exception than return some random error code, espically if you wanted your function to return a String or something else. Now you have a String going into your method that gets mutated so that your function can return an error code.

4 12 Mar 2016 00:28 u/Lesuorac in v/programming
Comment on: Programmer quits work on project after getting triggered by a variable name (The comments, however . . .)

Not quite that easy, that only shows you where it is used in your code.

If anybody else uses your code then now all of their code is broken too. This is why when programming languages go to remove stuff they leave it deprecated for years so that people have a lot of time to stop using it.

0 03 Feb 2016 00:26 u/Lesuorac in v/programming
Comment on: Programmer quits work on project after getting triggered by a variable name (The comments, however . . .)

rip replied to wrong person.

0 03 Feb 2016 00:26 u/Lesuorac in v/programming
Comment on: You Might Not Need jQuery

Why reinvent the wheel making your own functions when you can buy somebody else's (for free)?

Sure we could all go write our our socket library than tcp and then http and use that for our get/posts but it's sure as hell a lot easier just to type $.get/post.

It's not like JQuery is rapidly changing, with caching once somebody has loaded the page the future requests won't occur. 84.3 kB is more than 0 but much smaller than images & etc.

--

But sure, if all you want to do is show an alert when somebody clicks a button don't load JQuery but I'm not sure when you only want 4 lines of javascript except when checking how something works.

2 18 Oct 2015 03:02 u/Lesuorac in v/programming
  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››

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