- Ruby
- Rails
- PostgreSQL
- RSpec
- Keep lines under 120 characters
- Ruby version: 3.4.2
- Stick to Rails conventions for organizing controllers and models
| Review the codebase and create a style guide based on its unique patterns and conventions. Pay special attention to the way the code is structured, commented, and formatted, as well as any distinctive naming conventions or coding habits. The goal is to capture the personal expression of the code so that another model can replicate its style when generating new code. Don't just focus on surface-level conventions like BEM or snake_case. Instead, analyze the deeper intentions behind the programmer’s choices—how they structured the code for clarity, how they balanced abstraction with readability, and how they approached problem-solving. Extract the patterns that reveal their thought process, decision-making, and unique stylistic tendencies so that another model can mimic their way of coding authentically. |
| // Require the Ada library with a test secret key. | |
| const ada = require('ada')('ada_test_BQokikJOvBiI2HlWgH4olfQ2'); | |
| // How much can people pay for apartments in a given location? | |
| const demand = await ada.demand.get({ | |
| category: 'flat_for_rent', | |
| rooms: 2, | |
| lat: 51.10819, | |
| lng: 17.036603, | |
| photos: ['https://i.imgur.com/yKscXMA.jpg'] |
| <a href="https://ada.place/blog/agencje-i-zarzadcy-nieruchomosci-przyjazni-studentom/"><img src="https://static.adacore.pl/ghost/2019/07/agencje_przyjazne_studentom_30.png" /></a> |
| <a href="https://ada.place/blog/agencje-i-zarzadcy-nieruchomosci-przyjazni-studentom/"><img src="https://static.adacore.pl/ghost/2019/07/agencje_przyjazne_studentom_10-15.png" /></a> |
| <a href="https://ada.place/blog/agencje-i-zarzadcy-nieruchomosci-przyjazni-studentom/"><img src="https://static.adacore.pl/ghost/2019/07/agencje_przyjazne_studentom_5-10.png" /></a> |
| <a href="https://ada.place/blog/agencje-i-zarzadcy-nieruchomosci-przyjazni-studentom/"><img src="https://static.adacore.pl/ghost/2019/07/agencje_przyjazne_studentom_suma.png" /></a> |