inflection
R.swift
inflection | R.swift | |
---|---|---|
2 | 5 | |
481 | 9,403 | |
- | - | |
2.5 | 6.2 | |
9 months ago | about 1 month ago | |
Python | Swift | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
inflection
-
To Ruby from Python
> Could you elaborate on this
I think it's more than evaluating each feature in isolation like migrations, ORM, template engine, etc..
As much as I like Python (I use Flask a lot too besides Rails), I always found Rails to include more useful features for building web applications than Django. There's lots of examples but Rails' inflector is one of them. This happens all the time in web apps, which is wanting to output "1 person" or "2 people". Rails give you a template helper for this. Python has options in the form of third party tools like https://github.com/jpvanhal/inflection, but would you rather pull in a third party tool that hasn't been updated in 2+ years or use a solution maintained by a group of folks who are building web apps used by millions of people and then extracted those features into a framework?
The APIs in Rails feel more intuitive to me (super opinion based of course), but it's like someone tried 10 different variants in a few large web apps, tinkered with it for a while, arrived at a solution and that's the one that ships with Rails. There's so much thought put into everything and you know when it's released it's been put through the ringer at Basecamp, Hey, GitHub and Shopify because those sites all run off Rails master. That's a massive amount of confidence that it'll for you too, and the best part is you get to benefit from that on day 1 when a new stable release is shipped.
It's not that Django is bad or unstable but in my opinion if I were looking to use a batteries included framework I wouldn't look anywhere else besides Rails. It's just one of those things where it feels like a really good combination of things all came together (Ruby, Matz, DHH, Basecamp, lots of sites using it, enough community support to find blog posts for tons of stuff, great third party SDK support, etc.). You could say a number of languages have similar traits but they lack the first 4 things which are IMO the most important.
-
PyHeck: I wrote a fast case conversion library with just 106 lines of Rust code
PyHeck is 5-10x faster than the established case conversion library, inflection.
R.swift
- SPM and localization
-
Simple, but accurate drawing for iOS
I was having trouble getting R.swift to work with with SPM, potentially it's not supported yet? https://github.com/mac-cain13/R.swift/issues/735
-
Custom styling similar to Android for iOS
All resources in Android are referenced in a static class called R, so accessing to individual resources is pretty easy using R.[typeOfResource].resourceName. For iOS we use a library that does something similar, is called R.swift With that we can access resources in iOS using an 'Android like' sintax
-
Did you also know? In Xcode you can use the refactoring tool to wrap a literal string into a call to NSLocalizedString! Even better, you can assign a keyboard shortcut to make it even more efficient 🤓
Same was posted on the /r/iOSProgramming post for this, but I'm definitely not going back to using the raw NSLocalizedString call or extensions after I started using R.swift. Type safety and auto complete for all your assets is a real win in my book.
Or R.swift Clean and convenient solution.
What are some alternatives?
SpriteKit+Spring - SpriteKit API reproducing UIView's spring animations with SKAction
SwiftGen - The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs!
heck - oh heck, a case conversion library
XcodeGen - A Swift command line tool for generating your Xcode project
pyheck - Python bindings for heck, the Rust case conversion library
Shark - Swift CLI for strong-typing images, colors, storyboards, fonts and localizations
unholy - a ruby-to-pyc compiler - _why mirror
SwifterSwift - A handy collection of more than 500 native Swift extensions to boost your productivity.
Ruby on Rails - Ruby on Rails
infer - A static analyzer for Java, C, C++, and Objective-C
unholy - a ruby-to-pyc compiler
Xtrace - Trace Objective-C method calls by class or instance