Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
software_writer
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
Length, Size, and Count in Ruby and Rails: When to Use Which?
(akshaykhot.com)
1 points
by
software_writer
3y ago
|
0 comments
32.
▲
Refactoring: Improving the Design of Existing Code
(akshaykhot.com)
1 points
by
software_writer
3y ago
|
0 comments
33.
▲
Deep Survival
(book-notes.pages.dev)
1 points
by
software_writer
3y ago
|
0 comments
34.
▲
How to Debug and Step-Through Rails Codebase
(akshaykhot.com)
1 points
by
software_writer
3y ago
|
0 comments
35.
▲
The Complete Guide to Working with Cookies in Rails
(akshaykhot.com)
2 points
by
software_writer
3y ago
|
0 comments
36.
▲
Rails Middleware: (Almost) Everything You Need to Know
(akshaykhot.com)
2 points
by
software_writer
3y ago
|
0 comments
37.
▲
Let's Read the Turbo Source: What Happens When You Click a Link?
(akshaykhot.com)
3 points
by
software_writer
3y ago
|
0 comments
38.
▲
Let's Implement the Map Method from First Principles
(akshaykhot.com)
1 points
by
software_writer
3y ago
|
0 comments
39.
▲
Rails Active Record Database Migrations Cheatsheet
(akshaykhot.com)
2 points
by
software_writer
3y ago
|
0 comments
40.
▲
by
software_writer
3y ago
I'm not sure why, but all the source values are listed here: https://github.com/ruby/ruby/blob/1cc700907d3ad3368272488a6f... Maybe someone knowledgeable in the underpinnings of Ruby will explain why &quo
41.
▲
How to Check If a Variable Is Defined with Ruby's defined? Keyword
(akshaykhot.com)
3 points
by
software_writer
3y ago
|
2 comments
42.
▲
by
software_writer
3y ago
Very cool, thanks for sharing!
43.
▲
by
software_writer
3y ago
> The interaction of hashes, symbols, and blocks lead to a language which feels like it is designed with DSLs as first-class citizens. Totally agree.
44.
▲
by
software_writer
3y ago
Do you know any use cases, other than iteration? Would love to know any interesting ones. Thanks!
45.
▲
by
software_writer
3y ago
To be honest, I wrote that just to add a little drama ;)
46.
▲
by
software_writer
3y ago
Ah, that makes sense. Thank you!
47.
▲
by
software_writer
3y ago
I don't quite understand how this code works. Where does the `nil` come from? What operation are we performing on 3 that causes it to return `nil`?
48.
▲
by
software_writer
3y ago
Yes, hashes in Ruby, associative arrays in PHP, maps in Go[1], dictionaries in Python[2] and C#[3] represent the same concept, a collection of key-value pairs. [1]: https://gobyexample.com/maps [2]: https://docs.
49.
▲
by
software_writer
3y ago
You're right, thanks for the demo and sharing the link, really appreciated. I'll update the article to mention this.
50.
▲
Ruby's hash is a Swiss-army knife
(akshaykhot.com)
168 points
by
software_writer
3y ago
|
77 comments
51.
▲
Abbrev: A hidden Ruby gem
(akshaykhot.com)
81 points
by
software_writer
3y ago
|
31 comments
52.
▲
How to Implement Content Security Policy in Rails
(akshaykhot.com)
1 points
by
software_writer
3y ago
|
0 comments
53.
▲
Various Ways to Run Shell Commands in Ruby
(akshaykhot.com)
2 points
by
software_writer
3y ago
|
0 comments
54.
▲
What Every Web Developer Must Know About Content Security Policy (CSP)
(akshaykhot.com)
2 points
by
software_writer
3y ago
|
0 comments
55.
▲
by
software_writer
3y ago
I was trying to think of a good example, but the following table from RFC 5424 [1] might be a good starting point. I guess unknown could be used for the top 3 conditions. Numerical Severity Code
56.
▲
by
software_writer
3y ago
> Wow in 2023 someone thinks this is worth a blog post? It was meant to be a beginner-level introduction to logging (especially for those developers who got started in 2023 ;))
57.
▲
by
software_writer
3y ago
It could be useful for logging messages that don't fit a particular category, i.e. a catch-all category, to identify patterns over time. Edit: You could also use it to turn-off logging for a while. Since unknown is the highest level, n
58.
▲
Laravel Livewire 3
(livewire.laravel.com)
4 points
by
software_writer
3y ago
|
1 comments
59.
▲
Programming Pearls
(book-notes.pages.dev)
2 points
by
software_writer
3y ago
|
0 comments
60.
▲
Let's Build a Web Application in Ruby Without Rails
(akshaykhot.com)
2 points
by
software_writer
3y ago
|
0 comments
More ›