-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notes on README #17
Comments
@RobStallion thanks for the feedback. I agree with most of your points and value your insight! I really wish we had a way of A/B testing this on enough "subjects" to collect the feedback/data on this. Please make any/all changes you see fit and open a PR. As for a more "beginners" ecto tutorial, have you seen: https://github.com/dwyl/phoenix-chat-example ? |
@nelsonic I haven't gone through the chat-example above myself but I have just had a quick read through it now and I think it looks like a great place to start out. I understand your point about the timing. I think it is just different strokes for different folks. Some may feel discouraged and some may feel spurred on. It wasn't meant to be a big point however, the quality of the tutorial/example is much more important than the time estimation (and this README was great ❤️) |
@RobStallion I'm stoked that you mentioned the "estimated learning time". 🥇 I would sooner hire or work with someone who is a "fast learner" than someone who already knows how to do something, fast learners can acquire (new) skills during the project whereas people who "already know what they need" are often reluctant to learn new skills or "drag their feet" ... 🐌 😕 Without a reference for the time something can take you to learn, you will take days/weeks/months to learn something instead of minutes/hours. Learning something eventually is of little use in the fast-moving world of tech. By the time you acquire the skills everything has changed and your knowledge is "obsolete" (or at least advances in other tech have eclipsed your "competitive advantage"). ☎️ Obviously, this really only applies to JS-world where there's a new framework/flavour of the week every week, but you get the idea; the goal is to coach yourself to learn faster. 🚀 😉 |
Opening a pr with updates for most of the points I raised above. @nelsonic can you give me access to do so 👍 I am going to do the following point on a separate branch as it is a little more complex than the other changes
|
@RobStallion you should already have write-access. you just need to accept it. 😉 |
@nelsonic This README is AWESOME!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! (I know this is not what issues are for but it really is amazing. Thanks so much)
I have gone through and made some points, and wanted to list them here. I can separate them out into different issues if needed and start working on them but just wanted to have them documented somewhere.
Prerequisites?
There is no link for this point (The previous points have links to learning repos). I have looked through the learn-phoenix-framework repo but couldn't find anything specific to just learning the basics of ecto (almost all the examples have something to do with ecto in them but nothing ecto specific). I was thinking that we could make a tutorial in the learn-phoenix repo that introduces that basics of ecto (migration/schema/repo) (I would be up for making this just to be clear 👍)
Time Requirement?
Personally, I'm not a fan of the time thing as I feel it can make people feel down if they take longer. Just my opinion though.
How
Before the
command, we need to edit the migration file. It needs the following line added to it
This missing line was causing tests to fail later on in the example.
3. Define The 6 Functions
3.4 Hash Email Address
These tests depend on the
:secret_key_base
. They were failing for me following the example because mine was different. Not sure how best to resolve this. Could we use a pattern match similar to the decrypt function.4 Create
EncryptedField
Custom Ecto TypeI know you suggest users write their own tests at this point so not really a problem but just thought I would mention this. The tests in test/lib/encrypted_field_test.exs do not test the
load/1
function (only the load/2). This function may not exist for people following the readme. (Again, not an issue, just mentioning it 👍)5. Use EncryptedField Ecto Type in User Schema
Also need to add
User
as analias
at this point as it is used in thechangeset
function.8. Create PasswordField Ecto Type for Hashing Email Address
This functions name has been changed in error. Should be
verify_password
. Caused tests inpassword_field_tests.exs
to fail.10.2 Re-order :email_hash Field in User Schema
users schema never shows adding a
:password
field during the exampleThis doesn't break any tests or anything. Just something I noticed. Was it added for the user interface mentioned in the conclusion?
The text was updated successfully, but these errors were encountered: