|
pipes! posted:Don't use HAML, if you can. It's temperamental, difficult to troubleshoot, and overly strict (and this is coming from someone who has a serious boner for web standards). HAML is great, where did you get this idea?
|
# ¿ Aug 3, 2014 20:17 |
|
|
# ¿ Apr 29, 2024 18:09 |
|
pokeyman posted:Are you using notepad.exe or something? Having a whitespace-aware language with no closing tags is more readable no matter what text editor you're using.
|
# ¿ Aug 3, 2014 22:36 |
|
pipes! posted:From using Slim instead. Okay yeah Slim is pretty great. I'm actually not sure why I haven't switched to it considering I've been using Emblem to work on Ember projects. One thing I have noticed with HAML is that elements with lots of data-tags-with-hyphens get ugly pretty quick when you end up with something like code:
code:
|
# ¿ Aug 4, 2014 22:44 |
|
Yup, they're exactly the same.
|
# ¿ Aug 8, 2014 03:29 |
|
EB Nulshit posted:So slim is basically HTML but with Python-style white-space rules to obviate the need for braces? I'm okay with that. The thing I like more about the white space rules is that it makes it really easy to understand the flow of the document at a glance and eliminates the need to have closing tags. I know most modern text editors are pretty good at managing your closing tags but one little slip up can leave you with a frustrating debugging experience. Especially since different browsers will try to comp for missing or extra closing tags in their own way.
|
# ¿ Aug 8, 2014 05:17 |
|
pokeyman posted:How so? I don't remember the specifics since I haven't had to deal with closing tags on a regular basis in a very long time, but issues like this that I found while Googling were never fun to debug: http://stackoverflow.com/questions/5623109/firefox-automatically-adding-closing-form-tag-too-early-ie-and-chrome-ok
|
# ¿ Aug 8, 2014 19:58 |
|
fuf posted:gently caress me is there some universal law that if you make a website for someone they will only ever look at it on IE8? Make browser support clear in your estimate/contract.
|
# ¿ Aug 22, 2014 15:44 |
|
Why all the Django recommendations and no recommendations for Rails? I always thought Django was fairly unpopular compared to Rails, am I so out of touch?
|
# ¿ Sep 8, 2014 05:11 |
|
Thermopyle posted:You're out of touch. What's the deal with Django? I haven't read much about it since about 2007 or 2008. Why is everyone excited about it?
|
# ¿ Sep 11, 2014 04:14 |
|
Whalley posted:This isn't really a question or anything, but I've just started learning Angular.js and holy poo poo I've got half a dozen projects that would have been so easy to complete had I learned this earlier. Angular.js is so fuckin' nice. I'm finding the same thing with Ember. Two-way data binding is so much nicer than loving around with events.
|
# ¿ Sep 30, 2014 20:16 |
|
obstipator posted:Be careful with Ember. Last I heard the next version is going to change a lot. Also all the stackoverflow answers from over a few months old are now obsolete, so make sure you check for the newest answers. IIRC, they were the ones that requested that SO remove all their old questions and answers. Yeah I've been using Ember for a couple of months now and there is a LOT of outdated information out there. It reminds me of when Rails was new and undergoing a lot of change. Luckily the official Ember guides are really good. What's the deal with React? What's it good at that Ember and Angular are bad at?
|
# ¿ Sep 30, 2014 23:22 |
|
Thermopyle posted:Being fast. The way it makes you think about your apps. It's conceptually small, so easy to understand. Documentation. People keep saying it's really only about the view layer though, how does that translate into building a more traditional web application? Does it concern itself with pulling data from an API at all? Saving changes to a database?
|
# ¿ Oct 1, 2014 00:51 |
|
ZentraediElite posted:Asked this question in Creative Convention and got redirected here... If you're technically proficient enough to set up shared hosting and use FTP and you've got some outdated experience with HTML and CSS you might be able to buy a theme from somewhere like ThemeForest and then tweak it to your liking. Otherwise I would just go with Squarespace.
|
# ¿ Jan 31, 2015 20:51 |
|
Power Ambient posted:SquareSpace is just fine and probably even better for a novice than even something like WordPress. Unless that involves a shopping cart althought you can always make the nav direct to another site with cart software like Shopify or BigCartel. Doesn't Squarespace have some cart stuff now?
|
# ¿ Feb 2, 2015 00:12 |
|
I'm doing a site for a client that has a lot of videos, I'm looking for a player that has the following features. I don't care if this is an embedded SaaS thing like Vimeo Pro or something that's totally self-hosted and self-managed. I just need it to be able to do the following stuff: * Flexible advertising preroll, not necessarily with ad tags but with my own videos * At least some branding/skinning features (watermark, etc.) * Embeddable (I can probably work this out myself with iFrames) * Works on all major devices/browsers Free is nice, but paid is not a problem. It just needs to be really solid. Any suggestions?
|
# ¿ Feb 4, 2015 15:53 |
|
Maluco Marinero posted:I haven't used these guys yet, but I believe http://wistia.com/ is intended to cover your kind of use case, less about social video, more about embedded video and tools to help you get done whatever you need for that. This looks really good, thank you!
|
# ¿ Feb 5, 2015 15:18 |
|
edit: nvm
prom candy fucked around with this message at 19:36 on Apr 13, 2018 |
# ¿ Apr 13, 2018 18:22 |
|
jiggerypokery posted:Anyone recommend any books for backend developers who live on the command line and want to pretend to have an opinion on design and UX? The Non-Designers Design Book is really good.
|
# ¿ Apr 17, 2018 17:32 |
|
Like most things, I think the wise approach for the average working developer is going to be to wait for larger organizations to figure a lot of this stuff out. I don't think I've ever been served well by super early adoption of something on the web unless it's the only way to satisfy a business requirement.
|
# ¿ Apr 30, 2018 17:19 |
|
Just to add to my previous comment, if you're interested in webass then absolutely follow it and gently caress around with it, but don't feel like you need to be gearing up to build production apps in it in order to stay relevant in your career. Not yet anyway.
|
# ¿ Apr 30, 2018 19:11 |
|
I recently switched to working for a product after 10 years of agency work. I was in management at the agency (as well as being a dev) and did everything I could think of to improve processes but you can never get rid of the client factor or the budget factor. I know there are better people than me who have probably made things smoother at their agencies but for me working on one product has been a breath of fresh air. I doubt I would return to agency life unless I could be promised not to work on more than 2 projects per year. The grind from project to project is exhausting.
|
# ¿ May 21, 2018 13:41 |
|
melon cat posted:I have a client who's opening up a spa and I'm exploring the best CMS for them. What's the best CMS for someone who wants easy appointment booking functionality with an online store (selling lotions and stuff)? WordPress is my usual go-to, but this client really wants a hands-off approach to their website and I don't think WordPress is the best choice for them. The only involvement they want in operating the website is changing their online store items from time-to-time. As much as I like WP it just isn't as user friendly and maintenance-free as I'd like it to be. Leaning towards Shopify, but not sure how well they do appointment booking functionality. Why not just sell them a monthly maintenance package and do the updates for them? If they're not savvy you may end up doing the same amount or more work in support.
|
# ¿ May 22, 2018 14:37 |
|
nexus6 posted:Thanks for the responses. I'm keen to learn more specifically about what 'product work' entails - is it like there's only one large site/app you work on and different teams do different features/bugfixes or something? Is it like having only 1 project with 1 client? I'm not very good at visualising what the job is like. It highly depends on the size of the team and the phase of the product. My whole company is 4 people (two founders, me, and a part time designer) and right now we're rolling out v2 of the successful MVP they launched before I was hired. Once we release the day to day will be all about iterating, adding features, and maybe eventually growing the product line. When we have pain points that can be solved with new tech we will likely rewrite or rearchitect to some degree. Look how many long-standing web products have moved to React on the front end, or something like Go on the back-end.
|
# ¿ May 22, 2018 14:42 |
|
Write everything down. Write down the stuff you're planning on doing in the next 3 hours and then write down that you did it. https://en.wikipedia.org/wiki/Bus_factor
|
# ¿ May 22, 2018 18:48 |
|
kedo posted:Just take your hourly rate, estimate the maximum hours you'd need per month, and then do a retainer for that number of hours at your rate or maaaaybe a little less if it's for an extended period of time. Try to figure out what it's worth to them and charge that. I disagree with your second point. Having recurring revenue is the only real way you can scale yourself as a freelancer. It's also a good way to maintain contact with your clients and make sure their sites don't atrophy. If you keep them happy they'll refer you new business, and you can potentially sell them expanded services down the road. The hustle of constantly finding new clients, delivering one project for them, and then moving on the next one is pretty unsustainable if you're trying to build a business. It'll also kill you when their sites start having issues in 2-3 years and they need help and want it for free. It does work well if you're just doing side work to make some extra cash though.
|
# ¿ May 26, 2018 16:19 |
|
Headless Wordpress is awesome, if I was doing sites right now I'd probably be all about Wordpress+Gatsby.
|
# ¿ May 26, 2018 21:55 |
|
How do you handle stuff like keeping Wordpress secure? Just pay-as-you-go maintenance tasks?
|
# ¿ May 27, 2018 02:40 |
|
Someone posted a bit about it on the last page but has anyone built anything with Tailwind? I hated utility-first CSS when I tried it a few years ago, but I think part of that was people kept lazily loving with the utilities, so the text-red class would also add 5px of bottom margin. That's when I switched over to using BEM and now I'm using styled-components with React, but the pain point of that is having to come up with names for everything, or constantly writing components that are just display: flex and align-items: center.
|
# ¿ Mar 8, 2019 16:00 |
|
Thermopyle posted:This morning I'm trying to select a styling solution for the React app I started a few days ago. Coming from BEM and SASS before I like it quite a bit. Co-locating my styles inside my react component makes a lot of sense, and it makes it pretty easy to do common stuff like changing how something looks based a component's props or state. It's also better than BEM in that if you stop using a style you created your linter will yell at you so you're never pushing dead CSS. The problems are similar to BEM in that you end up creating a ton of styled components with dumb names like TopArea just to set display: flex on them. They've added the css prop which is nice because you can kind of inline your styles in those cases, but in that case I'm more interested in something like Tailwind because I think I'd much rather have code:
code:
|
# ¿ Mar 8, 2019 17:58 |
|
style-components has a lot of stuff that SASS users will appreciate, like descendant selectors, &:hover shorthand, etc. I can't think of anything I used to do in SASS in that I can't do in styled-components.
|
# ¿ Mar 8, 2019 18:18 |
|
my bony fealty posted:I've never been bothered by this because you can either 1) write a base styled component with the reusable style and extend it or 2) just add a class to it. or heck just reuse the same styled component all around your project if you want, if it really is just the same rules over and over, just export it. Yeah, I have created a few utility classes already. For whatever reason I've mostly avoided using className selectors within a styled component but I guess there's really no reason for that. Although if I'm adding classnames that still doesn't solve the other problem of having to come up with names for everything. I do use descendent selectors sometimes but I almost always stick to using direct-child selectors because anything else just gets real sketchy in a large app. It's definitely possible that I have just been making far too many styled components though. ddiddles posted:I recently looked into setting up or using a utility-first css setup to put in a style guide into a fairly large existing app thats just a nightmare of redundant styling. That classname soup on the div is absolutely disgusting for sure, but I think what you've done in terms of mixing a bunch of stuff in is also possible with Tailwind using the @apply directive, so it's kind of two sides of the same coin. I also find reading that classname soup shorthand way harder than just reading CSS, but I think that also comes along with learning the tool itself, because I also find reading your @extends pretty difficult and I think that's only because it took me a second to understand your naming convention. I guess the reality is we're dealing with complexity and it has to go somewhere.
|
# ¿ Mar 13, 2019 23:46 |
|
Use GraphQL because it's sweet and looks good on a resume
|
# ¿ Mar 14, 2019 05:21 |
|
ddiddles posted:Ah yeah, I initially went with the short class names just because I was sticking them in the template, but with setup you could make your class names more semantic. I don't think there's anything wrong with short names, you still have to type them in the CSS so as long as the naming is consistent it seems to make sense. It just means that someone who's new to the project can't just quickly glance at a div's class attribute or inside your SASS file and understand exactly what each rule is doing. It only took me like 20 seconds to start to understand your naming conventions though. I guess the nice thing about using a pre-built utility-first CSS library is that they come with documentation, so if you do have new people joining your team you can just tell them "we use <x>, here's the docs"
|
# ¿ Mar 14, 2019 14:31 |
|
Jon Joe posted:Complete novice here, started playing around with html+css+javascript a week ago to prototype some ideas I had. Right now I'm trying to figure out what I should use to do database-like stuff. Nothing fancy, I just want to create a bunch of objects with the same keys but different values and then get all objects that match a certain key value, so I can display them. Read only or read/write? How much data?
|
# ¿ Mar 15, 2019 06:06 |
|
Jon Joe posted:Read only. Can't imagine it'll be more than a few hundred entries at the largest, each with around fifteen key:value pairs, of which I'd want to be able to filter by all of them, perhaps even all at the same time. I might just make a big rear end json file in that situation. You could also use some kind of db as a service solution like graph.cool or firebase.
|
# ¿ Mar 16, 2019 03:41 |
|
I'm actually in the process of trying to switch to windows for web dev right now and currently I'm using Hyper. I decided to just use tmux to handle my tabbing/split pane stuff because then my setup isn't so env specific, so maybe give that a try if you're willing to get a little more command-line dork about it. The nice thing is you can write scripts to get your tabs/panes exactly how you like them for a given project. I'm having a weird problem and I don't know where to start, but I figure someone in this thread might be able to point me in the right direction even though it's only tangentially related. For the past 6 weeks or so all my code pushes to AWS S3 and EKS have been brutally slow. My upload speed is somewhere around 150-300 KB/s, which makes for bruuutal deploy times if I have to do something like deploy the Rails container after the gems change. I was recently away and on hotel wifi the deploys were fast as expected. Incidentally in this time I've replaced my router and cable modem, and also upgraded my internet service. Speedtest.net consistently reports 15-20mbps upload speeds so I should be pushing pretty decent speeds. I've asked in a Slack for local devs if other people on my ISP are having this issue and no one said they were. I don't even know where to start with this, has anyone ever experienced anything like this? Should I just call my ISP?
|
# ¿ Mar 18, 2019 20:47 |
|
The Fool posted:ConEmu supports multiple shells, powershell, wsl bash, git bash, etc. Yeah I looked at ConEmu, I don't remember what it was that I didn't like about it. For some reason I went with Hyper but I don't really need Yet Another Electron App running.
|
# ¿ Mar 18, 2019 21:43 |
|
I'm off Hyper already since it doesn't send mouse events to tmux.
|
# ¿ Mar 19, 2019 15:44 |
|
So after a week of issues I'm off windows and back on my Mac again. I really want Windows dev to work for me and maybe I'm going about it in the wrong way (trying to bring over all my workflows from MacOS) but I was just running into issue after issue: 1. Couldn't find a terminal emulator that did everything I wanted: render utf8/powerline fonts, worked nicely with tmux incl. mouse mode. Tried Hyper, Ubuntu.exe, cmder. 2. zsh kept hanging after command execution. Not all the time, usually ctrl-c a couple times worked, but not always. 3. Ran into issues a couple times where webpack-dev-server would just stop responding at all. Restarting it didn't fix, the only thing that worked was running it again on a new port. So it was like there was a ghost process. 4. Docker seemed to have file permission errors. When I would connect to the app running my Rails server it wasn't outputting anything (normally rails server is noisy as hell) and would frequently not write anything to the log folder. Now and then it would just refuse to start and say it couldn't see the log folder. I dunno if I should give up on running WSL and try installing node etc. directly to Windows. I need Docker to work but the permissions issues might've also been related to being installed/mounted through a windows drive that's also on WSL? It sounds like there's a bunch of you in this thread who have long term web dev experience on Windows, any suggestions?
|
# ¿ Mar 22, 2019 19:01 |
|
|
# ¿ Apr 29, 2024 18:09 |
|
I've played around with Virtual Machines before, I think at that point I'd rather dual boot to Linux (but I also don't really want to do that because I've never been able to consistently run and enjoy Linux.) I ran Vagrant on my Mac for a while and the shared filesystem thing was a constant source of headaches. Appreciate the suggestion though.
|
# ¿ Mar 22, 2019 19:35 |