|
did i mention my new job is going to involve maintaining ruby (but not rails) code not sure how i feel about this
|
# ? Aug 8, 2014 13:26 |
|
|
# ? May 22, 2024 15:01 |
|
Introduce Erlang to yer team
|
# ? Aug 8, 2014 13:27 |
|
what else are you looking for in your ideal programming hell mr. tef
|
# ? Aug 8, 2014 13:28 |
|
MononcQc posted:
lol
|
# ? Aug 8, 2014 13:29 |
|
tef posted:did i mention my new job is going to involve maintaining ruby (but not rails) code i am of the completely uninformed and wildly speculative opinion that you're going to be surprisingly happy with your new digs
|
# ? Aug 8, 2014 13:32 |
|
MononcQc posted:
|
# ? Aug 8, 2014 13:47 |
|
my stepdads beer posted:please list your good langauges fortran
|
# ? Aug 8, 2014 13:55 |
|
my stepdads beer posted:please list your good langauges there are none
|
# ? Aug 8, 2014 13:58 |
|
my stepdads beer posted:please list your good langauges 68k asm is kinda neat
|
# ? Aug 8, 2014 14:25 |
|
Dessert Rose posted:if i prefer to keep my code under 80 columns it's not the 70s anymore, let this bullshit go forever pls tia
|
# ? Aug 8, 2014 14:27 |
|
HORATIO HORNBLOWER posted:it's not the 70s anymore, let this bullshit go forever pls tia seriously why the gently caress is that a thing anymore. i can split-screen two 80 column files and still have a ton of wasted space. gently caress you i make my lines as long as they need to be
|
# ? Aug 8, 2014 14:30 |
|
Tiny Bug Child posted:seriously why the gently caress is that a thing anymore. i can split-screen two 80 column files and still have a ton of wasted space. gently caress you i make my lines as long as they need to be but can you split screen three 80 column files???
|
# ? Aug 8, 2014 14:32 |
|
yeah actually. <3 my thunderbolt monitor
|
# ? Aug 8, 2014 14:33 |
|
tef posted:did i mention my new job is going to involve maintaining ruby (but not rails) code i loved the job i had maintaining non-rails ruby. its a really easy language to work with imo
|
# ? Aug 8, 2014 14:39 |
|
tef posted:did i mention my new job is going to involve maintaining ruby (but not rails) code grep the source tree for method_missing first thing imo :v
|
# ? Aug 8, 2014 14:41 |
|
Tiny Bug Child posted:seriously why the gently caress is that a thing anymore. i can split-screen two 80 column files and still have a ton of wasted space. gently caress you i make my lines as long as they need to be seriously this is the dumbest part of the PEP-8 "style guide" that needs to be violated constantly
|
# ? Aug 8, 2014 14:42 |
|
Tiny Bug Child posted:seriously why the gently caress is that a thing anymore. i can split-screen two 80 column files and still have a ton of wasted space. gently caress you i make my lines as long as they need to be you put your finger on why 80 column limits are a thing: I want to be able to split-screen two 80-column files and still have space for my web browser or terminal session for php clusterfucks with 5,000 line files i end up having two windows looking at different parts of the same file
|
# ? Aug 8, 2014 15:09 |
|
ShadowHawk posted:Or just get a second monitor yes that makes perfect sense, i'll just get multiple monitors and attach them to my laptop rather than make my coworkers adhere to a style guide
|
# ? Aug 8, 2014 15:09 |
|
MononcQc posted:
joke's on you i'm an emacs user
|
# ? Aug 8, 2014 15:10 |
|
Otto Skorzeny posted:grep the source tree for method_missing first thing imo :v this is unironically good advice, because often where you find method_missing is the heart for method dispatch to the whole library/application but use ack instead of grep, because it is at least marginally code-aware. (no more grep -r thing . | grep -v .git, at least) http://beyondgrep.com/
|
# ? Aug 8, 2014 15:11 |
|
yeah i actually think line length limits are Good but 80 is a little small in tyool 2014, probably could do 100-120 and still be fine alternatively if there were an editor plugin i could install that would wrap lines in a non-hideous manner i'd be ok with no limits
|
# ? Aug 8, 2014 15:13 |
|
Notorious b.s.d. posted:yes that makes perfect sense, i'll just get multiple monitors and attach them to my laptop rather than make my coworkers adhere to a style guide I mean seriously this is like buying a 2 dollar mouse and then insisting that no program at work require a scroll wheel
|
# ? Aug 8, 2014 15:15 |
|
Mr. Glass posted:yeah i actually think line length limits are Good but 80 is a little small in tyool 2014, probably could do 100-120 and still be fine tbf I agree with this, 80 is just way too small (120 is 50% larger and still only half the screen on larger displays/smaller font sizes!)
|
# ? Aug 8, 2014 15:16 |
|
i think with 100 i could still fit 3 buffers side by side on my 24" monitor i usually like to have the .h, the .cpp and the unit test all open side by side (i mostly work in c++ ugh)
|
# ? Aug 8, 2014 15:18 |
|
ShadowHawk posted:yes that makes perfect sense I'll enforce a standard of less readable code rather than buy simple equipment to put on the desk I use for my actual job what if i want to work somewhere that isn't my desk? you know, on the laptop, that i carry everywhere, that cost my employer a bloody fortune?
|
# ? Aug 8, 2014 15:19 |
|
Notorious b.s.d. posted:what if i want to work somewhere that isn't my desk? you know, on the laptop, that i carry everywhere, that cost my employer a bloody fortune? sorry about your working conditions where desks are unproductive
|
# ? Aug 8, 2014 15:24 |
|
programming on a laptop is self-flagellation
|
# ? Aug 8, 2014 15:53 |
|
Narrow lines are more readable and aesthetically pleasing. If your lines are regularly longer than 80 chars then that's also a bad sign and u need to decompose them a bit more (it is a legit pain in the rear end for printf type statements tho). I'm always OCD about it in my own code but I'm not going to bitch at other people who don't care about it. now if only I could find a text editor that intelligently wrapped code in accordance with that rule.
|
# ? Aug 8, 2014 15:59 |
|
Mr Dog posted:If your lines are regularly longer than 80 chars then that's also a bad sign and u need to decompose them a bit more (it is a legit pain in the rear end for printf type statements tho).
|
# ? Aug 8, 2014 16:08 |
|
80 characters is narrow as poo poo and basically makes it impossible to put a sql query on one line. and if your tabs are correctly set at 8 characters wide, you pretty much always lose 10-20% of the available width right off the bat
|
# ? Aug 8, 2014 16:10 |
|
Tiny Bug Child posted:80 characters is narrow as poo poo and basically makes it impossible to put a sql query on one line. omg why would you want to do this in the first place
|
# ? Aug 8, 2014 16:11 |
|
Mr. Glass posted:omg why would you want to do this in the first place because sometimes it's perfectly fine? like, say you want to get the count of members from a certain affiliate. why is it bad to just go $count = DB::get("SELECT COUNT(*) FROM members WHERE affiliate_id=?", $affiliate_id); how would you improve that
|
# ? Aug 8, 2014 16:13 |
|
that seems fine, any more complex than that though i would want to break up into multiple lines to make it more readable
|
# ? Aug 8, 2014 16:18 |
|
code:
|
# ? Aug 8, 2014 16:22 |
|
haha. sql in your code. very funny
|
# ? Aug 8, 2014 16:23 |
|
prefect posted:
this is more readable to me but with a query that short it's a matter of taste
|
# ? Aug 8, 2014 16:24 |
|
prefect posted:
this is not an improvement.
|
# ? Aug 8, 2014 16:24 |
|
Notorious b.s.d. posted:what if i want to work somewhere that isn't my desk? you know, on the laptop, that i carry everywhere, that cost my employer a bloody fortune? kleave me out of this
|
# ? Aug 8, 2014 16:27 |
|
Tiny Bug Child posted:this is not an improvement. tbc was wrong
|
# ? Aug 8, 2014 16:27 |
|
|
# ? May 22, 2024 15:01 |
|
my lines are arbitrarily long this is good because then i can stuff 1024-element LUTs inline and the only way you know theyre there is when the IDE starts struggling real hard
|
# ? Aug 8, 2014 16:28 |