|
Snype?
|
# ? Apr 23, 2014 01:42 |
|
|
# ? Jun 6, 2024 23:22 |
|
Jonny 290 posted:testing is hugely important and nobody wants to do it because you can't add those LOC counts to the finished project and bill the customer for them isn't this the whole point of unit tests? if you put the tests right next to the code, you can trick the developers into writing them, plus count them as part of the codebase! plus you feel really robust when you have to change 1000 tests that mock out your db when you change a bool into an enum
|
# ? Apr 23, 2014 01:43 |
|
and you shouldn't write comments because why write the code twice, jeez
|
# ? Apr 23, 2014 01:47 |
|
Brain Candy posted:and you shouldn't write comments because why write the code twice, jeez this is true for python
|
# ? Apr 23, 2014 01:54 |
|
code:
|
# ? Apr 23, 2014 02:14 |
|
Brain Candy posted:and you shouldn't write comments because why write the code twice, jeez if your code needs lots of comments you done hosed up somehow
|
# ? Apr 23, 2014 02:56 |
|
agreed, who needs comments when code is self documenting for instance, if i see code without comments, it documents that whoever wrote it was a real fuckup
|
# ? Apr 23, 2014 03:03 |
|
GrumpyDoctor posted:if your code needs lots of comments you done hosed up somehow or the APIs you're calling are hosed up (or the toolchain, or whatever sharp corner of reality might put out an eye)
|
# ? Apr 23, 2014 03:04 |
|
I put comments in when I do retarded stuff like mile long linq one-liners
|
# ? Apr 23, 2014 03:25 |
|
i like putting in comments like //NOTE TO FUTURE SELF do not change this it works i swear it is correct DO NOT TOUCH!
|
# ? Apr 23, 2014 03:37 |
|
fun fact about this garbage 8051 im suffering with the register write to enter sleep mode only works if the instruction writing it is not aligned to a 4-byte boundary so you can just guess how much fun that bullshit is.
|
# ? Apr 23, 2014 03:38 |
|
but when you're done the toaster or microwave or w/e will work so you can be proud of that accomplishment
|
# ? Apr 23, 2014 04:23 |
|
Shaggar posted:I put comments in when I do retarded stuff like mile long linq one-liners i wrote a 300 line pipeline the first time i used java 8 also intellij kinda sucks dick at figuring out types for pipelines. warn me for using a lambda where a method reference would have worked? well i'm using a lambda because your analyzer doesn't understand references to generic static methods and infers the type parameter as Object!!! arghhh
|
# ? Apr 23, 2014 04:27 |
|
i haven't decided if Class::cast is cool or horrible yet
|
# ? Apr 23, 2014 04:29 |
does intellij need an update to recognize my scala 2.11.0 install or something? i know the official release was only in the last couple days or so it was "just works"ing with 2.10.x until i updated through brew and now it's broken and can't find poo poo
|
|
# ? Apr 23, 2014 04:32 |
|
double sulk posted:does intellij need an update to recognize my scala 2.11.0 install or something? i know the official release was only in the last couple days or so where'd u cp this from edit: brew info scala and figure it out
|
# ? Apr 23, 2014 04:36 |
Kevin Mitnick P.E. posted:where'd u cp this from my butthole everything just works in scala ide (modified eclipse) so i assume intellij just isn't working right for the time being e: it mentions the caveat for intellij to set scala home to /usr/local/opt/scala/idea, but then it bitches about a bunch of missing files so i dunno double sulk fucked around with this message at 04:42 on Apr 23, 2014 |
|
# ? Apr 23, 2014 04:38 |
|
dunno then maybe try again once everyone has recompiled for 2.11 lol
|
# ? Apr 23, 2014 04:55 |
i guess i got it working now. hopefully they provide some updates which require less configuration soon though
|
|
# ? Apr 23, 2014 05:03 |
|
Kevin Mitnick P.E. posted:but when you're done the toaster or microwave or w/e will work so you can be proud of that accomplishment Ya and boy it will be one hell of a toaster!!!
|
# ? Apr 23, 2014 05:04 |
|
your toaster is a piece of poo poo
|
# ? Apr 23, 2014 05:10 |
|
comments really are bullshit though unless they're like ascii art of wizards or cats
|
# ? Apr 23, 2014 05:19 |
|
i want to start subtly including goatman ascii art in my comments or code somehow.
|
# ? Apr 23, 2014 05:24 |
|
code:
|
# ? Apr 23, 2014 06:46 |
|
i'm always a fan of seeing some fifteen line comment justifying why something works in some brain damaged way because then i know that the issue i'm investigating is probably caused by the code that immediately follows and all i have to do is assume the comment is actually wrong
|
# ? Apr 23, 2014 07:13 |
|
my favorite is when i look at outsourced code and find it's full of comments saying things like "XXX how does this work"
|
# ? Apr 23, 2014 07:41 |
|
https://www.youtube.com/watch?v=UNzqBW8132s
|
# ? Apr 23, 2014 07:51 |
|
Dessert Rose posted:i'm always a fan of seeing some fifteen line comment justifying why something works in some brain damaged way the only accurate comment ever to exist is // TODO
|
# ? Apr 23, 2014 07:52 |
|
some 470 of our source files start withcode:
code:
|
# ? Apr 23, 2014 11:12 |
|
when you minify and gzip it shouldnt be that bad tbh but it seems a little silly
|
# ? Apr 23, 2014 11:24 |
|
Squinty Applebottom posted:when you minify and gzip it shouldnt be that bad tbh but it seems a little silly why would we minify and gzip C++ code
|
# ? Apr 23, 2014 11:39 |
|
qntm posted:cargo cult comments no one should comment anything because you work with at least one person that should be flipping burgers instead of making decisions about code
|
# ? Apr 23, 2014 12:55 |
|
no one should test anything because lazy people write awful tests no one should use an IDE because morons will autogenerate a bunch of dumb poo poo no one should use objects because the incurious will just make structs everywhere no one should use concurrency because your manager can't understand concurrency
|
# ? Apr 23, 2014 13:00 |
|
Bloody posted:fun fact about this garbage 8051 im suffering with the register write to enter sleep mode only works if the instruction writing it is not aligned to a 4-byte boundary so you can just guess how much fun that bullshit is. which 8051 vendor made this thing? the only current one i know of is silabs
|
# ? Apr 23, 2014 13:41 |
|
Regarding "Software "Engineering"" Common approaches to given types of problems exist. We all know about picking one data structure over another, or one algorithm over another; there are tradeoffs of speed versus memory, or what you do well versus what you don't do so well. Architecturally there are tradeoffs between enterprise level OOP with multiple tiers and classes all over the place passing objects versus data centric stuff versus FP stuff vs fart out a script for this trivial poo poo. Depending on scale and risk and importance we also have different levels of testing and scrutiny and code review - Theracs are going to get a LOT of scrutiny, kernels are going to have to strictly follow guides and be tested as much as you can, VMs are more important than farty fart ding dong web server, etc. While that's not "make a bridge" engineering, in that nobody is mixing and testing concrete, or pouring poo poo and tugging on cables and rebar, or hooking up harnesses to people so they don't fall and die, there's plenty of "we need good practices" engineering, and plenty of "let's pick one approach vs another based on the problem to solve" decision making, much like causeway vs cable stay vs suspension, and such. You can't really do FEA on your porn site's source code but you sure can load test servers, and so on. If documenting and following standards, planning things and 'architecting' design, and figuring out how to approach things based on what we already know isn't engineering, what would you call it?
|
# ? Apr 23, 2014 14:31 |
|
2banks1swap.avi posted:Regarding "Software "Engineering"" a clown show for mental children as long as no one goes to jail or out of business for making easily preventable mistakes
|
# ? Apr 23, 2014 14:44 |
|
and even more, as long as nobody seriously asks what the total cost of ownership is for this project during its lifetime? how long would that be? how will it be maintained? you don't have engineering, you have meetings to make you feel like grown ups.
|
# ? Apr 23, 2014 15:05 |
Watching Dave Thomas speak about Elixir right now
|
|
# ? Apr 23, 2014 15:15 |
|
double sulk posted:Watching Dave Thomas speak about Elixir right now ARISE FROM THE GRAVE, HAMBURGER MAN
|
# ? Apr 23, 2014 15:15 |
|
|
# ? Jun 6, 2024 23:22 |
|
Never trust anybody with a first name as a last name.
|
# ? Apr 23, 2014 15:16 |