DISQUS

DISQUS Hello!  The comments on this profile are unclaimed and thus are unverified.

Do they belong to you? Claim these comments.

Gleb Peregud's picture

Unregistered

Feeds

aliases

  • Gleb Peregud

Gleb Peregud

10 months ago

in Writing Ejabberd Modules: Presence Storms on metajack
Great post! Thanks a lot! I'll help me a lot :)

1 year ago

in Erlang: An Introduction to Records | 20bits on 20bits
Sorry for double posting.

> Perhaps a subset of the first, records are also used to keep track of configurable options.

Yes, records may be used for this. But sometimes proplists are better choice, take a look at http://www.erlang.org/doc/man/proplists.html:

> Property lists are useful for representing inherited properties, such as
> options passed to a function where a user may specify options overriding
> the default settings, object properties, annotations, etc.

1 year ago

in Erlang: An Introduction to Records | 20bits on 20bits
In the "Updating Records" there is one issue.

Opts = #server_opts{port=80, ip="192.168.0.1"},
NewOpts = Opts#{port=7000}.

should look like this:

Opts = #server_opts{port=80, ip="192.168.0.1"},
NewOpts = Opts#server_opts{port=7000}.
Returning? Login