|
c and unix were basically designed as toys for cool dudes to fart around with. losethos or processing for beardy 1960s att employees. they didn't have focus groups or a budget or anything you know? they imagined that having the type declarations resemble the way that each type was used in code would make it easier to learn, and ease of learning was pretty important for a toy platform.
|
# ? Jan 25, 2014 22:56 |
|
|
# ? May 10, 2024 22:52 |
|
Innocent Bystander posted:Lets be honest, nobody has i write c on most days
|
# ? Jan 25, 2014 23:03 |
|
it's time for the most noble of programmer traditions: pepper my code with trace statements and hope some obvious incongruity shows itself
|
# ? Jan 30, 2014 14:49 |
|
AlsoD posted:it's time for the most noble of programmer traditions: pepper my code with trace statements and hope some obvious incongruity shows itself amen all my work today has been writing data visualization code so i can work out where this thing is going off the rails
|
# ? Jan 30, 2014 15:41 |
|
get hired by the NY times and write d3 for a living
|
# ? Jan 30, 2014 16:13 |
|
coffeetable posted:amen this is actually cool and we built something at old work to visualize searches to see when it was making GBS threads the bed. it was really cool when you could see it broke and just defaulted to a bfs. pretty patterns dawg.
|
# ? Jan 30, 2014 19:10 |
|
Print statement debugging has been my bread and butter of debugging. Languages that allow tracing make that easier. When all else fails, I get a piece of paper and pencils and I think really hard.
|
# ? Jan 30, 2014 19:34 |
|
MononcQc posted:Print statement debugging has been my bread and butter of debugging. you have no idea how great it is to hear a Real Programmer say this. makes me feel (slightly) less terrible
|
# ? Jan 30, 2014 19:36 |
|
i am annoyed that java's string.replace doesn't take a regular expression (replaceall and replacefirst do, but i am still annoyed)
|
# ? Jan 30, 2014 19:51 |
|
d3 owns do more things with d3
|
# ? Jan 30, 2014 19:53 |
|
i thought they were removing the real money auction house in d3, is it still possible to make a living off of it?
|
# ? Jan 30, 2014 19:58 |
|
Dessert Rose posted:you may already know this but [given the thread we're in] that is actually legal c, it just won't result in what you think it will, which is why *p1 is the "standard" the real problem is declaring multiple variables on one line i think the general idea is "int *foo" is the c convention (because c emphasizes use of values over types) and "int* foo" is the c++ convention (because c++ is all about the manipulation of types) at least insofar as there are any consistent conventions in the c/c++ world (there aren't)
|
# ? Jan 30, 2014 20:03 |
|
MononcQc posted:Print statement debugging has been my bread and butter of debugging. Languages that allow tracing make that easier. When all else fails, I get a piece of paper and pencils and I think really hard. personally i really like slime trail debugging but recently i have been trying to get into command line debuggers more. last night i spent a couple hours working out how to disassemble a CLR method, find the actual x86 instruction for a branch decision, and rewrite the register it was testing at the proper moment to force a rarely-taken branch to execute. all from windbg sure you can just do that with the vs debugger. good luck convincing a server admin to let you copy even the stripped-down debugger-only version to a server. even given that, copying 2gb+ over an rdp connection is lol. meanwhile a single folder with windbg & all my extensions easily copies over as a couple of bonuses, i look like a freaking wizard whenever i use it, and i can even debug programs i don't have the source for - this thing is crashing with an exception but isn't telling me all the details, what's causing it? oh i'll just load this up and examine the stack at this point and tada it's doing some stupid thing with the file name it's a pain to learn but suuuuuper useful
|
# ? Jan 30, 2014 21:02 |
|
like it's really hard to do slime trail stuff when you don't have a console, for example with a service
|
# ? Jan 30, 2014 21:02 |
|
Dessert Rose posted:like it's really hard to do slime trail stuff when you don't have a console, for example with a service trace logs logs logs logs auto alerts on logs logs are the best of course all my programs have been proven correct and
|
# ? Jan 30, 2014 22:18 |
|
is there a way to configure lager to email me on certain log levels, because that would be rad as hell and i would like it very much
|
# ? Jan 30, 2014 22:23 |
|
basically i want logbacks smtpappender in erlang
|
# ? Jan 30, 2014 22:24 |
|
write something to send log events from earlang to a central java logger
|
# ? Jan 30, 2014 22:29 |
|
Posting Principle posted:is there a way to configure lager to email me on certain log levels, because that would be rad as hell and i would like it very much Probably would have to make a custom error handler and using something like gen_smtp to make it work. I don't know of any known library to do it directly otherwise off the top of my head.
|
# ? Jan 30, 2014 22:32 |
|
and/or stop using earlang.
|
# ? Jan 30, 2014 22:35 |
|
MononcQc posted:Probably would have to make a custom error handler and using something like gen_smtp to make it work. I don't know of any known library to do it directly otherwise off the top of my head. well its an excuse to finally write more erlang so i'll look into gen_smtp, ty!
|
# ? Jan 30, 2014 22:37 |
|
Shaggar posted:and/or stop using earlang. i like erlang, shaggar.
|
# ? Jan 30, 2014 22:43 |
|
i suggest switching to javascript.
|
# ? Jan 30, 2014 22:52 |
|
visual basic
|
# ? Jan 30, 2014 22:54 |
|
so is slime trail debugging where you have a message print whenever the program leaves/enters a function so you can see where it's going
|
# ? Jan 30, 2014 23:00 |
|
Deacon of Delicious posted:so is slime trail debugging where you have a message print whenever the program leaves/enters a function so you can see where it's going yes, though it doesn't specifically have to be on enter/leave, you can of course also trace within the function
|
# ? Jan 30, 2014 23:07 |
|
EAT THE EGGS RICOLA posted:d3 owns do more things with d3 d3 owns once you're past the brick wall of a learning curve
|
# ? Jan 30, 2014 23:37 |
|
Dessert Rose posted:yes, though it doesn't specifically have to be on enter/leave, you can of course also trace within the function oh i guess i do that then. mostly because i haven't bothered to learn other ways yet. but it's p handy
|
# ? Jan 31, 2014 00:30 |
|
qntm posted:d3 owns once you're past the brick wall of a learning curve but my god once you're past i can't imagine writing charts or pictures anyway else i feel like those lisp weenies who literally can't understand why people use any other language its the best
|
# ? Jan 31, 2014 00:43 |
|
java owns log all stack traces attach all jdwps
|
# ? Jan 31, 2014 03:08 |
|
java is just the poor man's c#
|
# ? Jan 31, 2014 03:15 |
|
rule 36 bitch
|
# ? Jan 31, 2014 03:15 |
|
Morkai posted:rule 36 bitch jesus christ this is so far from the intent of r36 it has a completely different country code
|
# ? Jan 31, 2014 04:58 |
|
i like output pin toggle based debugging especially in fpgas because you're just like 'huh i wonder what this retarded internal bus is doing' and then you just dump it to all of your gpios and sperg out with a logic analyzer and
|
# ? Jan 31, 2014 05:00 |
|
Dessert Rose posted:jesus christ this is so far from the intent of r36 it has a completely different country code there is a good reason that swsp got rid of it, shame about the other rules that were collateral damage
|
# ? Jan 31, 2014 14:46 |
|
i think im going to make a module for something that tweets out your print statements
|
# ? Jan 31, 2014 14:53 |
|
USSMICHELLEBACHMAN posted:i think im going to make a module for something that tweets out your print statements i bet you could write a logback appender or lager backend that did this it would be really cool
|
# ? Jan 31, 2014 15:13 |
|
USSMICHELLEBACHMAN posted:i think im going to make a module for something that tweets out your print statements @shitmycodesays
|
# ? Jan 31, 2014 15:17 |
|
Add twitter lib from maven add logback-core from maven extend appenderbase that posts 2 twitter and reads login deets from logback.xml java is too easy.
|
# ? Jan 31, 2014 15:31 |
|
|
# ? May 10, 2024 22:52 |
|
MononcQc posted:Print statement debugging has been my bread and butter of debugging. Languages that allow tracing make that easier. When all else fails, I get a piece of paper and pencils and I think really hard. It's hard to run debuggers in production systems, especially after they've crashed. I found that many of my debug statements were worth keeping after the bug was found. Logging is lovely.
|
# ? Jan 31, 2014 15:49 |