4 ms·
open devtools in your browser. (f12 in chrome) type: console.log ("hello world") pretty simple
by hutzlibu 8y ago
open devtools in your browser. (f12 in chrome)
type:
console.log ("hello world")
pretty simple
- ModernMech 8y agoDo people actually use devtools to write code?
- projectramo 8y agoTo be fair, s/he was responding to "Today you have to download and understand a stack of tools and languages before you get anything printing on the screen." It is true that people don't generally ship code written in devtools, but then most of the programs shipped on the Commodore 64 were not written in basic. (Unless you count hundreds of peeks and pokes as basic.) I do miss the immediacy of the programming experience, but I also think the correct modern day analog of that is the browser.
- ModernMech 8y ago> but I also think the correct modern day analog of that is the browser. The browser is exactly what I had in mind when I said "you have to learn a stack of languages". Sure, okay, console.log() gets you "hello world", but so does "echo" so maybe I placed the bar too low. Still, getting into the modern web experience requires you to learn HTML + CSS + Javascript and how they relate and interop. Fast forward a little bit from the BASIC days to Visual Basic. Back then you could write a desktop application with a GUI, controls, a window, and needed one language and one environment. I don't see how the browser world is easier or more approachable than that.
- hutzlibu 8y agoWell," Back then you could write a desktop application with a GUI, controls, a window, and needed one language and one environment. " you still had to learn the different gui frameworks and how they work. Also, if you want, you can write GUI in the browser without html/css, with the canvas element. There are frameworks for that, not sure how mature they are, though.
- ModernMech 8y ago> you still had to learn the different gui frameworks and how they work. No you didn't, it was built into the VB editor; you just dragged and dropped elements into a window frame, then edited callback functions. You didn't have to leave VB at all or learn any other language or framework.
- hutzlibu 8y agoAh ok, I never used VB. I experienced that with Delphi ... and much more elaborate with Adobes Flex(or more beautiful, but less clean, with Flash), which is pretty dead nowdays unfortunately and I have not found a replacement. Any tool which tried to do this for HTML has been horrible so far.
- meredydd 8y agoAgreed - the browser leaves much to be desired as an accessible dev platform, and the web as a whole is even worse! (Why do I need to learn HTML, CSS, JS, Python, SQL and React/Redux/Bootstrap/Flash/SQLAlchemy just to get started?! And that's not mentioning Webpack, AWS, shell scripting...). We've built an explicitly Visual Basic-like programming environment for the web - it's got one language (Python), drag'n'drop design, built in database, actual working autocompletion - the works: https://anvil.works https://anvil.works. Would love to hear what you think!
- hutzlibu 8y agoI do. Allmost exclusively for anything js related (except node). Works pretty good since they made saving files stable. Seriously, it is pretty good nowdays. You can do debugging, and when you find a error - you just fix it there instantly, without the need to change enviroment.
- cr0sh 8y agoBut it really isn't - not for a kid without any knowledge of programming. When I was a kid (1984) - it was "plug the computer into the TV, turn it on, start coding (in BASIC)" Today - a kid would have to first: 1. Start up computer, wait for it to boot (or tablet, whatever) 2. Log in (maybe) 3. Start up browser. 4. ??? That's where they would be - they'd have no concept of "dev tools" or what it is for. Long before then, they'd be sucked into some other time waster most likely. It would take an adult to show them what and where dev tools was, and then it's a long hard slog from that point. Back in 1984 - it really was much simpler. Ok - well, from zero you'd have to read the manual that came with the computer, but most of the manuals jumped right into coding in BASIC, and could get you going quickly. Then there was the plethora of computer programming magazines that you could purchase: https://archive.org/details/computermagazines https://archive.org/details/computermagazines ...and today, most of them available; oh if we only had that resource back then! But we did have a lot - plus books, BBS's (for the lucky with a modem and phone), user groups... Today, it is nowhere near as easy to start out - not for someone with -zero- knowledge. However, if they can get over that hump - then a grand world can open for them, with the right mentoring...
- hutzlibu 8y agoSeriously? If you say the main problem for kids is to use a browser on a computer in the first place, than I really doubt those kids could just start coding in basic on a computer in 1984. And since most do use chrome, or are able to download it - and are also able to press F12 (most kids I told this, could) ... they could immediately start digging into the code of any website. Just changing colors of elements, rearranging ... and then finding out how to do the same with code. Also, there is Scratch, Lego Mindstorms, etc. etc. the barriers have never been lower. The only problem might be, that it is too much choice and easy to get lost and loose interest, but any dedicated kid can jump into it.
- pvg 8y agoThe difference is, there just wasn't much the computer could do. Programming it was one of its main purposes. A modern computer is an actually-useful-in-everyday-life item.