Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 13:47
    straight-shoota closed #12051
  • 13:47
    straight-shoota closed #12050
  • 12:17
    beta-ziliani edited #7318
  • May 15 08:43
    r00ster91 closed #7318
  • May 15 08:17
    r00ster91 closed #7690
  • May 14 17:01
    Blacksmoke16 labeled #11995
  • May 14 13:03
    webhive closed #12055
  • May 14 10:19
    straight-shoota milestoned #12051
  • May 14 10:00
    I3oris edited #12051
  • May 14 08:45
    oprypin review_requested #11977
  • May 13 23:29
    Blacksmoke16 unlabeled #12061
  • May 13 22:56
    Blacksmoke16 edited #12061
  • May 13 22:56
    Blacksmoke16 edited #12061
  • May 13 22:54
    Blacksmoke16 labeled #12061
  • May 13 22:54
    Blacksmoke16 labeled #12061
  • May 13 22:54
    Blacksmoke16 labeled #12061
  • May 13 22:54
    Blacksmoke16 opened #12061
  • May 13 20:14
    straight-shoota labeled #12060
  • May 13 20:14
    straight-shoota labeled #12060
  • May 13 20:14
    straight-shoota opened #12060
unreadable
@unreadable
how is syscall implemented in crystal, assebly or c bindings?
nvm, just read through the docs
api*
ziprandom
@ziprandom
hey is as still meant to be a reserved word? https://play.crystal-lang.org/#/r/2pzj it's now used as a method on Object so I should be able to use it as a variable name, no?
Serdar Dogruyol - Sedo セド
@sdogruyol
you probably cant use it
ziprandom
@ziprandom
yeah obviously but the error is pretty oscure
obscure
and standalone as like a as String is not allowed anymore, right? So as should be removed from the reserved words list ..
From IRC (bridge bot)
@FromIRC
<hightower4> Do we have a lib for generating uuids?
<Papierkorb_> Yes, SecureRandom.uuid
<Papierkorb_> part of stdlib
<hightower4> Thanks++
Serdar Dogruyol - Sedo セド
@sdogruyol
@hightower4 where's hightower3 :D
From IRC (bridge bot)
@FromIRC
<Papierkorb_> What does the nick "hightower" and 30 day password resets in businesses in common?
<Papierkorb_> Both use an ever increasing integer as suffix
<Papierkorb_> ;⁠P
Serdar Dogruyol - Sedo セド
@sdogruyol
lol
BTW one my friends has started a Crystal Training video series on Youtube https://www.youtube.com/playlist?list=PLqgPe8mz0dh5p73VdFwAuh1MF_yQ6f9RJ
From IRC (bridge bot)
@FromIRC
<hightower4> Haha
Serdar Dogruyol - Sedo セド
@sdogruyol
It's in Turkish but I'd like to see something like tat for English and other languages
Faustino Aguilar
@faustinoaq
:+1:
Bar Hofesh
@bararchy
That's really cool
I wish he did an Eng one too
Serdar Dogruyol - Sedo セド
@sdogruyol
we need that :P
Faustino Aguilar
@faustinoaq

Well, I will try do some videos in spanish/english, I never did a video for youtube before, but hey, it's Crystal :wink:

I'm learning some video editing skills.

crystal

From IRC (bridge bot)
@FromIRC
<Groogy> I kinda have been thinking of doing some kind of screencasts
Faustino Aguilar
@faustinoaq
Yeah, also @elorest did an amber video for https://amberframework.org
From IRC (bridge bot)
@FromIRC
<Groogy> I am used to stream and talk infront of a camera to sell our games but haven't really done stuff that are bit more intellectual
<Groogy> just have a hard time coming up with even a good topic to cover
Faustino Aguilar
@faustinoaq

turkish

I understand nothing but I like it :smile:

Ghost
@ghost~55586c4815522ed4b3e08557
ahah :laughing:
Serdar Dogruyol - Sedo セド
@sdogruyol
lol
Zafar Ansari
@ansarizafar
Javascript has Map object. Is there any similar object in crystal?
Ghost
@ghost~55586c4815522ed4b3e08557
@ansarizafar Hash I guess
opensas
@opensas
I guess Hash
I guess we had the same though ;-)
Ghost
@ghost~55586c4815522ed4b3e08557
I guess so yes :smile:
Zafar Ansari
@ansarizafar
I am new to Crystal and I am trying to convert my Graphql inspired data layer with batching, arguments validation and ACL support, from Nodejs to Crystal. I was using map and simple objects in javascript. Is there any data validation shard available?
opensas
@opensas
Zafar Ansari
@ansarizafar
I think NamedTuples stored in Hash will do the job as unlike javascript Array don't have any find method
Ary Borenszweig
@asterite
I'd avoid using NamedTuples as much as possible. Always use Hash. NamedTuples just represent named arguments.
Zafar Ansari
@ansarizafar
Hash can't store more than one value for each key right?
From IRC (bridge bot)
@FromIRC
<RX14> yes, but you can just use an array for the value
Zafar Ansari
@ansarizafar
I need to store multiple values for each key. Two arrays and one proc. That's why I am thinking about Namedtuples stored in a hash
Ary Borenszweig
@asterite
You can use a struct too, or a class. But if NamedTuple works for you, go ahead
Zafar Ansari
@ansarizafar
ok. Thanks
Bar Hofesh
@bararchy
@ansarizafar
my_hash = {:key => [value1, 150, :id, "etc..."], :key2 => {:mini_key => "single value"}}
So Hash can do alot for you
it's the best way to store data that needs a key->value structure