Live data from Hacker News

Using Code Snippets in Chrome Developer Tools

alexkras.com

11–20 of 43 posts

Re: Using Code Snippets in Chrome Developer Tools

#11
post #9
post #5

In the 80s home computers shipped with a programming language as their OS (BASIC language to be precise) - today the browser dev tools are the closest equivalent. You can use them on any PC with no additional software - wished it was made more obvious so everyone could experiment with programming like those of us who got their first computer experience 25-30 years ago could do.

The browser has always been the one of the easiest ways of tinkering with programming, but these days our browsers come with sophisticated developer tools unlike anything else installed on an average person's PC. Back when I didn't know anything about compilers I wanted to write 'C++' but didn't understand how I could produce an executable, I instead saved html and js into folder and loaded them up in the browser --…

That's how I first fell in love with PHP

Re: Using Code Snippets in Chrome Developer Tools

#12
post #9
post #5

In the 80s home computers shipped with a programming language as their OS (BASIC language to be precise) - today the browser dev tools are the closest equivalent. You can use them on any PC with no additional software - wished it was made more obvious so everyone could experiment with programming like those of us who got their first computer experience 25-30 years ago could do.

The browser has always been the one of the easiest ways of tinkering with programming, but these days our browsers come with sophisticated developer tools unlike anything else installed on an average person's PC. Back when I didn't know anything about compilers I wanted to write 'C++' but didn't understand how I could produce an executable, I instead saved html and js into folder and loaded them up in the browser --…

1980s: Computers come with a BASIC interpreter

2000s: Computers come with a web browser that can run JS

2010s: Computers come with a web browser that can run JS and has some other tools

But what was available in the early 1990s, when IBM-compatible PCs had become cheap enough to have at home, but ~everyone ran DOS+Windows? I don't remember there being any way (unless you count BAT files) to easily get started writing programs.

For those who got their first taste of programming in the 90s, what language and compiler/IDE did you use?

Re: Using Code Snippets in Chrome Developer Tools

#15
post #9

Earlier quoted context omitted.

The browser has always been the one of the easiest ways of tinkering with programming, but these days our browsers come with sophisticated developer tools unlike anything else installed on an average person's PC. Back when I didn't know anything about compilers I wanted to write 'C++' but didn't understand how I could produce an executable, I instead saved html and js into folder and loaded them up in the browser --…

1980s: Computers come with a BASIC interpreter 2000s: Computers come with a web browser that can run JS 2010s: Computers come with a web browser that can run JS and has some other tools But what was available in the early 1990s, when IBM-compatible PCs had become cheap enough to have at home, but ~everyone ran DOS+Windows? I don't remember there being any way (unless you count BAT files) to easily get started writing…

MS-DOS came with GW-Basic and later QBasic, and the latter lives on in QB64: http://www.qb64.net/

Re: Using Code Snippets in Chrome Developer Tools

#16
post #2

Not sure this is "hidden". Anyone who has spent ten minutes poking around chrome dev tools is likely to have discovered this.

I guess I am not observant enough then. Spent hours of hours debugging in the exact "Sources" tab but didn't notice this feature.

Re: Using Code Snippets in Chrome Developer Tools

#17
post #7

Is that possible to run these snippets automatically once page is loaded? I guess this will raise some security issues if it's possible, but I don't want to use things like Tampermonkey anymore.

There used to be, but it was removed years ago. The official suggestion is to use Tampermonkey instead.

Re: Using Code Snippets in Chrome Developer Tools

#18
post #9

Earlier quoted context omitted.

The browser has always been the one of the easiest ways of tinkering with programming, but these days our browsers come with sophisticated developer tools unlike anything else installed on an average person's PC. Back when I didn't know anything about compilers I wanted to write 'C++' but didn't understand how I could produce an executable, I instead saved html and js into folder and loaded them up in the browser --…

1980s: Computers come with a BASIC interpreter 2000s: Computers come with a web browser that can run JS 2010s: Computers come with a web browser that can run JS and has some other tools But what was available in the early 1990s, when IBM-compatible PCs had become cheap enough to have at home, but ~everyone ran DOS+Windows? I don't remember there being any way (unless you count BAT files) to easily get started writing…

Qbasic back then was a cut down version of Microsoft QuickBasic compiler. Wrote a lot of code in that.

Re: Using Code Snippets in Chrome Developer Tools

#19
post #9
post #5

In the 80s home computers shipped with a programming language as their OS (BASIC language to be precise) - today the browser dev tools are the closest equivalent. You can use them on any PC with no additional software - wished it was made more obvious so everyone could experiment with programming like those of us who got their first computer experience 25-30 years ago could do.

The browser has always been the one of the easiest ways of tinkering with programming, but these days our browsers come with sophisticated developer tools unlike anything else installed on an average person's PC. Back when I didn't know anything about compilers I wanted to write 'C++' but didn't understand how I could produce an executable, I instead saved html and js into folder and loaded them up in the browser --…

> unlike anything else installed on an average person's PC

MS Office, Open Office both come with an embedded IDE.

Re: Using Code Snippets in Chrome Developer Tools

#20
post #5

In the 80s home computers shipped with a programming language as their OS (BASIC language to be precise) - today the browser dev tools are the closest equivalent. You can use them on any PC with no additional software - wished it was made more obvious so everyone could experiment with programming like those of us who got their first computer experience 25-30 years ago could do.

But if you have internet access then you can get almost any dev tool and documentation, but if you don't have access then you probably don't have Chrome or Firefox, and even if you have the browser, it has no offline documentation. The 80s was different because internet access wasn't so widespread.
Post reply on HN