User talk:TheTechie/UserTools

Latest comment: 18 days ago by Novem Linguae in topic Re: ideas

To start a new ticket, click "New section" above. Do not use Edit source, as it has the possibility of new topics being included as part of old topics, unless you know what you are doing.

Re: ideas edit

Howdy. Thanks for the message on my user talk. For new user script ideas, I'd recommend checking WP:US/R, or my list of user script ideas. As you immerse yourself in Wikipedia, ideas will probably also come to you.

I took a peek at your code at User:TheTechie/tut.js. A couple things jumping out at me in terms of code quality. 1) e.preventDefault is a function and needs parentheses, e.g. e.preventDefault(). 2) Class names are usually capitalized, e.g. class TextBlocks and blocks = new TextBlocks();. 3) The first time you declare a variable in JavaScript, you're supposed to use a keyword such as let or const. Let means you plan to change its value, const (constant) means you're just declaring it once.

Have fun on your JavaScript journey. I was mainly a PHP programmer before I started my Wikipedia stuff. Needless to say if you write lots of user scripts your JavaScript skills will go way up! –Novem Linguae (talk) 02:09, 26 April 2024 (UTC)Reply