Questions tagged [language-discussion]
The language-discussion tag has no summary.
11 questions
7 votes
2 answers
4k views
How do JavaScript engines convert async/await to promises under the hood?
I'm curious how the async/await syntax is converted to Promises. Maybe I'm just not thinking about it properly, but I don't know how this code would be converted to a Promise: async function myFunc(...
3 votes
2 answers
821 views
How to get an object that another object is prototype of?
Javascript in the DOM has a peculiar characteristic. There's a different Object object that an object (by default) inherits per window. In order to find what kind of object is being sent to a function ...
12 votes
6 answers
39k views
What does "enterprise" means in relation to software architecture?
I see the term "enterprise" being thrown around software developers and programmers a lot and used loosely it seems. en·ter·prise/ˈentərˌprīz/ Noun: A project or undertaking, typically one ...
8 votes
7 answers
888 views
What is the "PHP Way"?
I see constant references to the " Way," such as descriptions of a particular framework or application as "Pythonic," a certain person as a "Perl hacker," or "true Ruby code," but where are the "PHP ...
30 votes
5 answers
39k views
When and why you should use void (instead of e.g. bool/int)
I occasionally run into methods where a developer chose to return something which isn't critical to the function. I mean, when looking at the code, it apparently works just as nice as a void and after ...
25 votes
8 answers
10k views
The importance of javascript and the best way to learn it? [duplicate]
I'm a new graduate, but I have been doing web development for about six months. When I was finishing university the server side languages (PHP, Java) were more important then client side languages. ...