|
Condiv posted:go doesn't have generics still, cause generics aren't a perfect solution so the writers of go were like "why bother " Can we just agree that go should be left to be used by sysadmins who need something more powerful than bash but less mindfucky than perl? It's not really a real language, robbe pikke is an idiot ohgod I write everything in go, i am the terrible programmer.
|
# ? May 12, 2017 05:47 |
|
|
# ? May 24, 2024 21:58 |
|
cis autodrag posted:do you work with me? sadly (??) i don't get any cool weird mumps stories out of my place.
|
# ? May 12, 2017 05:56 |
|
OWLS! posted:Can we just agree that go should be left to be used by sysadmins who need something more powerful than bash but less mindfucky than perl? Absolutely not, for them there's python. Or if they work for me, nix.
|
# ? May 12, 2017 06:05 |
|
Shaggar posted:c# doesn't have good dependency management (or build management) which is by far its biggest problem java appeared in 1995, c# in 2000. maven was released in 2004, i'm sure a c# equivalent will be released in 2009 at the latest
|
# ? May 12, 2017 06:35 |
|
ah excellent my IIGS RAM expansion and CF adapter arrived the CF adapter is an IDE card with an IDE-CF adapter attached lol
|
# ? May 12, 2017 06:35 |
|
go is insulting garbage and should be strongly rejected by anyone with taste
|
# ? May 12, 2017 06:46 |
|
MALE SHOEGAZE posted:i'm really excited to do some more rust now that i know that you can use map on options. also and_then (flatMap)
|
# ? May 12, 2017 07:24 |
|
VikingofRock posted:It comes from the fact that rust makes heavy use of things being expressions. It's a little strange at first but you get used to it after a bit. Plus it's pretty unlikely to lead to a runtime error because it'll probably be a type error if you mess it up. So your IDE / editor should catch it for you as soon as you write the mistake. why does the semicolon need to be omitted? why not take the last expression in the block as the value of the block, like scala?
|
# ? May 12, 2017 09:03 |
|
if i use the application context to store poo poo like dropdown list content for common pages to avoid hitting the db all the time how badly am i going to hate myself when it ends up with hundreds of badly named objects getting loaded for no reqson?
|
# ? May 12, 2017 10:58 |
|
Condiv posted:why does the semicolon need to be omitted? why not take the last expression in the block as the value of the block, like scala? it behaves the same way as scala - "thing;" has type unit, so { a; b; c; } is different to { a; b; c } and, in a function, is the same as {a; b; return c;} but "return" only works for functions (and closures?), not arbitrary blocks
|
# ? May 12, 2017 11:48 |
|
basically if you have a semicolon at the end, the "last statement" that gets returned is the empty bit between that semicolon and the end of the block
|
# ? May 12, 2017 13:31 |
|
Powerful Two-Hander posted:if i use the application context to store poo poo like dropdown list content for common pages to avoid hitting the db all the time how badly am i going to hate myself when it ends up with hundreds of badly named objects getting loaded for no reqson? do you have a real performance issue wrt the hitting the db every time? Can you send the drop down list on its own to the client and have the client cache it? If your data access layer doesn't have a caching system of its own you could use ObjectCache to add a basic cache w/ expiry but I wouldn't do it unless you have a real reason to.
|
# ? May 12, 2017 14:13 |
|
Shaggar posted:welcome to java like 10 years ago its always weird when i come across a giant java project and see that build.xml in the root.
|
# ? May 12, 2017 14:31 |
|
Powerful Two-Hander posted:if i use the application context to store poo poo like dropdown list content for common pages to avoid hitting the db all the time how badly am i going to hate myself when it ends up with hundreds of badly named objects getting loaded for no reqson? caches are a thing and are available in all sorts of transparent mechanisms for all your favorite languages
|
# ? May 12, 2017 14:33 |
|
with java nad spring you justcode:
|
# ? May 12, 2017 14:37 |
|
Shaggar posted:do you have a real performance issue wrt the hitting the db every time? Can you send the drop down list on its own to the client and have the client cache it? If your data access layer doesn't have a caching system of its own you could use ObjectCache to add a basic cache w/ expiry but I wouldn't do it unless you have a real reason to. no performance issues but i get weirdly obsessed with reducing the number of times we're making the same stupid call over and over when the data never changes (it is literally a list of countries). for some reason i literally did not even think about actual explicit caching. Probably because I've spent too long looking at the old "everything is a session object!" code base.
|
# ? May 12, 2017 15:46 |
|
Dang, so close, programming in JS bad enough but working with inconsistent and just weird data sources is worse: Mine on the left is supposed to launch Monday. Fixed the missing blue numbers this morning and webdev guy fixed a critical bug in the admin tool too. So get to watch on the floor Monday and hope everything actually works properly 🤞. Works on my machine (tm): MrMoo fucked around with this message at 16:29 on May 12, 2017 |
# ? May 12, 2017 16:26 |
|
oh my god i removed a nuget package and it deleted a shitload of folders with other stuff in them how is nuget so bad at what it does??? edit: how am i so bad at what i do??? Powerful Two-Hander fucked around with this message at 16:51 on May 12, 2017 |
# ? May 12, 2017 16:29 |
|
nuget sucks so bad. it allows packages to make changes to your project on addition or removal which is the dumbest loving thing possible
|
# ? May 12, 2017 16:39 |
|
Doc Hawkins posted:Absolutely not, for them there's python. You monster. (Reject any language that uses whitespace for anything meaningful)
|
# ? May 12, 2017 17:12 |
|
Jabor posted:basically if you have a semicolon at the end, the "last statement" that gets returned is the empty bit between that semicolon and the end of the block no no no no no what the gently caress is this poo poo yet another thing where Lisp is an improvement on its successors
|
# ? May 12, 2017 17:35 |
|
OWLS! posted:
ah so all of them
|
# ? May 12, 2017 17:54 |
|
OWLS! posted:You monster. Only use JavaScript, got it
|
# ? May 12, 2017 17:59 |
|
Corla Plankun posted:i thought this way, until i set up a graph db at work and tried to write a gremlin query and, ohhhhhh boy. Oh boy. I use the poo poo out of neo4j at work, it's query language is good and easy except sometimes you will write something that looks perfectly fine only to discover it has to scan the entire database 3 times or something stupid like that. Once they put profiling tools on it it was smooth sailing. Never tried gremlin, it looks bad and not good.
|
# ? May 12, 2017 18:05 |
|
eschaton posted:no no no no no what the gently caress is this poo poo combining functional expression-oriented approach and cargo cult algol syntax is always ugly and lovely. braces and semicolons are designed for imperative logic this is why c#, scala, rust, es6 javascript all decided to introduce shorthand notations for single-expression lambdas, so at least those are not too bad but it's imo a language design smell when you have two different syntaxes for two semantically identical operations NihilCredo fucked around with this message at 18:10 on May 12, 2017 |
# ? May 12, 2017 18:08 |
|
MrMoo posted:Dang, so close, programming in JS bad enough but working with inconsistent and just weird data sources is worse:
|
# ? May 12, 2017 18:15 |
|
ThePeavstenator posted:Only use Brainfuck, got it FYP
|
# ? May 12, 2017 18:28 |
|
Plorkyeran posted:every project-file-generator build system supports targeting ninja these days. it's not a meson thing yeah, we tend to target ninja from our cmake when we can, it's faster than make for incremental builds and it's nice not to have to remember to add "-j" to get parallel builds
|
# ? May 12, 2017 18:51 |
|
re: git chat, here's a 2014 paper on people being afraid of it: http://www.ppig.org/sites/default/files/2014-PPIG-25th-Church.pdfquote:We postulate that it is a combination of the Hidden Dependencies which leaves the user tl:dr; people who actually understand source control still stick to ritualistic patterns associated with novice users; not because they lack comprehension, but because they never feel confident with the tool and are actually afraid it's gonna gently caress things up for them.
|
# ? May 12, 2017 20:28 |
|
"after i run git commit i do a git push right?" "well do you want to push your commits?" "no what do i do next" people refuse to learn things and just hope that rote memorization of operations will awlays work and are still expected to be thought of as competent developers by their peers. which they are not.
|
# ? May 12, 2017 22:10 |
|
git is more disastrous the more you learn about it, like how "checkout" will reset a modified file without warning for reasons
|
# ? May 12, 2017 22:23 |
|
git is straightforward and simple
|
# ? May 12, 2017 22:36 |
|
CRIP EATIN BREAD posted:"after i run git commit i do a git push right?" 'here's a scientific paper proving that git is a user-hostile mess' *continues blaming dumbass users for not having the 1337est swole-brain*
|
# ? May 12, 2017 22:36 |
|
MononcQc posted:tl:dr; people who actually understand source control still stick to ritualistic patterns associated with novice users; not because they lack comprehension, but because they never feel confident with the tool and are actually afraid it's gonna gently caress things up for them. i could see this. once you've got something that works you really don't want to rock the boat that said every once in a while i do learn something new about git, like git add -p, and it makes my day and gets included my workflow i'm never gonna apologize for refusing to git rebase+squash on every pull request tho
|
# ? May 12, 2017 22:39 |
|
oh hell yeah i found an Apple MIDI adapter in a box of cables combine that with the Ensoniq sound chip at the core of the Mirage sampling keyboard that's in the computer for some reason and I can make some cool tunes on my GS the sound chip that got them sued by Apple Corps for entering the music business while being named Apple lol Luigi Thirty fucked around with this message at 00:55 on May 13, 2017 |
# ? May 13, 2017 00:52 |
|
St Evan Echoes posted:the oms i work on has a long term plan to move to javascript and boy howdy am i gonna move on before that happens You have to enjoy it with 2-3 day minimum time to push a release into production, it's awesome getting called up on things fixed a week ago.
|
# ? May 13, 2017 01:04 |
|
well I found a... more or less POSIX-compliant mishmash of BSD, System V, and other Unix environments that runs on top of System 6. it was last updated in 1996 but it has a preemptive multitasking kernel that can perform jobs in the background while the desktop is running! on a 2.5MHz processor! i let it install for a few hours (the distribution i had came on 18 compressed disks with an installer that decompressed them lol) while i played stellaris and it seems to work as advertised haven't been able to set up orca with it yet. apparently it's for people who wanted a unixy shell for use with Orca or who wanted to run communications programs in the background. yes, it has the most important program of a linux and a very slow vt100-compatible desktop terminal Luigi Thirty fucked around with this message at 07:55 on May 13, 2017 |
# ? May 13, 2017 07:47 |
|
NihilCredo posted:combining functional expression-oriented approach and cargo cult algol syntax is always ugly and lovely. braces and semicolons are designed for imperative logic are you talking about underscore syntax? otherwise, using semicolons are a code smell in scala. they're only useful for stuffing multiple expressions into a single line
|
# ? May 13, 2017 16:07 |
|
the irrational fear of semicolons is the worst fad to affect modern programming. just loving terminate your statements like a grownup. one more keystroke is not going to kill you.
|
# ? May 13, 2017 17:52 |
|
|
# ? May 24, 2024 21:58 |
|
the worst trend in modern programming is the continued support for “statements” when the superiority of making every construct an expression was demonstrated decades ago
|
# ? May 13, 2017 23:46 |