|
darthbob88 posted:AngularJS question: Is there any reason I wouldn't be able to use Angular expressions inside another directive? I'm trying to create a carousel using this plugin and this config. It'll print item.logo and item.title just fine, and outputs {"foo":"bar", "baz": "qux"} for item.pages, but the ng-repeat just prints nothing. I can't find any good explanation anywhere else. Maybe don't use transclusion? Or just create an inner component and transclude that? code:
|
# ? Mar 28, 2018 16:20 |
|
|
# ? Jun 5, 2024 06:07 |
|
Love Stole the Day posted:Hello, I am still trash but I've since implemented almost all of the suggestions you guys gave to make my portfolio project be less pathetic. Please tell me why it is still not good enough to get an interview with tia: https://wanderrful.github.io/korean-learning-app/ "Hey there! This app is still in development!" is in too threatening of a treatment, it also steals the focus of the page when it's more of a footnote. "Translate to English" could use a punchier title. Even if it's just "Korean to English Quiz". Question 1 of 6 could just be "1 of 6" and a little smaller I'm not sure if omitting a submit button is good for accessibility or if the enter to submit has you covered. Agreed that it could use instructions. I'd blow up the size of the Korean characters by like 200%-300% Maybe add a hint after 1 or 2 wrong guesses. Oh wait this is there, maybe it needs to pop up sooner and just as inline text under the input. Success feels really lackluster. Maybe on the last page show the full Korean/English list again.
|
# ? Mar 28, 2018 16:55 |
|
The Dave posted:2 minute UX audit: The header is too aggressive. In general use red for serious errors, delete actions, etc. Enter for submit is programming-thinking, and not great UX. Include a button, and also put "Press enter to submit" in the input placeholder or as a label on the page. As an aside, your portfolio will be judged on the design and UX. It's bullshit if you're just trying to prove you can code, but the fact remains that good visuals and transitions impress people. Making sure your portfolio is polished visually is like showing up to an interview well groomed and dressed nicely. Hiring a designer to do a quick pass can make a world of difference and might be something to consider.
|
# ? Mar 28, 2018 17:30 |
|
Skandranon posted:Maybe don't use transclusion? Or just create an inner component and transclude that? Might well create an inner component if I have time later, but right now I'm going with a dumber idea. There are only 5 or 6 possible values that could be keys in item.pages, so I'm just going down the list and saying code:
|
# ? Mar 28, 2018 17:38 |
|
Lumpy posted:Flask, not much. Django, a bunch, but Django is a much more "batteries included" framework. The official Django tutorial is a good read (you don't have to actually follow along or even know python much) to see what it's all about. So if I want to teach myself Python and learn how to write REST APIs simultaneously, should I start with Python or just dive into one of these frameworks? I have experience writing pretty simple HTTP requests in PHP and curl, if that makes a difference, but setting up routes and writing clean, concise classes is something I don't really know how to do.
|
# ? Mar 28, 2018 20:55 |
|
Grump posted:So if I want to teach myself Python and learn how to write REST APIs simultaneously, should I start with Python or just dive into one of these frameworks? I always find learning a language without some sort of project is frustrating, so I'd dive right into a framework. django-rest-framework is good as gently caress if you don't care intensely about learning everything from the ground up and want to focus mainly on the business of writing a functional API.
|
# ? Mar 28, 2018 21:45 |
|
Grump posted:So if I want to teach myself Python and learn how to write REST APIs simultaneously, should I start with Python or just dive into one of these frameworks? Writing stuff from scratch is a good and cool thing to do. However, there are many months of work between vanilla python and having an HTTP rest api. In other words, you should use a framework. (but if you ever have the wherewithal, you should definitely write a webserver or web application server from scratch. It's a super awesome learning experience and not as hard as you might at first think.)
|
# ? Mar 28, 2018 22:37 |
|
Cool sounds good. I guess my last question for now is what are the most popular tools for local development? Is there Python/Django/Flask equivalent of XAMPP? teen phone cutie fucked around with this message at 23:07 on Mar 28, 2018 |
# ? Mar 28, 2018 22:46 |
|
Grump posted:Cool sounds good. Django has a built in runserver command that will launch a server for local development.
|
# ? Mar 28, 2018 22:59 |
|
Yeah, you don't need anything but python and django (or flask) to do local dev.
|
# ? Mar 28, 2018 23:08 |
|
Oh sick. Even databases too?
|
# ? Mar 28, 2018 23:21 |
|
Grump posted:Oh sick. Even databases too? Well, python/django can use sqlite for local dev which is good enough because you're just going to be using the Django ORM which abstracts away the DB. (actually once you know what you're doing you may want to use postgres during local dev because you'll likely begin using some raw sql for performance reasons at some point, but installing postgres for django is easy as I just described in another thread.)
|
# ? Mar 28, 2018 23:41 |
|
Grump posted:So if I want to teach myself Python and learn how to write REST APIs simultaneously, should I start with Python or just dive into one of these frameworks?
|
# ? Mar 29, 2018 17:22 |
|
Capri Sun Tzu posted:Learning for learning's sake ain't bad but not all knowledge is equally useful.These days I feel like knowledge invested into a framework is more useful than knowledge invested into something lower level like this especially from a career perspective. Maybe implement something algorithmic like a poker hand evaluator or what have you, learning algorithms is a good way to dig into the nuances of a language and is itself a more transferable skill than learning something that 1000 frameworks in every language can already do. I'd say learning how a backend framework functions would be a pretty good takeaway here.
|
# ? Mar 29, 2018 17:28 |
|
Just finished implementing or attempting to address each and every point/suggestion that the two or three of you guys made in response to my last post, quoted above. Thanks so much for the audits. I hope that this, in its current state now, is sufficient for a non-garbage portfolio project: https://wanderrful.github.io/korean-learning-app/
|
# ? Mar 30, 2018 03:21 |
|
Love Stole the Day posted:Just finished implementing or attempting to address each and every point/suggestion that the two or three of you guys made in response to my last post, quoted above. Thanks so much for the audits.
|
# ? Mar 30, 2018 15:21 |
|
Capri Sun Tzu posted:Better! The empty progress bar is confusing, maybe hide it until the first question is answered. I would ditch the "press enter to submit" label since you also have it as a placeholder. Another idea is to have a "press enter to submit" tip pop up if the user enters a response but doesn't do anything else within some amount of time. That way you're not bothering a user who knows what to do, but helping someone who might have missed the placeholder.
|
# ? Mar 30, 2018 22:27 |
|
Hey all, I have been building this for a while and wanted to get some eyeballs on it. https://4lo.co The domain name doesn't mean anything, I just wanted something short and kinda funny. It's my attempt to create a discussion site that has anti-shitposting mechanisms baked-in. Rather than try to describe all the stuff it has and can do, I made several demo threads on the site itself. I'm interested to see if people "get" it. How to browse, how to navigate, etc. Is anyone here brave enough to create an account and try messing with it? Thanks for any volunteers. It's hosted on a $13 VPS, so let's see if it holds up.
|
# ? Apr 3, 2018 04:00 |
|
My Rhythmic Crotch posted:Hey all, I have been building this for a while and wanted to get some eyeballs on it. Tried to make an all-emoji username - that errored with something cryptic about registration not working in general. Tried again with just regular ASCII username and am not getting the email and yeah I checked my spam. e: either I spoke too soon or you saw this and did something but I got the email Munkeymon fucked around with this message at 16:19 on Apr 3, 2018 |
# ? Apr 3, 2018 16:00 |
|
I'll have to add validation for non-ascii usernames, that's something I had not thought of yet. Checking with Elastic mail, it says the activation email has been sent, but not read. Gmail has never filtered these before, hmm. I'll just manually activate your account. edit, nevermind!
|
# ? Apr 3, 2018 16:20 |
|
My Rhythmic Crotch posted:Hey all, I have been building this for a while and wanted to get some eyeballs on it.
|
# ? Apr 3, 2018 17:03 |
|
My Rhythmic Crotch posted:anti-shitposting mechanisms baked-in
|
# ? Apr 3, 2018 17:04 |
|
My Rhythmic Crotch posted:Hey all, I have been building this for a while and wanted to get some eyeballs on it. Where are your terms of service and privacy policy!!! EDIT: I got a lot of 500 errors trying to make a new thread. I clicked around some, then tried again and it worked.... Making new threads is confusing and / or broken if you pick anything in the 'Forum' drop down. Lumpy fucked around with this message at 17:25 on Apr 3, 2018 |
# ? Apr 3, 2018 17:12 |
|
Capri Sun Tzu posted:I will put this to the test immediately. Also can I be mod no you can't be mod, and a lot of it depends on people actually being embarrassed if their dumb posts get front-paged
|
# ? Apr 3, 2018 17:45 |
|
My Rhythmic Crotch posted:no you can't be mod, and a lot of it depends on people actually being embarrassed if their dumb posts get front-paged Have you seen reddit?
|
# ? Apr 3, 2018 17:57 |
|
The Fool posted:Have you seen reddit?
|
# ? Apr 3, 2018 18:00 |
|
Can't submit emojis as post text, either (I love testing text inputs with emojis because it often reveals silly text handling bugs/bad assumptions)
|
# ? Apr 3, 2018 18:16 |
|
Do you guys use PUT and DELETE for http request methods? Am I bad because I only use GET and POST? Also, why do I only get asked the difference between GET/POST in interviews?
|
# ? Apr 3, 2018 20:48 |
|
huhu posted:Do you guys use PUT and DELETE for http request methods? Am I bad because I only use GET and POST? Also, why do I only get asked the difference between GET/POST in interviews? yes, yes, most places/developers/organizations/interviewers are bad
|
# ? Apr 3, 2018 20:52 |
|
This is not strictly web-related, but it seems to fit better here than in other threads. I have two XML files which look something like this: File #1: code:
code:
I can grab an XML library and roll my own solution, but I'm wondering if there is an existing tool that will do this, for me. I'd prefer something I can run from a Linux or Windows command line, but I'll take anything that works.
|
# ? Apr 3, 2018 21:06 |
|
huhu posted:Do you guys use PUT and DELETE for http request methods? Am I bad because I only use GET and POST? Also, why do I only get asked the difference between GET/POST in interviews? Yes, but only because the APIs Thermopyle codes for me use them.
|
# ? Apr 3, 2018 22:18 |
|
Lumpy posted:Yes, but only because the APIs Thermopyle codes for me use them. hahahahha! (now if only I could be consistent about it)
|
# ? Apr 3, 2018 22:36 |
|
huhu posted:Do you guys use PUT and DELETE for http request methods? Am I bad because I only use GET and POST? Also, why do I only get asked the difference between GET/POST in interviews? Well I mean. Those are the only real ones, plus OPTIONS and HEAD the others are artificial and are only possible by adding a hidden field or a query parameter, or request header. Unless you're using fetch I suppose. The whole thing is more ideological than practical but there are die hards out there. Supposed to do: code:
code:
code:
|
# ? Apr 3, 2018 23:12 |
|
Nolgthorn posted:
why?
|
# ? Apr 3, 2018 23:36 |
|
Nolgthorn posted:
Why would these be different from code:
Unless you mean "get me the newest products" for the first example, in which case I'd probably just use a query string of some sort.
|
# ? Apr 3, 2018 23:37 |
|
What? No. I mean you need a page that displays a way to "Create product" and you need a page to "Edit product", those are routes that generally have to exist.
|
# ? Apr 4, 2018 11:45 |
|
Why would you not use e.g. a delete request to delete a resource, why make an additional get route for it?
Gmaz fucked around with this message at 12:47 on Apr 4, 2018 |
# ? Apr 4, 2018 12:40 |
|
Nolgthorn posted:What? No. I mean you need a page that displays a way to "Create product" and you need a page to "Edit product", those are routes that generally have to exist. If your API is displaying web pages, you many not actually have an API.
|
# ? Apr 4, 2018 13:07 |
|
k.Gmaz posted:Why would you not use e.g. a delete request to delete a resource, why make an additional get route for it? what's the difference.
|
# ? Apr 4, 2018 16:32 |
|
|
# ? Jun 5, 2024 06:07 |
|
Nolgthorn posted:What? No. I mean you need a page that displays a way to "Create product" and you need a page to "Edit product", those are routes that generally have to exist. API's don't display pages though? Nolgthorn posted:what's the difference. One is clear and explicit and you can understand what it is for without knowing anything about the API. The other is unclear and implicit and you have to read the documentation to understand.
|
# ? Apr 4, 2018 16:39 |