<HebaruSan[m]>
I kind of want to add type hints to all of SD's code. Any objections to the idea?
Darklight[m] has joined #spacedock
<Darklight[m]>
Go for it, one of my dislikes of python is the lack of typing, types make things easier to follow
<Darklight[m]>
I once got a pull request to change all my explicit types in DMP to 'var' and nearly yelled at the guy
<HebaruSan[m]>
Agreed. Adding them to CKAN's Python server code made me go from "Eew" to "Ooh".
<Darklight[m]>
Given that you seem to be the main person on it you could probably do what you like, VITAS doesn't touch python iirc and I think I only helped with the CKAN instant notification because batch updates are for plebs
<Darklight[m]>
So I have very very little to do with spacedocks code
<HebaruSan[m]>
In that case maybe I better wait for others to comment... 😉
<HebaruSan[m]>
There are no type hints in that link
SA56[m] has quit [Quit: Idle timeout reached: 10800s]
VITAS[m] has quit [Quit: Idle timeout reached: 10800s]
<RockyTV>
but there is type checking
<HebaruSan[m]>
I'm talking about type hints
<RockyTV>
that literally does nothing right
<HebaruSan[m]>
Wrong
<RockyTV>
it does nothing other than let the programmer know what type to expect but still you're not doing anything against "wrong" types
<HebaruSan[m]>
Look up `mypy`
<Darklight[m]>
That was from the split which I think was ruled a bad idea
<Darklight[m]>
The backend link
<HebaruSan[m]>
Yes, that link isn't related to what I'm talking about
<RockyTV>
HebaruSan[m], why not any other linter?
<HebaruSan[m]>
Huh? Any linter that supports type hints will do. `mypy` is just one example.
<HebaruSan[m]>
Why is mentioning one example somehow ruling out all others? 😕
<RockyTV>
I read its description and all it said was basically "I'm a type checker yes but no"
<RockyTV>
er
<RockyTV>
yes I'm a linter but no
<HebaruSan[m]>
Yes five seconds of investigation might not be enough to give you a deep insight into it, shocked pikachu face
Darklight[m] has quit [Quit: Idle timeout reached: 10800s]
HebaruSan[m] has quit [Quit: Idle timeout reached: 10800s]
VITAS[m] has joined #spacedock
<VITAS[m]>
Darklight: i touch python but i forgot most about it again
<VITAS[m]>
and yes i think its a hipster lang.uage but sd is coded in it so i ve to deal with it
Darklight[m] has joined #spacedock
<Darklight[m]>
Python isn't hipster trash at this point, it is the new PHP
<VITAS[m]>
no its like php
<VITAS[m]>
but unblike php people try to b uild stuff with it it isnt meant for much like nodejs
<Darklight[m]>
I'd link "all the cool kids use ruby" *but that video is 10 years old*
<VITAS[m]>
in a sense its the same way people tend to use jave: i dont know anything else
<VITAS[m]>
as i said: my opinion doesnt matter sd is python and ive to deal with it :)
Shuudoushi has quit [Ping timeout: 190 seconds]
Shuudoushi has joined #spacedock
Majiir has quit [Quit: CUT THE HARDLINES!!]
Snoozee has joined #spacedock
Snoozee is now known as Majiir
VITAS[m] has quit [Quit: Idle timeout reached: 10800s]
Darklight[m] has quit [Quit: Idle timeout reached: 10800s]
<RockyTV>
python is way easier tbh
VITAS[m] has joined #spacedock
<VITAS[m]>
depends on what you know
<VITAS[m]>
and beeing easy isnt the most important reason for using a programming language
HebaruSan[m] has joined #spacedock
<HebaruSan[m]>
Python's OK. My main annoyance with it isn't even its fault—I keep forgetting it isn't Javascript and attempt to use dicts and objects interchangeably.
Lartza has quit [Ping timeout: 189 seconds]
Lartza_ has joined #spacedock
HebaruSan[m] has quit [Quit: Idle timeout reached: 10800s]