|
Powerful Two-Hander posted:yeah you know me Please do not post transcripts of your mother’s recent meeting with the local Hells Angels chapter, TIA?
|
# ? Jan 26, 2019 13:57 |
|
|
# ? Mar 29, 2024 01:35 |
|
Schadenboner posted:Please do not post transcripts of your mother’s recent meeting with the local Hells Angels chapter, TIA? dad I told you to stop following me around the Internet you're embarrassing meeeee
|
# ? Jan 26, 2019 14:24 |
|
uncurable mlady posted:types dont guard against npe
|
# ? Jan 26, 2019 14:47 |
|
Dijkstracula posted:that's why you use Option[T] types rather than null, and Either[T,U]s to propagate errors back instead of exceptions yeah but any of those could also be null (or exceptions)
|
# ? Jan 26, 2019 15:10 |
|
gently caress i love ides. i had no idea "computeIfAbsent" existed
|
# ? Jan 26, 2019 15:18 |
|
gonadic io posted:yeah but any of those could also be null (or exceptions)
|
# ? Jan 26, 2019 15:26 |
|
Dijkstracula posted:luckily the check and balance here is that every FP 's favourite thing to do in a code review is leap down the throat of someone who uses an interface that could return null or throw and not lift it into a None or Left(...) any interface that returns Option could also return a null. this is my issue with scala: you can put all the layers on top of it you like, but you're still hosed imo scala should not allow nulls at all, and then nullcheck all calls then Option would be safe
|
# ? Jan 26, 2019 15:40 |
|
Krankenstyle posted:is there a good comparison/overview of the pros/cons of the various nltk tokenizers? what's your use case? i'd try sent_tokenize and word_tokenize first also maybe : https://textminingonline.com/dive-into-nltk-part-ii-sentence-tokenize-and-word-tokenize
|
# ? Jan 26, 2019 16:33 |
|
gonadic io posted:yeah but any of those could also be null (or exceptions) Xarn posted:Here is a penny, buy yourself a real language.
|
# ? Jan 26, 2019 16:43 |
|
fritz posted:what's your use case? i'd try sent_tokenize and word_tokenize first nice, thx! i wanna turn some older danish text into word tokens, but if at all possible avoid splitting abbreviations which older text writes like "e.t.c." also discovered theres a general "module contents" section at the very end of the page. nice doc template, dinguses https://www.nltk.org/api/nltk.tokenize.html#module-nltk.tokenize
|
# ? Jan 26, 2019 18:41 |
|
seems the mwe tokenizer is the option for fixing tokenized abbreviations & such https://www.nltk.org/api/nltk.tokenize.html#module-nltk.tokenize.mwe ill try scraping a bunch off somewhere
|
# ? Jan 26, 2019 18:44 |
|
Krankenstyle posted:ill try scraping a bunch off scrape too much off and there will be nothing left
|
# ? Jan 27, 2019 02:12 |
|
gonadic io posted:any interface that returns Option could also return a null. this is my issue with scala: you can put all the layers on top of it you like, but you're still hosed
|
# ? Jan 27, 2019 04:42 |
|
akadajet posted:scrape too much off and there will be nothing left
|
# ? Jan 27, 2019 09:45 |
|
Krankenstyle posted:also our volunteers did too good of a job god this is so loving annoying
|
# ? Jan 27, 2019 11:10 |
|
Krankenstyle posted:the diffs are all hosed up and practically worthless because nothing aligns. This regularly happens to our codebase, where despite being provided a style and formatting guide someone will reformat all thier files before commit. Someone even managed to use eclipses handy 'gently caress my poo poo right up' button and reformat an entire core project. 10's of thousands of lines of code reformatted.
|
# ? Jan 27, 2019 13:21 |
|
mod saas posted:as someone who learns by example are there demo pages or whatever that have demo code and tests for it, with explanation of how the tests were chosen and why the test runs the way it does it gets poo poo in either this thread or a grey thread for reasons I don’t remember, but I liked the book “the art of unit testing.” I know it’s a book and not pure examples but I remember it being pretty example-focused.
|
# ? Jan 27, 2019 14:00 |
|
Aramoro posted:This regularly happens to our codebase, where despite being provided a style and formatting guide someone will reformat all thier files before commit. Someone even managed to use eclipses handy 'gently caress my poo poo right up' button and reformat an entire core project. 10's of thousands of lines of code reformatted.
|
# ? Jan 27, 2019 15:41 |
|
edit sorry this is a safe space i forgot
|
# ? Jan 27, 2019 16:05 |
|
Corla Plankun posted:edit sorry this is a safe space i forgot
|
# ? Jan 27, 2019 16:07 |
|
Krankenstyle posted:god this is so loving annoying and it’s volunteers so you can’t be mad at them and/or fire them!
|
# ? Jan 27, 2019 17:00 |
|
yep
|
# ? Jan 27, 2019 17:16 |
|
Aramoro posted:This regularly happens to our codebase, where despite being provided a style and formatting guide someone will reformat all thier files before commit. Someone even managed to use eclipses handy 'gently caress my poo poo right up' button and reformat an entire core project. 10's of thousands of lines of code reformatted. Your autoformatter not matching your style guide is definitely a horror of some kind.
|
# ? Jan 27, 2019 22:47 |
|
Jabor posted:Your autoformatter not matching your style guide is definitely a horror of some kind.
|
# ? Jan 27, 2019 23:18 |
|
Jabor posted:Your autoformatter not matching your style guide is definitely a horror of some kind. It's a bit of a problem . Our main codebase is about 900k locs, a lot of which was done a long time ago. We have a standard format now but we don't want to go and reformat all the legacy code. We might do a mass reformat when we move source control.
|
# ? Jan 28, 2019 00:29 |
|
can we start calling them "loc lines", like "yac yards"? it sounds so deliciously stupid and I think we could start a groundswell
|
# ? Jan 28, 2019 03:13 |
|
early in my career, I was working on a government contract and in a ccb one of the govies managing the thing gave me poo poo because I didn't know off the top of my head the size of the executable my code created. I was also supposed to have an exact accounting of lines of code at the ready, too.
|
# ? Jan 28, 2019 03:17 |
|
akadajet posted:early in my career, I was working on a government contract and in a ccb one of the govies managing the thing gave me poo poo because I didn't know off the top of my head the size of the executable my code created. I was also supposed to have an exact accounting of lines of code at the ready, too. Are you sure this "job" wasn't actually a bit part in a Community Theater production of "Snow Crash"?
|
# ? Jan 28, 2019 03:19 |
|
Schadenboner posted:Are you sure this "job" wasn't actually a bit part in a Community Theater production of "Snow Crash"? perhaps. the gig was horrible
|
# ? Jan 28, 2019 03:23 |
|
Oneiros posted:"if it compiles it works" they’re not wrong
|
# ? Jan 28, 2019 06:42 |
|
eschaton posted:but that type of development has been deprecated since mid-2008, when the App Store was introduced i’m on a very slow road writing a web app
|
# ? Jan 28, 2019 06:47 |
|
redleader posted:the wife asked me if she should learn to program, before realising that she likes people and solving actual (rather than invented) problems i’m kinda sick of people. well sick of solving others problems, especially old sick peoples problems 😒 old sick people who are price sensitive 😰 i’m way too soft and lame to be mean or anything i want to work in an industry that doesn’t feel like it’s constantly tougher than the previous year. where things are looking “up”. can’t even imagine what that’s like lol count_von_count posted:Same. Oldest daughter is learning to make pictures with Processing.js, tho. I feel like I need to know about this
|
# ? Jan 28, 2019 06:56 |
|
ugh im never debugging a broken HMM again, id rather die
|
# ? Jan 28, 2019 08:15 |
|
aaaaaaaag gently caress why can’t i get interrupts working in virtual 8086 mode, my 486 just triple faults
|
# ? Jan 28, 2019 08:32 |
|
Luigi Thirty posted:aaaaaaaag gently caress why can’t i get interrupts working in virtual 8086 mode, my 486 just triple faults more like triple fail amirite also, its my rapper name
|
# ? Jan 28, 2019 09:14 |
|
Krankenstyle posted:ugh im never debugging a broken HMM again, id rather die Like, a hidden markov model? Made of math, the easiest domain of all to debug and the reason why mathematica is good as hell while being an old janky piece of poo poo?
|
# ? Jan 28, 2019 13:40 |
|
pokeyman posted:can we start calling them "loc lines", like "yac yards"? it sounds so deliciously stupid and I think we could start a groundswell is “loc lines” better than compacting it into “klocks”
|
# ? Jan 28, 2019 14:01 |
|
bob dobbs is dead posted:Like, a hidden markov model? Made of math, the easiest domain of all to debug and the reason why mathematica is good as hell while being an old janky piece of poo poo? math is for dorklords never do a math irl, hth
|
# ? Jan 28, 2019 14:45 |
|
Krankenstyle posted:math is for dorklords do some examples on paper first, use them as test cases, when you make mistakes on the paper examples, those are the negative test cases. bam done. math code is easy code. von neumann invented the current architecture of computers to do monte carlos for nukes
|
# ? Jan 28, 2019 15:42 |
|
|
# ? Mar 29, 2024 01:35 |
|
echinopsis posted:they’re not wrong actually they are
|
# ? Jan 28, 2019 15:43 |