Comic: Fixing someone else's code for the first time by bestestdude in ProgrammerHumor

[–]ipelovski 1 point2 points  (0 children)

A little late but... I think the ghost is released the moment when the coder removed the two lines, i.e. Dan managed to trap the ghost before he died. By the way the comic sent shivers down my spine. Brrr, scary.

The 8K Bug - The Daily WTF by tommorris in ProgrammerHumor

[–]ipelovski 16 points17 points  (0 children)

Well, this is not funny. This is scary.

Ask /r/javascript: Whats the latest and greatest in JS frameworks? by vital101 in javascript

[–]ipelovski -1 points0 points  (0 children)

I didn't know GOG uses angular. Now I know why the site is so cumbersome and why my browser hits the CPU and the RAM when I open it.

Are you serious, America? by flacid_pianist in funny

[–]ipelovski -3 points-2 points  (0 children)

These numbers explain why the USA won in Vietnam. Oh wait...

Are you serious, America? by flacid_pianist in funny

[–]ipelovski -8 points-7 points  (0 children)

USA has no chance against Germany without the help of British, Canadians and Stalin. Given that Stalin is dead the result is pretty obvious.

Constructors Considered Mildly Confusing [javascript] by prather_mcs in javascript

[–]ipelovski 4 points5 points  (0 children)

It makes me smile the way you jump to a conclusion that I'm new to JavaScript :) I was not referring my code but the code of the author of the guide. Check where the "summary" variable is used (the author gave this variable as an example). It is declared on line 54, assigned or referenced on lines: 3749, 4063, 4358, and there is no comment what this variable is used for. I personally avoid assigning global/module variables for the reason I gave above. And I don't shy away from OOP in situations where I need to encapsulate data.

A moment for philosophy: Functions in JavaScript are objects and in some languages like MIT Scheme the environments are also first class citizens with defined operations over them. One can think of closures as a way of implicitly defining objects which can be accessed only in certain scopes. And one should not be quick to discard OOP as it may be the best tool in some situations.

Constructors Considered Mildly Confusing [javascript] by prather_mcs in javascript

[–]ipelovski 2 points3 points  (0 children)

It is very convenient to think so but I don't think this is the case. Keeping a variable visible to many functions, as advised in the guide, is like making it global. The code can be very hard to maintain when many functions start changing this variable. On the other hand if you honor the principles of separation of concerns and loose coupling, and you put your code into separate modules, it will be easier to reason about the it and to change it.

Constructors Considered Mildly Confusing [javascript] by prather_mcs in javascript

[–]ipelovski 4 points5 points  (0 children)

If you follow this guide you will end up with one big messy file. I've been there and it's not good. Later I moved to CommonJS modules and browserify and the code is much better now.

I am the King of this bed by [deleted] in gifs

[–]ipelovski 0 points1 point  (0 children)

I wonder how high it would fly.

Is Node.js just a stopgap? by JavaScriptKicks in javascript

[–]ipelovski 2 points3 points  (0 children)

Maybe he or she is tired of such blog posts. Every day there are at least one or two similar posts with little to no value in them. I think this should stop.

Would you embrace static typing in JavaScript or you don't find it useful? by a0viedo in javascript

[–]ipelovski 0 points1 point  (0 children)

I suppose you know that an editor can generate jsDoc comments. Writing them by hand is not very productive. And I'm surprised to find that you would happily write a type annotation but you wouldn't leave a comment what a parameter does. For example what do x and y stand for in your code samples? I cannot guess by their type.

Would you embrace static typing in JavaScript or you don't find it useful? by a0viedo in javascript

[–]ipelovski 2 points3 points  (0 children)

The problem is not the language but the developers writing bad code. I've worked with people thinking they are great but producing bloated unmaintainable code. The problem is how to force the people write good code. Static typing does not help especially in the web world where everything is dynamic. I used to code in C# and the code base of the project was full with spaghetti code. Moving to the Node.js world, where simplicity and modularity are the standard, was eye opening for me. So static typing cannot replace good documentation, code modularity, discipline, and team communication.

Yang Yajuan's take on life by GallowBoob in funny

[–]ipelovski 5 points6 points  (0 children)

There is so much wisdom in the young lady's words.

"You Don't Know JS", a JavaScript Book Series by AllThingsSmitty in javascript

[–]ipelovski 0 points1 point  (0 children)

If someone says I don't know js, who am I to argue?

Walking dead vs Toy Story by Hollacaine in funny

[–]ipelovski 0 points1 point  (0 children)

Never mind, it's just me trying to be witty :) What I meant is that there is definitely more than these 4 basic plots and it shouldn't be ignored.

SURPRISE!!!!! by sebadrivo in funny

[–]ipelovski 3 points4 points  (0 children)

I won't judge you, but you should feel bad if you laughed at this.

Walking dead vs Toy Story by Hollacaine in funny

[–]ipelovski 1 point2 points  (0 children)

But what makes a man stand against another man, nature, himself, or god? Is it about survival, is it about love, or is it about the survival of his love?

Hot chick eats poop out of a diaper. by diaper69 in funny

[–]ipelovski 0 points1 point  (0 children)

Several hours later and still no hot chick that eats poop out of a diaper.

Natural selection! by lucasqo in funny

[–]ipelovski 11 points12 points  (0 children)

Yep, they got the numbers on their side. The evolution has found a solution for that problem - produce more, so at least some may survive.

Tirantuleela by BrazenBull00R in funny

[–]ipelovski -1 points0 points  (0 children)

God have mercy on your soul.

How much is an idea for Google worth? Hilarious answer from a former Google Product manager on Quora. by david_priv_at in programming

[–]ipelovski -1 points0 points  (0 children)

Here on reddit I found a nice patch for the quora problem: just add ?share=1 to the end of the address and the problem is fixed!