Python

Room rules: sopython.com/chatroom Code formatting guide: tinyu...
Nov 3, 2020 12:39
can you guys suggest me how to deal with the manager taking the short bad decision? He wants to add new columns as newline separated values in existing columns rather than changing the DB
Jul 17, 2020 09:04
sure man
Jul 17, 2020 09:03
and they use Any everywhere
Jul 17, 2020 09:00
what to do?
Jul 17, 2020 09:00
a junior dev is using #type: ignore to bypass mypy everywhere
Jul 16, 2020 18:45
main focus is on product delivery
Jul 16, 2020 18:44
no code reviews
Jul 16, 2020 18:15
and even then sometimes people aren't convinved that they are writing bad code
Jul 16, 2020 18:15
it's often too much responsibility pointing every mistake out and sometimes just fixing it yourself
Jul 16, 2020 18:15
how to deal with coworkers writing garbage code
Jul 15, 2020 08:51
all logical errors will be 200 and server errors 500 accr. to my ui guys
Jul 15, 2020 08:50
though I get your point
Jul 15, 2020 08:50
why do people explicityly use jsonify, in my case flask does it implicity
Jul 15, 2020 08:41
what is the common norm for a success scenario
Jul 15, 2020 08:39
even with 4xx we can send a specific message that can be show in ui
Jul 15, 2020 08:33
hmm
Jul 15, 2020 08:32
i would prefer to use 401/403
Jul 15, 2020 08:31
their understanding of success is all that is not 5xx
Jul 15, 2020 08:31
but show appropriate message
Jul 15, 2020 08:31
i.e. success
Jul 15, 2020 08:31
but from the discussion they want invalid password etc. to be also 200
Jul 15, 2020 08:30
yes
Jul 15, 2020 08:23
Hi RE60K, As discussed I am proceeding my development assuming 200 Http Response for all the success scenarios
I am Assuming that response will be in this format
{
"code": 0, // 0 for 200 success
"message": "Ok",
"data": {
Success object
}
}

thanks
ShXYZ
Jul 15, 2020 08:18
but mapping may not be one to one or handlable
Jul 15, 2020 08:18
yes i can create a cusotm handler to map these http status codes to their status codes
Jul 15, 2020 08:17
no custom handlers
Jul 15, 2020 08:17
@VioAriton try using full path like /usr/bin/local/python3
Jul 15, 2020 08:16
flask gunicorn nginx docker
Jul 15, 2020 08:16
they just want us to change our apis to their format
Jul 15, 2020 08:16
they are starting to build ui, we have already created all backend apis
Jul 15, 2020 08:15
seems like a setup problem with python in path
Jul 15, 2020 08:14
i don't know how i can convinve him
Jul 15, 2020 08:14
feels like an obligation
Jul 15, 2020 08:14
this just demotivates me to work further on the project
Jul 15, 2020 08:13
he says it will only take 1-2 days to change our code
Jul 15, 2020 08:13
my manager just agreed to it
Jul 15, 2020 08:13
and they parse status from body
Jul 15, 2020 08:13
because they want it so
Jul 15, 2020 08:13
something like {status:0, message:blabla, data:the actual response}
Jul 15, 2020 08:12
because they have predefined processors for it and return 200 for all requests
Jul 15, 2020 08:12
the thing is the ui guys want us to move codes to message response
Jul 15, 2020 08:12
yes i know what are the common status codes are
Jul 15, 2020 08:11
what is preferred http status codes or custom codes in json response?
Feb 14, 2020 10:34
instead of List[int]
Feb 14, 2020 10:34
check if it coming as int
Feb 14, 2020 10:32
:P
Feb 14, 2020 10:31
kiss: [tuple([fun(x) for fun in [oct, hex, bin]]) for x in range(4)]
Feb 14, 2020 10:28
wanna share algorithm service with clients without them able to see source code but being able to run on their servers. anything possible with docker encryption or so?
 

 Python Ouroboros - The Rotating Knives

Messages from the Python room that didn't meet our standards o...
Jul 23, 2020 07:24
 

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Jul 21, 2020 06:46
is it secure to use static header key value pair as authentication