Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 12:51
    straight-shoota closed #12224
  • 12:51
    straight-shoota closed #13034
  • 12:15
    straight-shoota milestoned #12921
  • 12:15
    straight-shoota milestoned #12921
  • 10:44
    straight-shoota edited #12921
  • 02:39
    cyangle synchronize #12921
  • 01:08
    cyangle synchronize #12921
  • 01:08
    cyangle synchronize #12921
  • Feb 03 22:11
    straight-shoota labeled #12794
  • Feb 03 22:11
    straight-shoota assigned #12794
  • Feb 03 22:07
    straight-shoota synchronize #12959
  • Feb 03 21:38
    straight-shoota milestoned #12983
  • Feb 03 21:38
    straight-shoota milestoned #12983
  • Feb 03 17:37
    straight-shoota milestoned #13045
  • Feb 03 17:37
    straight-shoota milestoned #13045
  • Feb 03 16:49
    straight-shoota review_requested #13045
  • Feb 03 16:49
    straight-shoota review_requested #13045
  • Feb 03 16:49
    straight-shoota demilestoned #13045
  • Feb 03 16:49
    straight-shoota demilestoned #13045
  • Feb 03 16:49
    straight-shoota edited #13045
didactic-drunk
@didactic-drunk
Def#args.splat is broken for def a(*, b = false)? https://carc.in/#/r/bjhj
8 replies
oprypin
@oprypin:matrix.org
[m]

even if you have *args it just comes up as args, so not sure if you'd be able to tell that arg is a splat. so think this could deff be improved a bit

that just points to it not being meant for this use case

George Dietrich
@Blacksmoke16
shouldnt you be able to construct the same def with the ASTNode representation of it? Which atm that's not possible
as it turns out you can use this to know that something is a splat arg
From IRC (bridge bot)
@FromIRC
<raz> grkek: yo, how do i enable request logging in grip?
George Dietrich
@Blacksmoke16
traitor :P
From IRC (bridge bot)
@FromIRC
<raz> heh
<raz> i just want to scribble something up quick, athena too heavy
George Dietrich
@Blacksmoke16
lies
George Dietrich
@Blacksmoke16
working a new validation constraint tho
AVD::Constraints::File.new max_size: "5M", mime_types: ["application/pdf", "text/plain"] :0
and a similar one for images
From IRC (bridge bot)
@FromIRC
<raz> yeh, just wrote my own logger middleware. still quicker than remembering all::the::AVDs :⁠P
George Dietrich
@Blacksmoke16
request logging is enabled by default, so wouldnt have had to do anything ;)
From IRC (bridge bot)
@FromIRC
<raz> yeh, next time i need aircraft carrier framework i'll use athena again :⁠D
George Dietrich
@Blacksmoke16
heh
George Dietrich
@Blacksmoke16
George Dietrich
@Blacksmoke16
should Char define a to_u8! method that delegates to #ord so that you can do like Bytes['G', 'I', 'F']?
George Dietrich
@Blacksmoke16
well ord.to_u8
guess it wouldnt work for all chars so prob not worth it
From IRC (bridge bot)
@FromIRC
<alekhine> I'm a sort-of beginner. If I want to learn crystal, should I just go and learn Ruby first?
<alekhine> Hello everyone, btw
George Dietrich
@Blacksmoke16
i wouldn't then you'd have to unlearn a bunch of stuff :wink:
From IRC (bridge bot)
@FromIRC
<alekhine> Gotcha. Are there any decent resources yet?
George Dietrich
@Blacksmoke16
From IRC (bridge bot)
@FromIRC
<alekhine> Thanks
<alekhine> I can execute shell commands withing the language?!
<alekhine> ?!?!?!
George Dietrich
@Blacksmoke16
pretty sure you can do that in pretty much any lang but yea
From IRC (bridge bot)
@FromIRC
<alekhine> Wait, really?
George Dietrich
@Blacksmoke16
ruby, php, go, etc at least
From IRC (bridge bot)
@FromIRC
<alekhine> How about C?
yup
From IRC (bridge bot)
@FromIRC
<alekhine> Wow, that is... some new information
George Dietrich
@Blacksmoke16
has its uses, but if thats all you need just write up a bash script
From IRC (bridge bot)
@FromIRC
<alekhine> Nah, I want a compiled language
<alekhine> So, here's my real question
<alekhine> Is crystal fun to write?
George Dietrich
@Blacksmoke16
i think so yes, but i dont think it'll help you much if all you want to do is execute a bunch of shell commands
From IRC (bridge bot)
@FromIRC
<alekhine> I've been learning for about a year and a half, but I have not yet found a language I really enjoy using
<alekhine> Lol, don't worry about that. That was just something I wasn't aware of, I won't be wrapping all my scripts in c now
George Dietrich
@Blacksmoke16
that's what bash is for :)
From IRC (bridge bot)
@FromIRC
<alekhine> lol you're right. or python i guess
George Dietrich
@Blacksmoke16
python wouldn't help much either if all you want to do is like
cd /some/dir
cp /some/thing.txt ./
some command --foo
From IRC (bridge bot)
@FromIRC
<alekhine> Bash is still very good at file manipulation. Though I use fish :⁠)
George Dietrich
@Blacksmoke16
by bash i more so kinda meant .sh file
or whatever shell you use yea
From IRC (bridge bot)
@FromIRC
<alekhine> Yeah, Shell languages