|
MALE SHOEGAZE posted:how do you enforce using a linter for bracing without a really long bikeshedding discussion about bracing just work on a platform that has an established convention for bracing style, use it and don't broker any loving arguments
|
# ? Oct 3, 2015 18:20 |
|
|
# ? May 18, 2024 07:22 |
|
Brain Candy posted:"i have picked this [formatting style], does anybody have a super strong objection? <some people whine, but most people don't give a poo poo>" what programmers do you work with and i can i work with them too
|
# ? Oct 3, 2015 18:33 |
|
Snapchat A Titty posted:literally the only terms. camel case or snake case? if camel case: lower of upper case first letter? string concatenation operator at the end of the previous line or at the start of the new line? if chaining method calls (in java/javascript at least), dot at end of the previous line or at the start of the new line? getProperty() and setProperty(newProperty), or just property() and property(newProperty)?
|
# ? Oct 3, 2015 18:36 |
|
Mr Dog posted:what programmers do you work with and i can i work with them too
|
# ? Oct 3, 2015 18:40 |
|
Wheany posted:getProperty() and setProperty(newProperty), or just property() and property(newProperty)? neither, preferably
|
# ? Oct 3, 2015 18:41 |
|
Wheany posted:camel case or snake case? kinda pedantic but i'm actually curious, is it still camel case if the first letter is upper case?
|
# ? Oct 3, 2015 18:44 |
|
Wheany posted:getProperty() and setProperty(newProperty), or just property() and property(newProperty)? the biggest mistake in both java and c# is differentiating between fields and methods. accessors should be mandatory i.e. the compiler creates one transparently depending on the permissions you assign to a field it shouldn't be possible to create an actual field accessible from outside the class
|
# ? Oct 3, 2015 18:58 |
|
gently caress javascript
|
# ? Oct 3, 2015 19:05 |
|
jony neuemonic posted:kinda pedantic but i'm actually curious, is it still camel case if the first letter is upper case? Sorry, I meant StudlyCaps, or StudlyCase. substitute fucked around with this message at 20:37 on Oct 3, 2015 |
# ? Oct 3, 2015 19:30 |
|
Soricidus posted:im glad i live in a civilised country where this kind of thing would be illegal as gently caress right to work, bitches
|
# ? Oct 3, 2015 20:25 |
|
jony neuemonic posted:kinda pedantic but i'm actually curious, is it still camel case if the first letter is upper case? that's pascal case
|
# ? Oct 3, 2015 20:30 |
|
Notorious b.s.d. posted:the biggest mistake in both java and c# is differentiating between fields and methods. accessors should be mandatory i.e. the compiler creates one transparently depending on the permissions you assign to a field that's a pretty drastic restriction to impose just because a language doesn't have virtual fields, IMHO
|
# ? Oct 3, 2015 20:32 |
|
ultramiraculous posted:right to work, bitches right-to-work is about undermining collective bargaining, it's not directly related to at-will employment (though they're both great examples of newspeak being used to trick the working class into voting against its own interests) Notorious b.s.d. posted:the biggest mistake in both java and c# is differentiating between fields and methods. accessors should be mandatory i.e. the compiler creates one transparently depending on the permissions you assign to a field kind of agreed, but only for getters. writing setters should require ridiculous amounts of manual boilerplate in order to discourage their use except where genuinely necessary.
|
# ? Oct 3, 2015 20:42 |
|
Soricidus posted:kind of agreed, but only for getters. writing setters should require ridiculous amounts of manual boilerplate in order to discourage their use except where genuinely necessary. i'm ok with this i just want to live in a world where the interface for a class can only include method signatures. not magic data that could be written at any time behind my back
|
# ? Oct 3, 2015 20:47 |
|
Max Facetime posted:that's a pretty drastic restriction to impose just because a language doesn't have virtual fields, IMHO i don't know what a virtual field is and google makes it sound like a dumb and lovely thing all field access should be forced to pass through accessors so i can change the implementation later without worrying about the class interface so much give people less rope to hang themselves
|
# ? Oct 3, 2015 20:48 |
|
Notorious b.s.d. posted:i'm ok with this how about static final
|
# ? Oct 3, 2015 21:45 |
|
Notorious b.s.d. posted:i don't know what a virtual field is and google makes it sound like a dumb and lovely thing i dunno if virtual fields exists either but to allow the type of the field to be runtime polymorphic the field needs to be virtual with reads and writes being dynamically dispatched a runtime subfieldtype could replay them a second time in unmapped memory, causing a signal to be raised and letting you know when someone is accessing the field
|
# ? Oct 3, 2015 22:41 |
|
lazy loading, at least for c# holy poo poo after google searching i guess every non-final method is virtual in java by default. ok
|
# ? Oct 3, 2015 22:53 |
|
Only got the one junior employee admittedly, but moving to take this approach from Phabricator with stuff, re linting and config. quote:Good linter integration means that code is pretty much mechanically correct by the time any reviewer sees it, provides clear rules about style which are especially helpful to new authors, and has the overall effect of pushing discussion away from stylistic nitpicks and toward useful examination of large ideas. Also using editorconfig.org to set everyone's editors to the correct defaults for tabs, spaces, trailing whitespace, etc. Seems okay I guess.
|
# ? Oct 4, 2015 00:08 |
|
Unfortunately there's always an intermediate "the rule is important but the linter doesn't support it" condition.
|
# ? Oct 4, 2015 00:31 |
|
Tiny Bug Child posted:(i'm brushing up on R) nice
|
# ? Oct 4, 2015 00:36 |
|
Fergus Mac Roich posted:how about static final still not cool
|
# ? Oct 4, 2015 01:52 |
|
Notorious b.s.d. posted:it shouldn't be possible to create an actual field accessible from outside the class You'll take my structs away from my cold dead hands.
|
# ? Oct 4, 2015 01:53 |
|
R sucks and can't possibly have become popular if it wasn't easily applicable in data analysis. i gave up on R early on and started on python for DA. please tell me if i'm missing out on something other than a few loving libraries that make some computations a little faster. terrible programmer posting so please just tell me why R means a poo poo, because i see it taught at university and it tops out benchmarks like that still means anything et cetera
|
# ? Oct 4, 2015 02:04 |
|
my impression is that R is the bash scripting of it's domain.
|
# ? Oct 4, 2015 02:10 |
|
is R basher than excel?
|
# ? Oct 4, 2015 02:16 |
|
Mr Dog posted:what programmers do you work with and i can i work with them too underpaid ones, and maybe you will soon!
|
# ? Oct 4, 2015 02:28 |
|
tef posted:my impression is that R is the bash scripting of it's domain. This is a good analogy, R is interpreted script with high speed functions so the goal is to keep the runtime executing functions and not your code.
|
# ? Oct 4, 2015 02:37 |
|
MrMoo posted:This is a good analogy, R is interpreted script with high speed functions so the goal is to keep the runtime executing functions and not your code. i was more aiming for - it's awful and the result of being hacked on ad-hoc with no real design - it's entrenched and everywhere - most of the scripts you will encounter will be terse masterpieces of code, written to be disposable but never left to die in peace. - you can likely google and copy and paste with a high success rate
|
# ? Oct 4, 2015 02:41 |
|
MrMoo posted:This is a good analogy, R is interpreted script with high speed functions so the goal is to keep the runtime executing functions and not your code. so it's a little faster running interpreted code on rstudio than ipython -- for one or a couple of fields of study. is that all R is? i still can't see a good enough reason to use R unless i'm being forced to.
|
# ? Oct 4, 2015 02:42 |
|
I watched some Alan Kay talk tonight, it was quite inspiring and fueled my hate for bureaucracy and development methodologies but he works for SAP now
|
# ? Oct 4, 2015 02:58 |
|
Notorious b.s.d. posted:i don't know what a virtual field is and google makes it sound like a dumb and lovely thing doesn't idiomatic C# encourage what you want anyway with properties, or is that not enough
|
# ? Oct 4, 2015 03:27 |
|
tef posted:i was more aiming for i use R often and all of this is true
|
# ? Oct 4, 2015 04:15 |
|
pepito sanchez posted:R sucks and can't possibly have become popular if it wasn't easily applicable in data analysis. i gave up on R early on and started on python for DA. please tell me if i'm missing out on something other than a few loving libraries that make some computations a little faster. terrible programmer posting so please just tell me why R means a poo poo, because i see it taught at university and it tops out benchmarks like that still means anything et cetera Some people like R (I used it a little) because it is better than Matlab. As in, it feels slightly more like a real language, and not just glue for getting library functions to stick to each other. But Python is even better for that purpose, so don't look back.
|
# ? Oct 4, 2015 08:01 |
|
the reasons to use r include: * ggplot * all those cran packages also ime basic exploratory data analysis is a lot easier in r than in python, things like linear regressions etc
|
# ? Oct 4, 2015 14:45 |
|
tef posted:my impression is that R is the bash scripting of it's domain. ouch
|
# ? Oct 4, 2015 15:49 |
|
tef posted:i was more aiming for also someone somewhere has written a script with the exact statistical technique you need except it's completely unintelligible.
|
# ? Oct 4, 2015 16:34 |
|
oh em gee, java streams (and lambdas and all that) are kind of good i didn't really know or care what they were until idea told me that a loop like this Java code:
|
# ? Oct 4, 2015 20:03 |
|
http://sarah.thesharps.us/2015/10/05/closing-a-door/quote:Closing a door discuss
|
# ? Oct 5, 2015 16:12 |
|
|
# ? May 18, 2024 07:22 |
|
post not about programming languages, voted 1
|
# ? Oct 5, 2015 16:15 |