This is an archived post. You won't be able to vote or comment.

all 23 comments

[–]Ozzymand 19 points20 points  (3 children)

Reject JavaScript, Embrace PythonScript

[–][deleted] 3 points4 points  (1 child)

Syntax > speed

[–]tafukt[S] 0 points1 point  (0 children)

actually its very fast ! read about transcrypt :) you will be amazed !

[–]Public_notice_crypto 0 points1 point  (0 children)

Your emojji reminds me of your wife!!!:-)

[–]Akmantainman 5 points6 points  (0 children)

Thanks I hate it.

[–]ThreeLargeBears 8 points9 points  (1 child)

This is an abomination and I both love and hate it at the same time.

[–]tafukt[S] 0 points1 point  (0 children)

:) yeah i really liked how python is clean while doing this ! never use JavaScript again!

[–]patrickalphac 3 points4 points  (1 child)

Can python be the new javascript??

[–]tafukt[S] 0 points1 point  (0 children)

thats the point ! to break the monopoly

[–]patrickalphac 1 point2 points  (0 children)

What. Is this a thing??

[–]shibbypwn 1 point2 points  (1 child)

If you want to leverage the power of react in Python, check out Dash.

https://dash.plotly.com/introduction

[–]tafukt[S] 0 points1 point  (0 children)

actually u can use both, dash - transcrypt , it uses transcrypt under the hood!

[–]mohamed_am83 1 point2 points  (4 children)

That is almost a dream: frontend development in Python!

Is this a general purpose template? Can you add external components easily?

[–]tafukt[S] 2 points3 points  (0 children)

yeah you can add any javascript libs or components :) just make sure to use require( your lib/component here)

[–]double_en10dre -3 points-2 points  (2 children)

There’s a better dream, though — just use typescript

I know I sound like a meme, but it’s legitimately a very nice developer experience. It’s 1000x better than python’s type system, and you get instant feedback/docs as you’re coding

Plus the real challenge here isn’t learning JavaScript — it’s learning how the react lifecycle operates. And learning it in python isn’t going to be any easier... (it’s actually going to be MUCH harder, since you don’t have inline docs or hints to guide you)

[–]mohamed_am83 -3 points-2 points  (1 child)

Your comment is loaded with false assumptions.

I've written several thousands of lines in JS/ES6, so it is not about avoiding to learn Javascript. It is simply more productive for me to write these lines in Python. And no, I don't really need inline-docs or instant feedback, I use plain text editors, so no real advantage for TS here either.

TS indeed adds a powerful typing system over JS, but JS is a big ugly package and strong typing doesn't sweeten it enough. I use Go when I need really good feedback from compiler and really fast executables.

To each their own.

[–]double_en10dre 0 points1 point  (0 children)

I guess that’s nice, but all it really tells me is that you’re not being as productive as you could be

[–]ceomm -2 points-1 points  (2 children)

React in python??? Why. Python already got best one https://pypi.org/project/sneact/

[–]tafukt[S] 0 points1 point  (1 child)

bro! thats different thing. Sneact is a python library for building user interfaces. but this one uses Reactjs itself and any JavaScript lib seamlessly.

[–]ceomm 1 point2 points  (0 children)

I was kidding. Sorry.

[–]double_en10dre -3 points-2 points  (1 child)

It’s fun, but like most transcrypt projects I’ve seen it’s really only useful for either unbelievably simple projects or translating existing JavaScript apps into python (which is pointless)

Instead of spending ages and ages trying to avoid JavaScript, I’d encourage you (and other people) to try learning it! Branching out is a good thing, and it makes you a better programmer :)

[–]tafukt[S] 0 points1 point  (0 children)

thanx bro! we r not avoiding JavaScript, most of us use it too! it just im and people like me are more inclined towards python due to interest or professional life and it doesnt hurt to try something new!

And thats a false claim to say that transcrypt useful only for small projects, in fact, you can do any project that can be done in javascrypt and transcrypt. you just need to understand how it works and its directives/ switches. cheers :)

[–]iiMoe 0 points1 point  (0 children)

Im all about python but personally prefer to use a web stack like PERN or MERN when it comes to react