Ask coding questions

← Back to all posts
anyone can teach me some new coding trick
Creativekids

i want to know some new coding trick

Voters
Creativekids
Comments
hotnewtop
codingjlu

(node.js) Instead of:

you can simply do:

FloCal35

in HTML, instead of writing <div class"something"></div>, you can just type in .something and press enter
(IDK if that's a code trick but it's a lazy one)

ch1ck3n

instead of 2-line functions that do basically nothing, just write

as

Wumi4
  • Know Python decorators? Search about it if you don't know it.
  • Learn about data classes in Python if you don't, it can be pretty helpful

That's some new stuff that I know.