|
Sorry, the thread title must contain at least one number and at least one emoji.
|
![]() |
|
![]()
|
# ¿ Apr 23, 2025 06:03 |
|
'javascript' < 'the worst thing there is'
|
![]() |
|
MALE SHOEGAZE posted:a space exploration startup whose only goal is to send elon musk to the kuiper belt
|
![]() |
|
gonadic io posted:have you tried `cat` op? (it's called `type`) in Windows cmd Finster Dexter posted:cat b.txt >> a.txt code:
|
![]() |
|
redleader posted:i once spent an hour on a friday afternoon coding in papyrus. it was somewhat amusing
|
![]() |
|
Doom Mathematic posted:It is? I thought it was like a mildly well-known industry term. That's how I use it at work anyway.
|
![]() |
|
Anyway it should be real term. I'll go make the "The pee lang is real!" hats.
|
![]() |
|
MALE SHOEGAZE posted:rats (get it, cats in rust)
|
![]() |
|
Phobeste posted:- 6.5 figgies means whatever you want it to mean above 100k
|
![]() |
|
Mahatma Goonsay posted:i will teach you the ways of ~MAGIC~ if you can teach me how to escape this place. MAGIC $T is the one that is kind of like mumps, everything is a B tree. there is also magic fs which is terrible in completely different ways. code:
|
![]() |
|
prisoner of waffles posted:I think part of why people hate on go so much is because perhaps too many of the people now writing blogposts about how "it's so fweaking awesome" are not much more insightful than the crowd succinctly mocked by the "mongodb is webscale" computer-generated voiceover vids? All the other languages should have won but somehow all have managed to shoot themselves in the foot in various ways so we're left with languages like python and go winning.
|
![]() |
|
anthonypants posted:isn't "serverless" just when you get the client machine to do everything e.g. javascript
|
![]() |
|
NihilCredo posted:yeah, we have f# and c# script files (actually f# scripting predates powershell by a year), they're way better than pshell for writing scripts longer than two lines. akadajet posted:people say this, but i've never seen anybody use f#
|
![]() |
|
Incidentally, I think one thing Powershell has really done a good job of proving is that piping objects between commands works much better than piping text. It's too bad there haven't been any serious efforts to make something like powershell but statically typed (for some reason it seems like whenever people try to make shell-like environments for other programming languages, they are determined to stick to piping around text whenever possible).
|
![]() |
|
gonadic io posted:lots of static typed langs have a repl and a command api There are some repl environments for python that are sort of the right idea, but what I really want is something similar for a statically typed language that has good type inference. Also, I want proper tab completion in the shell. I'm not aware of anything right now that checks all these boxes. I think c# could be made to work but I don't think the current repls are suitable right now.
|
![]() |
|
gonadic io posted:This is build with that in mind, tab completion would depend on your editor though as it's regular haskell types
|
![]() |
|
OK, I tried turtle. Finding the total size of the most recent 5 files in powershell and turtle (admittedly I suck at haskell so the haskell version is probably not the best solution). Powershell: code:
code:
|
![]() |
|
While I'm messing around with Haskell, is there any new advice on the best plugin to use for vs code at the moment? I was using haskelly last time I tried haskell, but as always when I went to try it again this time it was broken and this time I ended up giving up after half an hour of trying to get it working and just using the repl. This is possibly my biggest issue with haskell since it somehow happens every single time. If there's a better ide to use instead of vs code I'm open to that too, I guess.
|
![]() |
|
gonadic io posted:pretend I 1-lined this because it's definitely possible Also, I just realized that I never needed the filenames again anyway so I didn't need to use tuples at all. mystes fucked around with this message at 23:23 on Sep 5, 2018 |
![]() |
|
gonadic io posted:pretend I 1-lined this because it's definitely possible code:
|
![]() |
|
NihilCredo posted:for comparison, this is its cousin f# interactive: Also, I should probably use f# more. I wish there was an interpreter/repl for it for .net core. mystes fucked around with this message at 15:53 on Sep 6, 2018 |
![]() |
|
Oh another haskell thing: there's a new "Simple GHC (Haskell) Integration" plugin for vscode that has no dependencies (it just uses ghc). It's a little bit buggy but I can at least get it to work mostly which is more than I can say about the older pugins that use intero, etc. (What's funny is i looked on r/haskell to see what IDEs people are using now, and the most popular recommendation now seems to give up on the idea of getting syntax error highlighting and type information in the IDE and use ghcid in a separate window which I think is a good illustration of how loving horrible the haskell tooling situation is.) Also, it's funny that if you try to google how to add dependencies to a stack project, pretty much every site says to add it to the Cabal file, but apparently now you have to add it to the package.yaml file instead. mystes fucked around with this message at 16:01 on Sep 6, 2018 |
![]() |
|
NihilCredo posted:i deactivated every haskell plugin i had and activated that one. it does absolutely nothing for me, it doesn't even seem to recognize .hs files (they say 'Plain text' in the bottom right and when i searched the marketplace for extensions supporting it, simple ghc did not show up). adding the ghci folder to PATH didn't seem to help either By default it autodetects whether you're using stack based on the presence of package.yaml and you shouldn't need the ghc executable to be located in a folder in your path in that case (it will run it via stack). However, it doesn't seem to show any errors if it has trouble running ghc for some reason. It seems to be alpha quality but I still prefer it to the alternatives. mystes fucked around with this message at 17:46 on Sep 6, 2018 |
![]() |
|
NihilCredo posted:installed that plugin, the syntax highlighting works but no type integration yet code:
|
![]() |
|
NihilCredo posted:thank you! did you find the solution on google? after i fixed the hspec dep, it did indeed require yesod-test as well, but i hadn't posted that quote:no type lens yet but at least errors and completions work
|
![]() |
|
Finster Dexter posted:cjs: trying to run Go tests and bypass the cached test results, i.e. force the tests to run even if no code change was detected. quote:id·i·om
|
![]() |
|
Now that you jerks got me to try haskell again, I figured I might as well attempt to use it for a codingame problem, but it involves lots of IO of course so I'm trying to use StateT and stuff and it's pretty confusing.
|
![]() |
|
gonadic io posted:will happily review code. i found lens simplifies StateT use because you can more easily pair a `StateT Int a` and a `StateT Int (a, b)` and stuff. Anyway, I realized I misread the problem anyway and the correct version of it sort of seems like too much of a pain to do in haskell for me right now, so I'll probably do a different one, but I'm glad I got the monad practice anyway. Thanks for offering to review the code; I'll probably take you up on that offer on whatever I try next.
|
![]() |
|
Chalks posted:
|
![]() |
|
Finster Dexter posted:The good langs do. I personally prefer to have a bit more stuff built in, but in 2018 I'm not sure you can decide whether a language is good or bad based on whether you have to pull in extra packages for stuff like this. Of course for javascript in the browser it's more of an issue.
|
![]() |
|
This doesn't even loving break anything and yet all these crazy people are getting upset that python isn't going to use the word slave any more.
|
![]() |
|
Symbolic Butt posted:the1percent/the99percent
|
![]() |
|
VikingofRock posted:gru/minion
|
![]() |
|
prisoner of waffles posted:FB's PHP compiler to end support for PHP: https://hhvm.com/blog/2018/09/12/end-of-php-support-future-of-hack.html
|
![]() |
|
Vscode also appears to work to some degree for rust if you're willing to wait 5 minutes every time you stop typing for errors to appear.
|
![]() |
|
white sauce posted:let's say I want to make a program that inputs the number of days, weeks, and years and outputs that time into minutes. I wrote this thing
|
![]() |
|
The_Franz posted:i'm guessing the op's teacher won't accept that It's like trying to roll your own crypto.
|
![]() |
|
They should add status code 420 (Bad Decision by CEO)
|
![]() |
|
CRIP EATIN BREAD posted:plus its a real ide, and not some electron-based text editor nightmare
|
![]() |
|
![]()
|
# ¿ Apr 23, 2025 06:03 |
|
code:
|
![]() |