DEV Community

Discussion on: The Future of "View Page Source"

Collapse
 
akashkava profile image
Akash Kava

Source code of Web Assembly will not be available, or it will be obfuscated. I still like plain JavaScript and Source Maps.

Collapse
 
somedood profile image
Basti Ortiz

That's true. I just wanted to point out that the Web has been going in the direction of just "being a compilation target"—WebAssembly being a prime example.

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

Why would you want the clients to access the source maps?

Open sourcing (OSI) is just a movement with criticisms, but it is indeed probably the currently world direction.

Collapse
 
akashkava profile image
Akash Kava

Better error messages with debug information helps in resolving issues quicker.

Thread Thread
 
patarapolw profile image
Pacharapol Withayasakpunt

I wonder if it can go that way with Android, iOS or even desktop apps as well.

What about Stack Trace?

WASM / compilation shouldn't exclude the possibility.

Thread Thread
 
akashkava profile image
Akash Kava

Yes it is big pain, Stack Trace without line number is useless.. Probably that's the reason people are more interested in React Native and JavaScript based development. We were using Xamarin for app development. And we created Web Atoms JavaScript for mobile app development on Xamarin.

Thread Thread
 
benjozork profile image
Benjamin Dupont

It's an immature technology - sadly compromises had to be made in order to get support out the door.

Source maps are already supported.

Collapse
 
easrng profile image
easrng

Well you will be able to view the WAST, but it won't look like source code unless you are doing very simple things. It's more readable than assembly, but even minified js is more clear.