|
prefect posted:is it wrong to get irritated when an ide highlights a variable to let me know it's unused even though i just typed the stupid thing out and i'm going to use it in a second? it's not really an error yet, dammit it kind of is, you might as well get mad at the sun for shining
|
![]() |
|
![]()
|
# ? Jun 24, 2024 14:48 |
|
Nomnom Cookie posted:it kind of is, you might as well get mad at the sun for shining only on days when i have migraines ![]()
|
![]() |
|
the funny thing is, though, that no matter what you do to try and factor in experience and anticipate the fact that projects take longer than expected, youre still going to (way) underestimate the time it takes for the project to complete
|
![]() |
|
every time i try really hard to make an honest estimate and pad it to allow for unanticipated problems, the work takes almost exactly twice as long as i estimated. so now i just estimate everything at two weeks
|
![]() |
|
Nomnom Cookie posted:whats the difference between calloc'ing 1 element and malloc + memset i guess it really depends on the implementation of calloc, but both ways have the problem of setting bits to 0, which is not always a good idea because there is no guarantees that the logical value 0 is represented by 0s in memory, e.g. in the case of doubles http://c0x.coding-guidelines.com/6.2.6.1.html Pie Colony fucked around with this message at 21:04 on Jan 15, 2014 |
![]() |
|
git clone trooper posted:beep boop i wasted my entire life in front of a computer now I'm neitzches ubermensch
|
![]() |
|
today in sprint planning i suggested a couple of changes to our architecture. one can be rolled out slowly as we touch different parts, but the other is a sweeping change that requires a poo poo ton of work. both were accepted. oh god what have i done?
|
![]() |
|
i got my first largish internal java project running today and besides having to set up an insane mountain of poo poo in maven/svn/sql/eclipse, it's pretty great that it works now once it's all set up it's pretty straightforward but man
|
![]() |
|
Morkai posted:today in sprint planning i suggested a couple of changes to our architecture. one can be rolled out slowly as we touch different parts, but the other is a sweeping change that requires a poo poo ton of work. you're moving on up. if everything succeeds: you're a big success and had great ideas. if everything fails: you have architectural experience and have mistakes that you can draw upon as learning experiences that's how management-types do it
|
![]() |
|
we hadn't tested the app i have been running after 6 PM for 8 months until tonight when truck drivers were going to use it. turns out GMT offset means something. my boss had a hardon for sql views, and of course the logic is there and i have no control over the prod db. i am the worst developer (and my boss who got fired during the layoffs for being a poo poo)
|
![]() |
|
prefect posted:you're moving on up. if everything succeeds: you're a big success and had great ideas. if everything fails: you have architectural experience and have mistakes that you can draw upon as learning experiences truth. i have learned so much from my design gently caress-ups
|
![]() |
|
this week people started implementing one of my designs for the first time ever (previously i designed -> developed my own poo poo) i'm scared yospos what if they are dumb or my design sucsk
|
![]() |
|
BP posted:this week people started implementing one of my designs for the first time ever (previously i designed -> developed my own poo poo) you have your answer if you didn't design it like they were dumb, stop worrying your design sucks
|
![]() |
|
BP posted:this week people started implementing one of my designs for the first time ever (previously i designed -> developed my own poo poo) they are dumb and your design sucks but as long as it sucks slightly less than everyone elses poo poo ur good
|
![]() |
|
BP posted:this week people started implementing one of my designs for the first time ever (previously i designed -> developed my own poo poo) no worry about what if they're smart and ur design sux and they make a better design and tell ur boss and he's like "woahj i need this guy doing BP's job" and fires u
|
![]() |
|
another one of my lovely lecturers last term. gave us an assignment which was making a crawler for C source/header files to make a list of dependcies, written in Java. Half the marks were for a single threaded version and the rest of the marks were available for multi threading. he figured the hardest part would be us having to make thread safe hashmaps and queues. when i informed him there was atleast 1 standard threadsafe hashmap he told me they must have added it in the last couple of months - lol
|
![]() |
|
Valeyard posted:another one of my lovely lecturers last term. gave us an assignment which was making a crawler for C source/header files to make a list of dependcies, written in Java. Half the marks were for a single threaded version and the rest of the marks were available for multi threading. he figured the hardest part would be us having to make thread safe hashmaps and queues. when i informed him there was atleast 1 standard threadsafe hashmap he told me they must have added it in the last couple of months - lol LOL!
|
![]() |
|
xD
|
![]() |
|
MeruFM posted:so other than public and private, does anyone use protected or normal? protected is pretty useful for abstract classes isn't it. i don't know python.
|
![]() |
|
it is, my post was just worthy of this thread default scope is still weird to me though Python has no scoping other than import management, everything is public (except when it isn't, talk worthy of the other progrmaming thread). _ and __ are prepended to variables to let people know you shouldn't touch them, one scopes at the import level, the other fucks with the var name so it's harder to use. lolpython
|
![]() |
|
sounds kind of lame but i guess accessing vars with a leading underscore is basically equivalent to loving around with reflection to get at private fields or whatever.
|
![]() |
|
MeruFM posted:Python has no scoping other than import management, everything is public (except when it isn't, talk worthy of the other progrmaming thread). _ and __ are prepended to variables to let people know you shouldn't touch them, one scopes at the import level, the other fucks with the var name so it's harder to use. lmao, python is such garbage
|
![]() |
|
RICHUNCLEPENNYBAGS posted:sounds kind of lame but i guess accessing vars with a leading underscore is basically equivalent to loving around with reflection to get at private fields or whatever. p much this. theres always a way to break encapsulation if you really want to, the important thing is to make it obvious that you're doing something unsupported whether via setAccessible() or __ or something else
|
![]() |
|
MeruFM posted:it is, my post was just worthy of this thread you mean visibility, right? not scope
|
![]() |
|
i wish python had block-scoped variables ![]()
|
![]() |
|
i tried to read learning python once and the first 100 pages or so were about installing python on your computer so i never finished it.
|
![]() |
|
however, if you want to learn python AND have no idea how to use a computer it may be the book for you.
|
![]() |
|
use a linux and it'll be lots easier hth oh wait you mean you're too lazy to turn 100 pages? i see
|
![]() |
|
Mr SuperAwesome posted:use a linux and it'll be lots easier hth
|
![]() |
|
installing python and all the cool stuff like scipy on windows is more complicated than it should be HOWEVER lately I've been using anaconda and it's pretty sweet. heck it makes everything easier even on linux, you don't need to deal with old apt packages or installing poo poo with pip as much. so yeah, install anaconda and learn stuff using ipython notebook.
|
![]() |
|
i found some lovely distro called xypython or python xy or some poo poo that installs a lovely open sores IDE and all the scipy numpy or whatever poo poo for u on windows apparnetly but dont use that use VS w/python tools to write ur python its p nice oh and i think it has easy_install/pip or whatever for installing modules from inside vs
|
![]() |
or better yet, don't use python at all
|
|
![]() |
|
jetbrains's pycharm seems to install some package-management stuff that makes it relatively easy to install various things. haven't gotten really in depth with it yet, though
|
![]() |
|
Symbolic Butt posted:so yeah, install anaconda and learn stuff using ipython notebook. seconded, this owns
|
![]() |
|
gucci void main posted:or better yet, don't use python at all well yeah ofc we'd all use c# all the time if we could but sometimes u gotta fix someones lovely python project
|
![]() |
|
tef posted:you mean visibility, right? not scope visibility is variable separation via files?
|
![]() |
|
Also python owns, just don't be cute. And don't use functional stuff when list comprehension works just as well
|
![]() |
|
MeruFM posted:Also python owns, just don't be cute. And don't use functional stuff when list comprehension works just as well list comprehension is an adequate substitute, but i would rather have the really easy block-passing i have in perl or ruby. it's a tragedy that guido thought list comprehension was actually better than traditional lambdas/map/reduce i am not one of those fp spergs, i can't reason about lambda calculus or the y/k-combinators or really understand half the poo poo on LtU. i just want to write perfectly normal boring code in python the same way i would do it in perl or ruby
|
![]() |
|
gucci void main posted:or better yet, don't use python at all epic this.
|
![]() |
|
![]()
|
# ? Jun 24, 2024 14:48 |
|
MeruFM posted:I'm not familiar with the distinction how are you tutoring people dude
|
![]() |