code:
|
|
# ? Jul 17, 2017 12:35 |
|
|
# ? May 25, 2024 16:04 |
is my post dead e: twas
|
|
# ? Jul 17, 2017 12:35 |
|
different namespaces for functions vs. other objects?
|
# ? Jul 17, 2017 13:21 |
|
cinci zoo sniper posted:what's the deal with multiple jvms (jdk implementations) platform support, different implementations of parts, supportability
|
# ? Jul 17, 2017 13:31 |
Jabor posted:different namespaces for functions vs. other objects? yes, but it seems to be context specific to function calls? cinci zoo sniper fucked around with this message at 13:37 on Jul 17, 2017 |
|
# ? Jul 17, 2017 13:33 |
carry on then posted:platform support, different implementations of parts, supportability oic. was reading some large discussion about using the right jdk for stuff to avoid angry oracle lawyers, which left me wondering a bit. looks tho like openjdk is the default one, supplied by oracle no less, and it's free of jrockit and whatever. other notable jvms seem to do just what you say - add fonts, dynamic heaps, different garbage collectors, aot, etc
|
|
# ? Jul 17, 2017 13:36 |
|
the azul jvm is pauseless and that is pretty neat
|
# ? Jul 17, 2017 13:51 |
Sweeper posted:the azul jvm is pauseless and that is pretty neat that sounds like the azul dynamic heap one. they seem to have two, of which the other one is normal openjdk with freetype fonts and one other thing i forgot about
|
|
# ? Jul 17, 2017 13:55 |
code:
|
|
# ? Jul 17, 2017 14:02 |
|
Sweeper posted:the azul jvm is pauseless and that is pretty neat i want their patent to expire so bad
|
# ? Jul 17, 2017 14:20 |
|
Shinku ABOOKEN posted:what's the thread opinion on "if(!test())" vs. "if(test() == false)"? i started liking the latter recently and i want to confirm if my opinion is correct(tm) code:
|
# ? Jul 17, 2017 14:26 |
i don't think pycharm has said a word to me about "if statement is False", and it's the only python ide that matters
|
|
# ? Jul 17, 2017 14:37 |
|
PEP8 mothafuckaaaaa http://legacy.python.org/dev/peps/pep-0008/#programming-recommendations quote:Don't compare boolean values to True or False using ==.
|
# ? Jul 17, 2017 15:15 |
Mr SuperAwesome posted:PEP8 mothafuckaaaaa odd, might be blind then. will check the code back home
|
|
# ? Jul 17, 2017 15:21 |
|
cinci zoo sniper posted:what's the deal with multiple jvms (jdk implementations) java was originally going to have a large community around it where the language was common and then jvms were platform specific. then they kicked the largest jvm provider (Microsoft) out of java and that pretty much ended java on the desktop. it still thrived on the server tho so there are lots of JVMs that are designed to meet specific needs of other platforms, usually created by the platform owner. ex: IBM has their own jvm for their hardware. there are still a number of non-sun/oracle jvms out there but they are almost universally server vms and you will never hear of them unless you have a specific need for them. the default java vm (hotspot) is extremely good tho
|
# ? Jul 17, 2017 15:26 |
|
flake8 + pylint are (mostly) good (sometimes u get stupid arbitrary poo poo e.g. 80 column line limit and you have to do # noqa pylint-disable=max_line_lenth or some poo poo and its horrible)
|
# ? Jul 17, 2017 15:28 |
|
cinci zoo sniper posted:i don't think pycharm has said a word to me about "if statement is False", and it's the only python ide that matters I fired it up and pycharm only gives you an inspection warning if you use == to do the comparison.
|
# ? Jul 17, 2017 15:29 |
|
truthiness is bad
|
# ? Jul 17, 2017 15:29 |
|
embrace the falsity
|
# ? Jul 17, 2017 15:33 |
|
Mr SuperAwesome posted:if ur unit tests fail simply delete the unit tests Unironically better than letting them fester forever Course if you just broke it, go fix it. But if it's 'oh yeah that one has always been flaky/broken'
|
# ? Jul 17, 2017 15:44 |
ultravoices posted:I fired it up and pycharm only gives you an inspection warning if you use == to do the comparison. booted up mine just now and ditto. pycharm community 2017.1.5, python 2.7.13
|
|
# ? Jul 17, 2017 15:53 |
|
python 2.7
|
# ? Jul 17, 2017 16:35 |
|
Mr SuperAwesome posted:if ur unit tests fail simply delete the unit tests unit tests are a waste of time all of the time
|
# ? Jul 17, 2017 16:41 |
Mr SuperAwesome posted:python 2.7
|
|
# ? Jul 17, 2017 16:43 |
|
code:
tl;dr use pylint + flake8
|
# ? Jul 17, 2017 16:43 |
|
akadajet posted:unit tests are a waste of time all of the time thanks and god bless cinci zoo sniper posted:i know, migration on 3 is planned now that 3 is worth something. wasnt the case when i started the project, and too buggy for a rational transition atm fwiw at $job we went from 2.7 to 3.x pretty easily and 3.x to 3.6 pretty easily
|
# ? Jul 17, 2017 16:45 |
|
i went on holiday for 3 weeks and i have come back and catapulted straight back into the garbage pilequote:
so objects are all just a ButtExport but you don't know what that ButtExport might be, is it a butt a fart or a poop? Who knows! Are any of the variables named in a way that would describe it? No! everything is just an anonymous dataset or datarow with no comments! gently caress! edit: 6 chained else ifs that handle conditions that pass datarows with zero comments on what they are testing for and whenever any of the conditions are met the same loving method is called so all 6 cases do the same thing and there is no fall through case so if one of those is not hit nothing happens Powerful Two-Hander fucked around with this message at 17:08 on Jul 17, 2017 |
# ? Jul 17, 2017 17:02 |
Mr SuperAwesome posted:fwiw at $job we went from 2.7 to 3.x pretty easily and 3.x to 3.6 pretty easily
|
|
# ? Jul 17, 2017 17:04 |
mr superawesome, do you use bare flake8, or some plugins for it too?
|
|
# ? Jul 17, 2017 17:22 |
Mr SuperAwesome posted:
The ordering here seems strange to me. All three of lines do slightly different things. The first is the most pythonic, and the last is useful if you want to see if something is strictly boolean False (and not some other false-y value). It seems extremely rare to me that you'd want the middle one though, e.g. to have greeting = 0 pass but have greeting = [] fail.
|
|
# ? Jul 17, 2017 17:38 |
python 3 here we go lol. looks like my codebase only needed 10 changes, 3 print statements with () and 7 xrange() instead of range(). time to reboot to linux and check if nothing broke on the non-core library side of things
|
|
# ? Jul 17, 2017 17:57 |
|
omg (bounded) unemployment rules Might work through that interpreter book this week or go hiking or something skies the limit
|
# ? Jul 17, 2017 18:16 |
|
VikingofRock posted:The ordering here seems strange to me. All three of lines do slightly different things. The first is the most pythonic, and the last is useful if you want to see if something is strictly boolean False (and not some other false-y value). It seems extremely rare to me that you'd want the middle one though, e.g. to have greeting = 0 pass but have greeting = [] fail. Yeah agree. I always used `is True/False` in Python since it's the least magic.
|
# ? Jul 17, 2017 18:17 |
|
cinci zoo sniper posted:just saw a repo issue "fix failing tests" i write that but usually i mean the other way around
|
# ? Jul 17, 2017 18:19 |
|
If youre intentionally truthing lists and maps and strings and poo poo you have probably hosed up, much earlier along.
|
# ? Jul 17, 2017 18:20 |
|
cinci zoo sniper posted:
this makes sense, you can resolve n the variable and n the function. of course why would you do that, but whatever
|
# ? Jul 17, 2017 18:20 |
|
hifi posted:this makes sense, you can resolve n the variable and n the function. of course why would you do that, but whatever that's the crux of the lisp-1 vs lisp-2 debate
|
# ? Jul 17, 2017 18:37 |
|
cinci zoo sniper posted:
that's terrible
|
# ? Jul 17, 2017 19:22 |
Shaggar posted:that's terrible wait until you see a "prank" code:
code:
|
|
# ? Jul 17, 2017 19:25 |
|
|
# ? May 25, 2024 16:04 |
python 3 transition done. tested all major parts of the module, and the one problem that 2to3 didn't account for was integer divisions used as intended, had to convert them all manually. otherwise everything works fine, maybe a bit faster, and i can do something fancier now with the code, which is nice.
|
|
# ? Jul 17, 2017 20:17 |