sdleihssirhc

- friends
524 link karma
166 comment karma
send messageredditor for
what's this?

TROPHY CASE


  • One-Year Club

    Verified Email

Why we need python in the browser by electronics-engineerin Python

[–]sdleihssirhc -3 points-2 points ago

If we are given downvotes, we're enough
To do our Reddit loss; and if vote up,
The fewer men, the greater share of honour.
God's will! I pray thee, wish not one man more.
By Jove, I am not covetous for points,
Nor care I who doth comment on my post;
It yearns me not if trolls my 'pinions mock;
Such outward things dwell not in my desires:
But if it be a sin to covet honour,
I am the most offending soul alive.
No, faith, wish not a man from other reddits:
God's peace! I would not lose so great an honour
As one man more, methinks, would share from me
For the best hope I have. O, do not wish one more!
Rather proclaim it, freshwire, through my host,
That he which hath no stomach to this fight,
Let him depart; his passport shall be made
And crowns for convoy put into his purse:
We would not fail in that man's company
That fears his fellowship to fail with us.
This day is called the Ides of March, my coz:
He that outlives this day, and comes safe home,
Will stand a tip-toe when the day is named,
And rouse him at the name of Ides of March.
He that shall live this day, and see old age,
Will yearly on the vigil feast his neighbours,
And say 'To-morrow is the Ides of March:'
Then his account will he open, his posts.
And say 'These flames I had on Ides of March.'
Old men forget: yet all shall be forgot,
But he'll remember with advantages
What feats he did that day: then shall our names.
Familiar in his mouth as household words
sdleihssirhc and freshwire,
Be in their flowing cups freshly remember'd.
This story shall the good man teach his son;
And the Ides of March shall never go by,
From this day to the ending of the world,
But we in it shall be remember'd;
We few, we happy few, we band of brothers;
For he to-day that feeds the trolls with me
Shall be my brother; be he ne'er so vile,
This day shall gentle his condition:
And those in other reddits now a-bed
Shall think themselves accursed they were not here,
And hold their manhoods cheap whiles any speaks
That fought with us upon the Ides of March!

Why we need python in the browser by electronics-engineerin Python

[–]sdleihssirhc -9 points-8 points ago

In practice, it kind of sucks because it doesn't really fit the way humans think or reason about things.

Here, let me fix that for you: "It doesn't really fit the way I think or reason about things."

the fact is that most experienced JavaScript programmers end up trying to simulate class-based objects.

And by experienced, of course, you mean "programmers who are used to thinking one way and don't want to put in the effort to learn to think a different way."

Excellent programmers who produce amazing code? Of course! Proof that prototypal inheritance is inferior? BWAHAHAHAHA

You may not realize this, but you're making a pretty good argument for why JavaScript should not be written by fallible humans and should instead only be machine generated.

I guess you missed the point, so let me try again.

First: I don't rely on semi-colon insertion. Because when I learn a language, I like to learn how to do things right. After all of the languages you've studied, you've probably started doing this, too. (Good for you, by the way! Most people don't!)

Second: If you're really writing organized and maintainable code (given your impressive experience, I think we can assume you are), when is ASI going to make a difference? Maybe you have a certain style, so that it breaks when a semi-colon gets inserted (such as putting return on a line of its own, etc). And if that's the case, then guess what? It's not a wart. That's you wanting to format your code the way you want, regardless of the language you're in.

inb4 "formatting things this way instead of that way makes it easier to reason about code and maintain large projects &c"

That being said, here's the biggest problem:

Weak types are generally a bad idea because they make reasoning about code more difficult. For example, == isn't even transitive in JavaScript. For a toy language that's okay: everything you're building is small enough to fit entirely in your head or throwaway code so who cares about being able to reason about it. It you want to build large systems that can actually be maintained, however, being able to reason about code is critical.

All you're advocating is laziness as opposed to discomfort, both in the smallest measurable amount. Again: When has this ever made a difference in your code?

In all seriousness! You want to throw in my face that == isn't even transitive? (For shame!) When has that bitten you in the ass?

When have any of these "warts" actually messed up your code?

I'm going to go out on a limb and say they haven't. I'm going to guess that you're such an amazing coder, you learned about these situations and know to watch out for them.

"But now I have to think about things! Maintainability!"

I feel for you, buddy. And while JS is 8th on the TIOBE index, and being expanded to be used on the server and Windows apps, you can go ahead and keep whining about how no one actually chooses to code with it, or it's just a toy, or good things are only capable in spite of it.

Also:

I can't think of a language that has closures without the equivalent of "immediately-invoked function expressions".

ActionScript 3, for one, iirc.

Why we need python in the browser by electronics-engineerin Python

[–]sdleihssirhc -2 points-1 points ago

  1. Also know Python. It's amazing! Really great working with a language that was built with complex tasks and maintainability in mind.

  2. My opinion on JavaScript isn't valid because... I know JavaScript?

Why we need python in the browser by electronics-engineerin Python

[–]sdleihssirhc -2 points-1 points ago

  • this refers to either the global object or is undefined (depending on whether or not you're in strict mode)
  • this refers to a node if the function is executed from an event handler or a W3C event listener
  • this refers to an object if the function is executed with new or as a method
  • this can be changed with call/apply

THIS IS MADNESS!

The Browser You Loved To Hate - by IE by chrisarchitectin browsers

[–]sdleihssirhc 4 points5 points ago

What I was promised: "The IE team has a sense of humor about past versions of their browser!"

What I got: "Web developers are obsessive to the point of mania and delusion!"

Why we need python in the browser by electronics-engineerin Python

[–]sdleihssirhc -16 points-15 points ago

Dear Mr. Stop Liking Things I Don't Like,

JavaScript is actually awesome.

  • closures
  • prototypal inheritance
  • first-class functions
  • immediately-invoked function expressions

You're pretty much totally wrong.

The only reason people use JavaScript at all is because they have to

Nice try.

  • How it's use of this "crazy"? You sure you didn't mean "different"?
  • Is there any justification for weak typing being a flaw other than "waaa"?
  • No int type? Seriously?
  • Has semi-colon insertion ever screwed your code up?
    • If it has, how many times?
    • If it's more than one, how much time have you spent tracking down these errors?
    • If it's a lot of time, have you ever considered, you know, actually learning JS?

But yeah, "lack of non-string keys" actually is really annoying.

Full Disclosure

JavaScript was the first language I learned. PHP was the second language I learned. I never studied computer science; I'm just some nobody self-taught web dev. So what the hell could I know?

In Closing

If JavaScript is a "toy" (talk about kind of meaningless), then so is the Internet that runs on it.

Sincerely,
Yup, I Mad

Tired of fighting with widths, padding, and borders making your layouts look strange? Use box-sizing: border-box, and all your problems go away by Paradoxin css

[–]sdleihssirhc 0 points1 point ago

Finally, I can stop worrying about sizing my <html>, <head>, <title>, <meta>, <link>, <style>, <noscript>, <script>, <br />, <select>, <option>, <body>, <td>, <th>, <tr>, and hidden <input> tags.

What's the point of PSD UI elements that so many sites offer? by mkk1in web_design

[–]sdleihssirhc 0 points1 point ago

Unless you're working with anything involving more than one layer.

Stop Trying to Delight Your Customers - Harvard Business Review by jalbertbowdenin webdev

[–]sdleihssirhc 1 point2 points ago

I thought the point was that between "delightful" service and actually solving my damn problem, the latter is more important in building customer loyalty.

Chrome vs. Firefox by Aries2203in browsers

[–]sdleihssirhc -3 points-2 points ago

But Firefox doesn't have the addons I use, Firefox can't handle my 100+ tabs and stay open for days, Firefox is a memory hog, and I don't want Mozilla to know everything I do online. So once again, Firefox is proven to be objectively worse.

You assface.

Chrome vs. Firefox by Aries2203in browsers

[–]sdleihssirhc -8 points-7 points ago

Chrome is pretty much the Jesus of internet browsers. Firefox is okay, but it's demonstrably worse in every single way. I'm not saying that it's a piece of crap, or that anyone who uses it is a braindead idiot child, but yeah, it's pretty much a piece of crap, and anyone who uses it is pretty much a braindead idiot child.

Firefox is fine, I just can't imagine why anyone would use it instead of Chrome. I try to ask users why they prefer inferior software, but none of them are willing to have a real conversation about it. They just use ad hominem and appeal to authority, the assfaces.

Why is everyone else so stupid?

F5 Syndrome by wesleyshynesin web_design

[–]sdleihssirhc 1 point2 points ago

Probably not a big deal here, just an fyi: some proxies don't cache static resources that have a query string.

Why wrap content in a div? by kihajiin webdev

[–]sdleihssirhc 2 points3 points ago

Just wanted to point out that tag soup is malformed HTML, not excessive/unnecessary HTML.

How does this CSS triangle shape work? by cruise02in css

[–]sdleihssirhc 1 point2 points ago

Man, the guy who wrote that accepted answer is so funny. He's probably really successful and rich and an awesome friend and constantly surrounded by girls who are amazed by his mastery of the CSS box model.

Is it bad practice to use isset() on every-fucking-thing? by nichiatuin PHP

[–]sdleihssirhc 22 points23 points ago

LIKE A BOSS

How does Google do their new checkboxes? by sdleihssirhcin web_design

[–]sdleihssirhc[S] 0 points1 point ago

Oh man, I'm sorry. Totally spaced. Hope this clears it up.

view more: next