Two hundredth issue! Wooooh! It feels like only a few weeks ago we celebrated our one hundredth issue.
Sincerely thank you to everybody that has supported us via Patreon or via other means and to all our subscribers, old and new.
It's very encouraging to see this many people reading our little newsletter every day.
Here to (yet) another 100 issues!
In Ruby on Rails, ActiveRecord does a lot for us with very little code. But sometimes the amount of data from our results might be too large. One way is to get down and dirty with writing your own SQL queries. Another, as suggested by Kevin Deisz in this article, is by "dynamically creating columns in result hashes".
Strings in programming languages can be deceptively simple. Some languages consider them primitive types along with Booleans and Integers, others as composite, but with special features. Then you need to consider how they are stored, how to handle glyphs, localization, etc. In this article we focus on encoding, specifically the author answers the questions: Why String type is so controversial in Swift? Why can’t we use the subscript pattern to access a character in the string? How does Swift fully support the Unicode and why does it matter?
If you are just starting to learn programming and just completed the infamous "Hello, World!" application, this could be a good article to read. Author Reuven Lerner puts the
print function under a microscope and checks what other things you can pass it.
Programming language of the day: Myst. "Myst is a new programming language with the goal of bridging flexibility and practicality. By directly addressing common traps in modern dynamic programming, Myst provides users the ability to work quickly and easily with the power to write controlled, highly-structured code.
With heavy influences from Ruby, Elixir, Crystal, and other modern languages, Myst combines proven concepts like pattern matching and modular composition with some novel ideas, including global interpolation and fully optional typing. The result is a language that caters to natural thought and logic."
And that's it for today! Discuss this issue at our subreddit r/morningcupofcoding.
Did you like what you read? Let us know by clicking one of the links below.
Liked - Disliked
I hope you enjoyed reading the latest issue of Morning Cup of Coding. If you did, consider supporting it by becoming a patron (Patreon), buying me a coffee (PayPal), donating anonymously (coinbase), or purchasing an MCC mug (RedBubble); it helps me keep this going.