|
terrible programmer here, can't keep straight git/repo/gerrit/??? integration. what gets pushed where and how? no freaking clue. does everything go in one commit? which do I branch first? what's a branch name and what's a magic git string?
|
# ? Jan 14, 2014 17:57 |
|
|
# ? May 13, 2024 03:06 |
|
Arboc posted:if you're using their browser, they'll talk to it using SPDY instead of http a custom server written in a custom language, to serve files from a custom filesystem over a custom protocol. google is the most nih place in the universe
|
# ? Jan 14, 2014 18:14 |
|
fritz posted:terrible programmer here, can't keep straight git/repo/gerrit/??? integration. what gets pushed where and how? no freaking clue. does everything go in one commit? which do I branch first? what's a branch name and what's a magic git string? Couldn't really parse that. The golden rule when to branch and when to just commit is: if you can come up with a good branch name, you should branch.
|
# ? Jan 14, 2014 18:19 |
|
git clone trooper posted:the public/private debate is like people who are worried about polluting global in javascript there's no reason to care about public/private on a project that wont need to be utilized by programmers unfamiliar with its code, which is everything i will ever work on because i'm a bad programmer who will never write something other people want to use. however i still worry about it just for the purpose of making myself slightly less terrible.
|
# ? Jan 14, 2014 18:19 |
|
Greed is eternal posted:Couldn't really parse that. The golden rule when to branch and when to just commit is: if you can come up with a good branch name, you should branch. theres some android tool called repo and a code review thing called gerrit. repo overlays git. there are repo branches and git branches and they each have their own ways of switching between them and pushing to gerrit and/or the git central repo.
|
# ? Jan 14, 2014 18:26 |
|
fritz posted:theres some android tool called repo and a code review thing called gerrit. repo overlays git. there are repo branches and git branches and they each have their own ways of switching between them and pushing to gerrit and/or the git central repo. that doesnt sound confusing at all
|
# ? Jan 14, 2014 18:28 |
|
USSMICHELLEBACHMAN posted:there's no reason to care about public/private on a project that wont need to be utilized by programmers unfamiliar with its code, which is everything i will ever work on because i'm a bad programmer who will never write something other people want to use. if u just wanna spooge out code to git r done then go hog wild on public fields imo. but then the change requests come in
|
# ? Jan 14, 2014 18:29 |
|
fritz posted:theres some android tool called repo and a code review thing called gerrit. repo overlays git. there are repo branches and git branches and they each have their own ways of switching between them and pushing to gerrit and/or the git central repo. just use git you don't need some extra sperg on top. git is enough sperg
|
# ? Jan 14, 2014 18:30 |
|
Nomnom Cookie posted:just use git you don't need some extra sperg on top. git is enough sperg agree but: not my choice at all.
|
# ? Jan 14, 2014 18:35 |
|
so other than public and private, does anyone use protected or normal? I was tutoring yesterday, teaching the no-modifier scope and realized i have no opinion on this other than use the smallest scope possible. The student asked why and I had no answer. Also python __myPrivates
|
# ? Jan 14, 2014 21:03 |
|
protected is for when something needs to be accessible by subclasses, u dork
|
# ? Jan 14, 2014 21:22 |
|
was just wondering because people are only talking about private and public
|
# ? Jan 14, 2014 21:36 |
|
protected is kinda dumb because subclassing is kinda dumb package private sucks cause you see some method you wanna call and you're like YEAH THAT'S WHAT I NEED but you can't call it because its package private and ur like nnnnnggghh i hate you guy who made this method package private. but its ok for methods that are like "ya this should be private but i really really want to call it from my unit test" so you make it package private instead
|
# ? Jan 14, 2014 21:36 |
|
420 mutilate ur code for testing purposes erryday
|
# ? Jan 14, 2014 21:37 |
|
Nomnom Cookie posted:"ya this should be private but i really really want to call it from my unit test" that's what reflection is for!! Well that and padding your LOC count
|
# ? Jan 14, 2014 22:00 |
|
ConanTheLibrarian posted:that's what reflection is for!! Well that and padding your LOC count just package private it
|
# ? Jan 14, 2014 23:31 |
|
Nomnom Cookie posted:protected is kinda dumb because subclassing is kinda dumb ive had a different problem recently with package private: there's a lot of stuff that i feel i should mark package private because it isn't part of the package's interface, but i mark it public because my unit tests are in a different package. (and my unit tests are in a different package because autofixture needs a later version of mono than unity3d will compile ) fortunately this is a personal project so who the hell cares~
|
# ? Jan 14, 2014 23:47 |
|
coffeetable posted:ive had a different problem recently with package private: there's a lot of stuff that i feel i should mark package private because it isn't part of the package's interface, but i mark it public because my unit tests are in a different package. friend assemblies or private accessors?
|
# ? Jan 15, 2014 00:17 |
|
Morkai posted:friend assemblies WELP. glad this is the terrible programmer thread
|
# ? Jan 15, 2014 00:20 |
|
coffeetable posted:WELP. yw.
|
# ? Jan 15, 2014 03:18 |
|
Morkai posted:friend assemblies or private accessors? what in the blue hell is a friend assembly. it sounds like a terrible idea
|
# ? Jan 15, 2014 03:44 |
|
Nomnom Cookie posted:what in the blue hell is a friend assembly. it sounds like a terrible idea it is more or less what it sounds like. http://msdn.microsoft.com/en-us/library/0tke9fxk.aspx probably a bad idea, yeah, but it seems to be effective. Morkai fucked around with this message at 06:35 on Jan 15, 2014 |
# ? Jan 15, 2014 06:28 |
|
Shaggar posted:always triple your estimates is project management 201
|
# ? Jan 15, 2014 06:39 |
|
MeruFM posted:so other than public and private, does anyone use protected or normal? unmodified scope is great when you want something promiscuous in your package but unmolested beyond so yeah i guess its pretty limited but w/e i used it once i dont remember what for
|
# ? Jan 15, 2014 06:42 |
|
Bloody posted:promiscuous in your package but unmolested incredible
|
# ? Jan 15, 2014 06:45 |
|
Nomnom Cookie posted:package private is ok for methods that are like "ya this should be private but i really really want to call it from my unit test" so you make it package private instead
|
# ? Jan 15, 2014 13:36 |
|
Bloody posted:something promiscuous in your package but unmolested beyond hehe
|
# ? Jan 15, 2014 13:38 |
|
so dumb c question: i currently havecode:
code:
gonadic io fucked around with this message at 16:48 on Jan 15, 2014 |
# ? Jan 15, 2014 16:45 |
|
calloc
|
# ? Jan 15, 2014 16:49 |
|
ok but what about for the case where they're not all 0? e: and also, does the pointer have the same size as the ints? or is {0,0,NULL} the same as 00000000000 or whatever in memory i.e. the size i give calloc is that of the whole struct? gonadic io fucked around with this message at 16:56 on Jan 15, 2014 |
# ? Jan 15, 2014 16:51 |
|
Nomnom Cookie posted:what in the blue hell is a friend assembly. it sounds like a terrible idea its the compilation unit where you put the nice functions
|
# ? Jan 15, 2014 17:12 |
|
AlsoD posted:ok but what about for the case where they're not all 0? use a macro. macros are cool & fun
|
# ? Jan 15, 2014 17:19 |
|
AlsoD posted:ok but what about for the case where they're not all 0? pointers are not always the same size as an integer. also, null is not always represented by a 0 in memory. calloc is for arrays, not structs. you can do something like this: code:
|
# ? Jan 15, 2014 18:07 |
|
AlsoD posted:so dumb c question: i currently have Basic rule of thumb is you don't need to give a poo poo about where things are allocated in C unless you call malloc. Temporaries are in general not actually allocated.
|
# ? Jan 15, 2014 18:07 |
|
Pie Colony posted:pointers are not always the same size as an integer. also, null is not always represented by a 0 in memory. whats the difference between calloc'ing 1 element and malloc + memset
|
# ? Jan 15, 2014 18:26 |
|
AlsoD posted:so dumb c question: i currently have code:
|
# ? Jan 15, 2014 18:42 |
|
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
|
# ? Jan 15, 2014 18:43 |
|
Nomnom Cookie posted:whats the difference between calloc'ing 1 element and malloc + memset calloc will sometimes allocate from a CoW'd page of all zeros so it's maybe faster
|
# ? Jan 15, 2014 18:43 |
|
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 this flares the autism
|
# ? Jan 15, 2014 18:44 |
|
|
# ? May 13, 2024 03:06 |
|
Bloody posted:this flares the autism that's what i was afraid of
|
# ? Jan 15, 2014 18:44 |