wtfpython
wtfjs
Our great sponsors
wtfpython | wtfjs | |
---|---|---|
48 | 94 | |
34,944 | 33,616 | |
- | - | |
4.4 | 0.0 | |
about 2 months ago | 4 months ago | |
Python | JavaScript | |
Do What The F*ck You Want To Public License | Do What The F*ck You Want To Public License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
wtfpython
-
Wat
https://github.com/satwikkansal/wtfpython
"Mutating the immutable" is my personal favourite - the second line of code fails with an exception despite having already succeeded:
>>> t = ([1, 2], 5, 6)
-
Ask HN: What are the best tutorial sites for Python?
All these are neither recent (they are updated though) nor AI related. Here you go :
If you are new to dev, I like "think python"
If you are already into programming, I personally find sifting through organized small code snippets helpful for learning a new language :
https://github.com/jackzhenguo/python-small-examples
https://github.com/satwikkansal/wtfpython/blob/master/README...
https://www.30secondsofcode.org/python/p/1
Finally, "The Hitchhiker’s Guide to Python" is good for everything configuration, and usage.
- abmagick – abuse ImageMagick to create arbitrary files
-
WTFPython: Exploring and understanding Python through surprising snippets
Mutable default arguments is the one I see most likely to come up regularly, it's gotten us a few times: https://github.com/satwikkansal/wtfpython#-beware-of-default...
-
Understanding all of Python, through its builtins
In a similar vein you may like "WTF Python: Exploring and understanding Python through surprising snippets":
https://github.com/satwikkansal/wtfpython
HN thread: https://news.ycombinator.com/item?id=26097732 (163 comments)
PS: found with a site I'm building: https://discussions.xojoc.pw/?q=Understanding+Python+through...
-
3 > 2 > 1 == True in Python But 3 >2 >1 == false in JavaScript.
https://github.com/satwikkansal/wtfpython as well
-
Python for Lisp Programmers (2000)
> But most "wtfpython" things don't actually affect people using the language
Plenty do though. I've passed that page onto co-workers a lot, back when the list was smaller, and almost every time they've found something on the page that explains a bit of weirdness with Python that they'd just dismissed as buggy behavior and avoided touching.
The ones I remember them mentioning:
https://github.com/satwikkansal/wtfpython#-mutating-the-immu...
https://github.com/satwikkansal/wtfpython#-beware-of-default...
And I multiple times I've had to explain the difference between references / shallow copy / deep copy to bootcampers, which falls under https://github.com/satwikkansal/wtfpython#-a-tic-tac-toe-whe...
Python had their smearing campaign claiming TIOOWTDI against Perl's TIMTOWTDI, and dubious claim's of sigils (`@$`) hurt readability. But once Python had the ecosystem going, it brought back `@`, `{}`, numerous `_`, fanciful `:=`. And, of course, there always is more than one way to do it in Python.
Python's "easy to use" is just a lie, https://github.com/satwikkansal/wtfpython
The common lisp CFFI module is nothing short of Python's.
But, I know, people hate to put their `(` in front of their function names, and people hate to omit `,` between there function arguments.
-
Python strings are immutable, but only sometimes
For interesting behaviour see https://github.com/satwikkansal/wtfpython
wtfjs
- Milyen hasznos Github repokat ismertek?
- doNotDespairEverythingIsAhead
-
Companies: We can't find any good candidates!!! Also companies:
Me in the interview: "Generally, no, a variable can only be assigned one numeric value at a time. However, Javascript is famous for unpredictable behaviors in variable comparison statements, for instance [] == ![]. There's actually a whole library built around documenting this type of behavior this for comedic value, and other more serious libraries geared towards solving the problem. So it's possible that some obscure variable assignment scenario would result in that line evaluating as true, but it's not something you'd expect to encounter in the real world. This has gotten a lot better with typescript and es2022, but still something you need to watch for a bit."
-
“Go is hard to justify unless at massive scale”
I do see that point of view, didn't think of that, there are some aspects of go which are a bit weird if you never touched lower abstraction languages, yet once you learn what they are, you are all set and you can code in anything. go has the least amount of gotchas I have seen in any programming language. compare it with loads of the weird stuff javascript does https://github.com/denysdovhan/wtfjs and go is like heavenly lol
- Show HN: Whatdoesthiscodedo.com – AI explanations for other people’s code
-
Learning Frontend/React is the new rat race.
Its a very poorly designed language. Its syntax and semantics are often confusing and unpredictable. There is no well defined mental model of how constructs work in this language.
-
🚀 8 GitHub Repositories to learn JavaScript
WTF JS
-
Awesome Github Repos to Master JAVASCRIPT
😎 A great guide to Javascript that is both simple and wonderful, but also difficult and fun that seems like bullshit. -> wtfjs
-
madem burdasın bi anlat bakim niye burdasın
- What the fuck JavaScript? (https://github.com/denysdovhan/wtfjs), list of funny and tricky JavaScript examples. What’s next? You can learn Node.js for backend, or go crazy with front-end frameworks, or even further, create mobile applications. Have Fun !
-
Is there any legitimate reasons for the javascript hate?
https://github.com/denysdovhan/wtfjs I have seen this cited as a reason why javascript is so bad, but it seems like everything on there would come down to the error of the programmer, how would you even end up in situations were these would come up?
What are some alternatives?
Power-Fx - Power Fx low-code programming language
deno - A modern runtime for JavaScript and TypeScript.
jsfuck - Write any JavaScript with 6 Characters: []()!+
html-over-the-wire - HTML over the wire: List of frameworks which receive HTML snippets from the server.
pfFocus - Generate meaningful output from your pfSense configuration backup, like Markdown documentation.
proposal-shadowrealm - ECMAScript Proposal, specs, and reference implementation for Realms
setup.py - 📦 A Human's Ultimate Guide to setup.py.
macropy - Macros in Python: quasiquotes, case classes, LINQ and more!
typegoose - Typegoose - Define Mongoose models using TypeScript classes.
awesome-python - An opinionated list of awesome Python frameworks, libraries, software and resources.
window.fetch polyfill - A window.fetch JavaScript polyfill.
You-Dont-Know-JS - A book series on JavaScript. @YDKJS on twitter.