I was reading a book called
There is a shorthand for
The Art of PostgreSQL and i found out this. There is a shorthand for
select * from <the_table>, it is just table <the_table>.select * from users == table usersπ4
There is another entry in the hazarda collection.
I have started learning ruby (the chosen language of the unicorns π). I implemented a random number generator game in it only started learning last night. btw i am curious is there anyone here who does Ruby.
Somethings i have noticed
Conventions
There are a lot of conventions. Ruby devs don't like rules, most of the stuff i have learned till now are convention as in you could do them but ruby will not yell at you if you don't. Maybe that's how the ruby unicorn revolution started, most successful founders are contrarians who like to do things their own way, and they wanted to use a language that will let them do what they wanted without complaining, and they found that in ruby.
One example of a convention, you should put a question mark at the end of a function name to indicate that it returns a boolean, ex.
OOP is highly favored
Ruby is often called a "pure object-oriented language" since everything is an object. Classes can be modified at runtime. You can extend any class builtin into the language and ruby won't say anything.
Inverted Logic
I have started learning ruby (the chosen language of the unicorns π). I implemented a random number generator game in it only started learning last night. btw i am curious is there anyone here who does Ruby.
Somethings i have noticed
Conventions
There are a lot of conventions. Ruby devs don't like rules, most of the stuff i have learned till now are convention as in you could do them but ruby will not yell at you if you don't. Maybe that's how the ruby unicorn revolution started, most successful founders are contrarians who like to do things their own way, and they wanted to use a language that will let them do what they wanted without complaining, and they found that in ruby.
One example of a convention, you should put a question mark at the end of a function name to indicate that it returns a boolean, ex.
integer?.OOP is highly favored
Ruby is often called a "pure object-oriented language" since everything is an object. Classes can be modified at runtime. You can extend any class builtin into the language and ruby won't say anything.
class IntegerCheckout Ruby From Other Languages to see more.
# You can, but please don't do this
def +(other)
self - other
end
end
Inverted Logic
if inverted is unless, ruby has that.while inverted is until, ruby has that.Ruby Programming Language
A Programmer's Best Friend
Frectonz
There is another entry in the hazarda collection. I have started learning ruby (the chosen language of the unicorns π). I implemented a random number generator game in it only started learning last night. btw i am curious is there anyone here who does Ruby.β¦
If you didn't believe me when i said everything is an object. π
π3π2
Forwarded from ForwardingServiceRepositoryImpl (Archive)
wow... did they actually create a github repo for it? damn! sillicon valley is cool
https://github.com/Stitchpunk/atari-ai
https://github.com/Stitchpunk/atari-ai
π₯2
People always say, python is a good language for beginners, it's actually not. The idea that indentation is used to define a particular block of code is the hardest thing to get past for people new to the language.
π2π1πΏ1
Frectonz
I am going to be taking notes on this one π
Watching Sam Altman's talks is increasingly becoming one my favorite things to do.
https://youtu.be/4SlNgM4PjvQ
https://youtu.be/4SlNgM4PjvQ
β‘3π1
There's no such thing that can be called an untyped programming language. Every language has types, what varies is the number of types they have.
Python is not untyped, it's just that everything is a type called
Languages like TypeScript and Rust, which we would call typed languages have an infinite number of types because they allow you to create types of your own.
So we should call them single type vs infinite type languages.
Python is not untyped, it's just that everything is a type called
PythonObject. Same goes for JavaScript. Languages like TypeScript and Rust, which we would call typed languages have an infinite number of types because they allow you to create types of your own.
So we should call them single type vs infinite type languages.
π1
If I had the infinity gauntlet, I would snap away everyone that cuts in line, those people are the cancers of society. They should be eliminated by any means possible. π€
π3β‘2
Frectonz
If I had the infinity gauntlet, I would snap away everyone that cuts in line, those people are the cancers of society. They should be eliminated by any means possible. π€
After some reflection in the comments, we have found the root problem. The problem is not that people who cut in line exist, It's that I am not rich.
So yeah don't get angry over queues, get rich so that you will never be in one.
So yeah don't get angry over queues, get rich so that you will never be in one.
π4π―2
Forwarded from ilo sona
YouTube
William Byrd on "The Most Beautiful Program Ever Written" [PWL NYC]
Meetup: http://bit.ly/2okyAH3
Audio: http://bit.ly/2qkAczZ
Sponsored and hosted by Two Sigma (@twosigma) and Chartbeat (@Chartbeat)
Description
------------------
William E. Byrd "explores what he considers to be the most beautiful program ever writtenβ¦
Audio: http://bit.ly/2qkAczZ
Sponsored and hosted by Two Sigma (@twosigma) and Chartbeat (@Chartbeat)
Description
------------------
William E. Byrd "explores what he considers to be the most beautiful program ever writtenβ¦
π1
Classes are open in Ruby. You can extend them. It's kinda like Rust's trait system allowing you to implement custom traits on stuff but ruby's is a less explicit version of that.