kentcdodds / ama Goto Github PK
View Code? Open in Web Editor NEWThis project forked from aviflombaum/ama
Ask me anything!
Home Page: https://github.com/kentcdodds/ama/issues?q=is%3Aissue+is%3Aclosed
This project forked from aviflombaum/ama
Ask me anything!
Home Page: https://github.com/kentcdodds/ama/issues?q=is%3Aissue+is%3Aclosed
Regarding the first-timers-only issues, how would you react to the following people sending a PR:
Would you accept it, or scold the person (which is a very bad experience and an awful PR move)?
I currently use prepros but it is very buggy and I am also just getting familiar with sass. Eventually I would like to switch to a different program. What are your go-to tools?
Thank you
I know 2 methods:
Method A: using an object literal
angular.module('app').directive('person', function () {
return {
restrict: 'E',
scope: {
say: '&',
},
controller: function ($scope) {
$scope.talk = function () {
var message = 'Hello!';
$scope.say({ message: message });
};
},
template: '<button ng-click="talk()">Talk</button>'
};
})
.controller('myController', function($scope) {
$scope.say = function(message) {
console.log(message);
};
});
<person say="say(message)"></person>
Method B: passing a function reference
angular.module('app').directive('person', function () {
return {
restrict: 'E',
scope: {
say: '&',
},
controller: function ($scope) {
$scope.talk = function () {
var message = 'Hello!';
$scope.say()(message);
};
},
template: '<button ng-click="talk()">Talk</button>'
};
})
.controller('myController', function($scope) {
$scope.say = function(message) {
console.log(message);
};
});
<person say="say"></person>
Do you prefer method A, B or another one?
I attended your Formly workshop at ng-conf 2015, have been following you on Twitter ever since, and have become a fan of your energetic, humble, thoughtful approach to things.
We are putting together an internal "unconference" to look for ways to improve our development development process. I think we would benefit greatly from getting an outside perspective on how somebody else is doing things (adding Webpack, transpiling, modules, etc. to our AngularJS project)
I know you have a full time job, but I can't think of anybody I'd rather spend a day discussing all things JS with.
Screenshot please. It tells a lot about a person. Mine for example.
If so, where?
PS. Hi from a fellow Mormon! It's always nice to get to know more people in our industry in the church. Let's be friends! 👍
I got this in an email and so I'm putting it here for others to benefit from :-)
Hi kent,
Just previewed your video. But, I interested to know how to u dock your browser on the right side when you dragged to the top right corner.Sorry for the side agenda.
If you could only watch 3 movies the rest of your life, what would they be?
Same question but which 3 books would you read?
Brief explanations of why are great too! Thanks Kent!
Hi there!
My question is: what do you recommend to run an Angular App on a linux server on production, like in an aws ec2 server?
So far, I've given a lot of private lectures at a bootcamp and one public talk that was fairly well-received. I want to give more. Wat do?
Should I start off making more local meetup connections and applying to conferences when I've got a handful of meetup talks under my belt?
How much of a talk do you write out before submitting the proposal? The outline? Slides? Everything?
How do you find RFS? What rejection rate should I expect?
What do you think of web components?
Particularly, do you see it as the future for a more modular & simplified (web-)development?
In any category. And why?
Clickbait title, but which one would you use in your next project and why?
What would you tell a junior dev who is trying to aspire to become great. Like perhaps a Dev Advocate, a speaker, or anything.
I was wondering if you could point me in the right direction for developing what I think should be a pretty straightforward web app. In its most primitive state, it should have three main pages:
(1) Users submit a video URL (e.g. from YouTube) in a web form page. Users input some information about the video, such as the video category, a person who appears in the video, a comment about the video, and a few more things. The form would need to drill-down so options later in the form could vary based on answers given earlier in the form.
(2) The body of the home page would contain a feed of recently submitted videos with a few text lines per video based on user-submitted data, such as category and people appearing in the video, as well as Youtube Data API stats, such as title, views, and rating.
(3) From the main page, users link to the search page. This page would have a list of filters to apply to allow users to sort through the videos based on criteria, which would also drill down. A list of videos is shown with their data, which can update without refreshing the entire page based on filters applied. The list of videos and their data would appear as described for the home page. (Technically this could just be incorporated in the home page, and the search results would overwrite the default feed.)
If things work out and the app gets traction, I'd hope to add more features to the site down the road, including user account registration:
I've been doing tutorials on Django/Python, Ruby/Rails, and a little AngularJS the past few days to acquaint myself better, but now that I'm seeing what I can do from scratch, I don't want to get too far before finding out I should have started in a different language, added more packages, etc. at the get-go. I've created a Google Developer trial account and played around with some virtual machines while I'm on the free trial, and I've figured out how to do basic tasks with Django/Python, Apache, MySQL, etc. to deploy simple apps to the web. (I've been performing simulation work on my university's supercomputer for the past three years, so I'm pretty familiar with Linux now.) I even tried working with Google App Engine, Heroku, etc. but found these to be fairly restrictive and have preferred the flexibility of the virtual machines.
What sort of languages, framework, database, etc. would you recommend for such a project? I'm just looking for the right place to start. :)
Thanks Kent! Hope that you and your family are doing well.
Mitch
I noticed you inserting emoji into text in the Open Source JS library how to series, what are you using for that?
Hi Kent,
Thank you for all the work in angular-formly.
I have an existing angular application where I have used includes to dynamically build parts (chunks, i.e many fields each include) of a form spanning multiple tabs.
Now that I have decided to use formly, I am not seeing how I could implement a similar dynamic form parts. I thought about expressions per field but then I will have to repeat the same condition for each field in a form part.
I hope that I have made my question clear and I hope to hear from you soon.
By the way, I have seen your tabs example and that helps in constructing the form over many tabs. But as I said, I would like multiple dynamically added chunks of the form (multiple fields) to each tab and to show and hide. Once hidden, the validation should not take place on hidden or not rendered fields.
Thanks a lot.
Hey watched some of your videos on egghead and youtube and noticed you've got some interesting JS templates, any chance on sharing them 😃 ?
Considering our field (IT) is evolving exponentially, I am very curious on how other people have their daily doses of information (besides the work-related stuff) to stay relevant and updated.
There are many other languages/technologies available for web/mobile/desktop development, but what about JavaScript makes you continue to invest your skills and time in it?
Given Angular2's examples being heavily focused on classes and composition, do you have any reservations? Will you use classes or will you write your own prototypes? What is your impression of annotations?
So first of all, congrats on landing the role at PayPal!
My question for you is: how did you eventually figure out that PayPal was the next step for you? What was your research process in finding a company that you want to work for that is building a product that you want to build?
What's really important to me in my full-time position is working on a project that I find particularly interesting; A project that I will be intrinsically motivated to put forth the best I can because it's a product that I really really want to see succeed.
Where do you look for the companies that might be building such a product?
I'm always surprised to see top developers in full time employment. I always think "If I was that skilled, I'd build my own company/startup and become a gazillionaire!!"
Seems like you have a strong preference towards lodash in your projects, I've read a couple comparison articles, but was curious as to your reasoning.
What is the one question that perplexes you most, but you don't have a reasonable hope to know the answer to?
Also, do you still contribute to the AngularJS project?
Hi Kent,
At the moment, I'm building an express API and I'm about to write tests for all the endpoints I have (yes, I know that I should have done this before :) ).
I'm thinking about writing some tests that check the http response codes, as well as the returned content itself (using superagent or supertest), and also check if there is a match between the retrieved data and what is stored in the database. Am I thinking right about the problem?
There are small functions where there is the need of testing the logic only with unit tests. Thus, the main focus is to develop end to end tests.
I'd like to listen your opinion on the best way to do it.
Thanks!
Hi,
Could you suggest some project/repositories to master javascript dom,eventing,js performance.
I thought of creating a event bus,but was not sure how to proceed.
I would be helpful for me if you could share some good resources.
Previously known as ES6. Have you used it?
JS/ESLint, grunt/gulp, WebPack, uglify/minify, string replacement, deployment process, etc...
I'm an angular and JS developer. I've been building projects with them for past 6-7 months. I like web development and especially JS very much. I need someone who can guide me through the different technologies, tools, projects, and even career. How should I find and ask someone to mentor me. I work for a company which doesn't have many senior developers.
I have watched your tutorials about 'Angular and Webpack’ (egghead.io). I like the way how you spread one angular Module through the whole app by 'module.exports' function. But is it good practise? If one part of app dependents on (for example) 'angular-moment' .. In your solution I need to type this dependency to 'app' ngModule even if only one component of the app needs it.
Hello sir, you said you like to help and i sure could use some help. I am the owner of freelivecam2camgirls.com and it is a web site that helps people sexy people become internet stars. I have been held back from opening the site for real for 3 months. Because it is crusial that on my site or application linking to my site I can run the youtube api. I need to do broadcast setup video upload, Well just about all the api ver3 options for you tube I can get. I have taken the samples ran it in eclispse using maven for the java and i get a clean no error command line program that works no place except on my computer. I try to get it into a wen app or service using many many techniqes but it always fails. I have also done the api in pythone, .php. java, and google app scripts but i cant get the last part everytime i get stuck. I really really need this. I i am just missing a tiny "doget line on app scripts and or a tiny bit of help on the java end. Can you please please help me?
I am having a very odd issue on an angular app I'm writing for a client, and I was hoping you would have some insight that could help me track down and fix it.
The app is a typical CRUD app that helps manage entities that, for the sake of this discussion we'll call Clients, Locations, and Employees. The data is pulled off of an API and displayed/manipulated from there. The issue I'm having is this: When you navigate to the "listings" page for any of the entities, the data is pulled from the API via resolve (using ui-router) and bound to the view in the controller. In the template, the list is rendered using ng-repeat. When you navigate to the list page via the menu, or any other UI element that points to it, it renders just fine. However, if you are on the list, click an entity (which takes you to the details page for that entity), and then click the back button in the browser, the list page takes ~25s to render. It is repeatable every time.
Here are some of the steps I've taken, none of which made any difference:
{{ ::client.name }}
), and using track by
.I recorded the transition via the back button using Dev Tools, and here is a screenshot of the aggregated details of the process that took all of the time.
Any ideas you have would be most appreciated!
I'm always in awe of people doing pretty much anything outside of their day job. How do you manage to run a weekly podcast, keep on top of your open source projects, social networking, full time job in addition to having a young family?
To continue the tradition sindresorhus/ama#75, passy/ama#28, https://github.com/stephenplusplus/ama/issues/19.
Coming from here.
I have recently seen some JS developers advocating against using ES6 classes . There is also a git repo about this. What is your view on this ..
You have written about how various frameworks are better suited to the way some people think. You have also written about how coding styles can be preferences, somewhat implying that developers should be free to code in their preferred style. How do you balance those viewpoints with what is best for a project, team, or company?
Many companies want to standardize on frameworks and coding styles because they feel it cuts down on time to come up to speed on a project and makes it easier to move developers between projects.
Do you advocate that each developer should code in whatever style they like? Should each file follow one coding style? Should all files in a project follow the same coding style? Are you okay with each web app in a company being developed using a different framework?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.