Bandcamp's artist stats page let you play Defender with you stats web developers |
- Bandcamp's artist stats page let you play Defender with you stats
- What happened at the end of September begining of October i have checked couple more trends there seems to be decline? Did i miss something?
- How to use Cloud without losing sleep
- Is It Worth Learning Web Dev AND Web Design?
- Is there any library that would help me create Textarea with text + image drag/drop like following GIF
- Low End web development dead ?
- How to implement this click effect? (from Google Fonts)
- Vite 2, a DX jump into the future
- I start to feel like it's not worth studying anymore
- Have a technical interview today, and I’m losing my mind... tips?
- How do I stop trolls from uploading illegal pornographic content to my video site?
- Help with React/Express App
- Front End development with VS Code and API development in Visual Studio 2019. How can I achieve this?
- Experience with Google Maps API?
- Remote work websites
- How often would you build out a site without using a front-end framework like bootstrap?
- Am I understanding monolith vs. microservice correctly?
- I think I bombed Galvanize TAA
- Mostly anonymous webhosting / domain registration? WHOIS Database
- Is back-end okay for a newbie ?
- I don't understand
- What’s a good website or way to find a lot of different layouts for websites?
- Best headless CMS to sell art with Next?
- How to enable prerender
- How to trigger some JS after 'scroll-behavior: smooth;' finishes
Bandcamp's artist stats page let you play Defender with you stats Posted: 14 Jan 2021 05:54 AM PST
| ||
Posted: 14 Jan 2021 01:22 PM PST
| ||
How to use Cloud without losing sleep Posted: 13 Jan 2021 08:58 PM PST Hi webdev, About a month ago, I published a post about our incident while experimenting with GCP and Firebase. There were lot of great comments, and after the post few folks reached out to me on recommendations for their projects. In the new year I took some time to write best practices I follow before setting up any new project on GCP that helps me to sleep well without having any on-call team. My blog post is here: https://sudcha.com/guide-to-cloud/ Adding all the best practices (except images, screenshots and some quotes) to this post. I hope that small teams, and individual developers find it useful. Note:
Let's get into it!1. Use multiple forms of payments (FOP), preferably with spend caps
Note: Some people have suggested setting up a shell company for using cloud services. I personally don't recommend spending time doing this. If you're building something meaningful, spend all your time making it better in a legit way. 2. Setup Service QuotasIn GCP users can define "Quotas" for most services. AWS has similar feature called "Service Quotas", and I'm sure other providers have this as well. Depending on type of Quota, some of them can be set for usage per day, per minute or even per user per minute. I don't really trust the per user quota because who defines "a user"? The others quotas for the most part are fairly reliable. For any account with billing, when I enable a new service, I first check if there's a quota, and if there's one, I set it to really low while getting familiar with the service. A lot of the services are charged per use and setting up this quota also helps in validating the costs that will be incurred on use. As an example, if I'm testing GCP Adult Image Classifier service, as soon as I enable the service, I would first set the Quota to 100 per day and then try the Codelab provided. If the cloud provider you use neither has auto billing shutoff nor budgets, it should be a big red flag for you to use the service. Some Caveats
3. Cloud MonitoringWhile billing is delayed by about a day, most metrics provided by Cloud platforms are delayed by only a few minutes. For GCP this is called Cloud Monitoring, for AWS it's called CloudWatch and in Microsoft - Azure Monitor. These monitoring services are either free for the project services (standard metrics), or available at very, very cheap prices. Setting up Monitoring wasn't really in the face when I started using Cloud Services, nor is it generally advertised, but it's a great feature that everyone should use. What it allows:
How to use Monitoring service
After few steady days, your job should be to watch out for spikes in usage as compared to the usage in longer period of time. Set the usage to 6 weeks and see if there is a spike. If there is a spike, it should be explained, say too much local testing, surge in usage, expected triggers etc. Looking for spikes only takes 2-3 minutes for the dashboard to load, and your job is done. This should be part of daily working routine if you have any service deployed on cloud.
Another example is memory or CPU consumption from the deployed services. Some graphs can easily tell if you have over/under allocation of resources to the services.
4. Use Free ProjectsCloud Platforms today provide a lot of free services per project, and there are a lot of projects that a user can create. There's a reason why the systems are set up in such a way. Primary reason, as far as I can think of, is to give enough room for testing and learning about the service. Firebase and GCP allow more than 10 projects, which can be extended further. If there's some issue with your account, you can always file for an extension. That's great… but how to use these free projects? Well, for one, set up multiple environments. Software development cycle is common knowledge so I'll be brief about it. In any project ideally you should have dev, test, staging (alpha), preview (beta) and production environments. No matter how small the project be, you should still have at least dev and prod environments that are completely decoupled from each other. Read that again: completely decoupled from each other. You can use a free firebase project for development, and a paid one for production. If you have backend services that need cloud sources, you can grant permissions to your free project sources to the paid project service accounts. This topic could be an entire post, as creating an architecture that supports multiple environments (dev, test, prod) for multiple platforms (Web, Android, iOS, API) can be a little complex. Granting permissions of one project to another Ideally almost all accesses should be only to service accounts and none to humans (except maybe admins). In GCP it's possible to give permissions to access resources of one project from another project, which is a great feature. I'm very sure every other platform has the same feature and I highly recommend using it. 5. Spend good amount of time understanding and predicting costsBefore going through any Codelabs for a service, first spend some time on Pricing of that service/feature. This is tied to designing the architecture of a project which can be a long post of its own. Most cloud services now have a great cost calculator (GCP Calculator here). This is a tool for developers to decide whether and how to use that service. Spend some time on these calculators, and test the costs in extreme cases. Over the course of time, I have started testing services for a day or two in a safe environment (development account). Wait for the billing to process and when I understand it correctly, then move on to integrating it in the product. A better approach would be to predict costs before and then test the service. The cost of service and your prediction should match. Never assume the pricing works as is because there are lot of factors to consider. 6. CICD = Operational EfficiencyAny project that has billing enabled, should only be accessed by machines (service accounts) and not humans. This means all code should be deployed through CICD piplines triggered after code merge, which should ideally only happen after code review. This falls in operational efficiency, and it doesn't matter how small your project be, it's a good idea to set it up like this because there's no reason not to. Less human intervention is better, both for security and efficiency. If you're on Github, Github Actions is one of the most valuable sources available, which is mostly free. Until now, there hasn't been a month that I paid for Actions and I manage lot of CICD Pipelines. GCP Cloud Build gives 120 minutes per day per billing account free, which to be honest is a lot. Unless you're deploying ML models, or have lot of projects + large team, I highly doubt that this free tier would be breached. Firebase has a great CLI, but I don't recommend using it for deploying to production environments. For one, it's harder to version the code and you might end up deploying buggy code. Second, any change in the deployment has to go through your machine. CICD forces you to be good at code management and versioning, and that's a good thing. What if I have to deploy just one function? 7. Protect the keys (and tokens)!Most starter Codelabs suggest downloading "service-key.json" and setting the environment locally. This is a great suggestion for someone testing a new service on free projects. However, any project that you plan on adding Billing, don't download a key. It's just not needed, and there's lot of risk that goes with it. For example you may accidentally add it to a git commit, forget to delete it while sharing code, or simply leave it somewhere on your system. I do download service keys but only when absolutely required, and only for development accounts that are on Free plan. For example in order to use Firebase emulator. When keys are needed in CICD, encrypt them right away and delete the local copies before committing any code. You can easily use encryption on Cloud without spending any time learning encryption itself. For example KMS and Secret Manager on GCP are as simple as it can get. 8. Multi CloudIf you have resources and not bootstrapped with an extremely small team, you probably are using more than just one Cloud. DO, GCP, Azure and AWS, all have some great pluses and minuses. If you have dedicated dev-ops and SREs I highly recommend making use of multi-cloud. However, if you're a solo indie developer, or a small startup, I recommend using one cloud unless you really need just one feature from another cloud service. This, because each cloud service has its own dictionary, and learning curve. It doesn't matter which service, which language, which platform you choose, my recommendation is to spend as much time on it to learn and experiment that you're the most knowledgeable about it. Of course once you're confident, you can expand to other platforms as well. Each cloud provider has similar set of tools, but using them, understanding their pricing/dictionary, and navigating their console takes lot of time to learn and adapt. My recommendation is to master the one you choose and optimize your usage based on the positives and negatives of that platform. 9. Read the best practices from the providerThink of cloud providers as coffee machines. The fundamental principles of making coffee remain the same, but the engineers who design the machines chose to prioritize a certain set of features that lead to certain design trade offs. The machine must be used in a certain way to work the best, and certain things should always be avoided. Cloud Platforms are very similar to fancy expensive coffee machines in this way. They come with a guidebook manual that's continuously evolving, and often has a set of dos / don'ts included. I highly recommend going through the dos and don'ts for each of the service you use not only for best performance, but also to avoid unnecessary troubles. Good example of this is Google Cloud Run development tips. This article clearly states that developers should avoid background activities. If you as a developer didn't go to this page on your own, and wrote a program that has some potential background activities but works perfectly on your local machine, you'd never realize why your code performs so badly on Cloud. Point being, always proactively look for best practices for any service you use. SO and Medium have some great resources for most services. 10. Billing Budget Alerts / NotificationsEvery single guide, article, post recommends setting up billing alerts, and auto shut-off cloud functions. This my least favorite feature, and the last on my list simply because it's not proactive but post facto. I do recommend setting Billing/Budget alert because it's there, but it isn't a feature I suggest anyone to rely upon. Note: If your cloud service allows for near realtime auto shutoff after hitting a certain cap, then that's really good, and I recommend using that feature and sticking to that platform. [link] [comments] | ||
Is It Worth Learning Web Dev AND Web Design? Posted: 14 Jan 2021 09:11 AM PST I consider web development and web design to be 2 separate things: Web Designer: The art of, well, designing. Creating sketches, wireframes, site maps, prototypes, gathering feedback, creating the UI, etc. Typically uses tools like Adobe XD, might use HTML and CSS, and then in a professional setting is usually the guy/gal that hands the design off to the developer. Web Developer: The person who writes the code. HTML, CSS, JavaScript, plus a back-end stack like MERN or something else. Basically, the person responsible for taking the design and turning it into reality. For my needs, I am looking to get a web development job. I am thinking of taking a course on web/mobile UI design alongside my web development course. I understand that while these two things work together in unison, they are also entirely separate in the actual industry as far as the work they do, and thus more than likely I'll only be actually getting a job in one of them. My question is if anyone here thinks that web design is a worthwhile skill to learn as well for the development of portfolios and personal projects, as well as just being something else to put on my resume. Thank you for any answers! [link] [comments] | ||
Posted: 14 Jan 2021 06:38 AM PST
| ||
Low End web development dead ? Posted: 14 Jan 2021 12:36 PM PST I'm an aspiring freelance web developer and I have recently started wondering if the low end of web development is dead ? I built a couple static sites for family members and their businesses for free as I was just trying to get experience and when I told them how much the sites would usually be worth in the market (couple thousand) they were shocked and found it weird that people would pay so much when there are sites like Wix or Square Space that charge significantly less. Is this accurate to how most of the market and small businesses owners think ? [link] [comments] | ||
How to implement this click effect? (from Google Fonts) Posted: 14 Jan 2021 03:27 PM PST
| ||
Vite 2, a DX jump into the future Posted: 14 Jan 2021 06:06 AM PST
| ||
I start to feel like it's not worth studying anymore Posted: 14 Jan 2021 04:37 PM PST I don't want to make this thread long so the point is: I learned full-stack web dev in the past year (MERN) and I built a few small projects for my portfolio. I spent quite a long time studying and considering that I left my job and became unemployed, It cost me a lot of money too. I applied for a few jobs but the requirements are insane with years of experience. I did not receive any calls yet. My friend works at a medium-sized company and he told me that in the past months they only employed people from India, because they can work remotely for $300-$400/month and they get hundreds of applications for a single position. Did anyone face this issue? It feels like the competition is too big and I just literally heading nowhere. [link] [comments] | ||
Have a technical interview today, and I’m losing my mind... tips? Posted: 14 Jan 2021 10:32 AM PST Finally got to the 2nd round. Have a technical interview, a recruiter reached out to me so I wasn't entirely prepared for it but nevertheless I'm losing my mind. Edit: Spacing Edit2: IM MOVING ON TO THE NEXT STEP [link] [comments] | ||
How do I stop trolls from uploading illegal pornographic content to my video site? Posted: 13 Jan 2021 11:11 PM PST How do video sites (Bitchute, YouTube) handle this problem and also not be liable? I was running a video site solo and users from 4chan/etc began "trolling" it by uploading illegal content so I had to shut down the site immediately until I learn what I'm supposed to do in this situation. Does anyone know? Alt Right Trolls are targeting my site because disagree with it politically. [link] [comments] | ||
Posted: 14 Jan 2021 01:27 PM PST Hey Everyone, I hope this is okay to post here but I've been really struggling to find an answer to the issue I'm having. I'm trying to set a project that I have live on Heroku, it works fine locally but from what I can tell the express server isn't going live correctly. The error I've getting when live is: Failed to load resource: net::ERR_FAILED localhost:8080/api/beers My question is why would it still be looking at localhost if the app has been transitioned to live? That's why my current hypothesis is that the express server isn't being built correctly. The data that's supposed to be pulled in from the database is also there on the heroku url when the local dev express server is running. The github is here: I'm after a few beers so if that description of the issue is crap just drop me a message. Any help is appreciated, cheers! [link] [comments] | ||
Posted: 14 Jan 2021 01:22 PM PST Like the title says, I've been tasked for an internship to build an Angular app for the frontend with an ASP .NET Core API for the backend. However what is rather confusing is that I have to do the development for the frontend in VS Code and for the backend using Visual Studio 2019. I've followed a tutorial on pluralsight for Angular Development but all of it was done on the frontend with no backend. And I have also done development on the back end and created an API using .NET Core. But it never occured to me, that both these tasks must be done in different IDE's. How do I hook them up? [link] [comments] | ||
Experience with Google Maps API? Posted: 14 Jan 2021 02:52 PM PST Does anyone here have any experience using the Google Maps API? I am trying to use the Directions Service to map a route. I am pulling the latitude and longitude from our Database. The issue that I am running into is figuring out how to declare the start and end points. I am pulling in the latitude and longitude using an array. I can provide more information if needed. Just didnt know if anyone had an experience with it. [link] [comments] | ||
Posted: 14 Jan 2021 09:40 AM PST Just looking for some websites that you recommend for finding remote work. I've seen a few pop up on this sub in the past, and the ones I've seen usually cater to US-based devs. Senior web dev from Canada, with 7+ years experience. Sick and tired of my job because they make promises for raises and promotions that they don't deliver on. So, time for a change. [link] [comments] | ||
How often would you build out a site without using a front-end framework like bootstrap? Posted: 13 Jan 2021 10:25 PM PST Curious how often people are sticking with vanilla CSS, thanks. [link] [comments] | ||
Am I understanding monolith vs. microservice correctly? Posted: 14 Jan 2021 01:40 PM PST
[link] [comments] | ||
I think I bombed Galvanize TAA Posted: 14 Jan 2021 11:15 AM PST I can't discuss specifics here for obvious reasons but I thought I knew Javascript until I took the technical assessment for Hack Reactor and boy do I feel stupid. I did not finish one single question. Anybody else felt the same way after taking it? edit: Sorry for the rant, I just feel defeated right now. It makes me wonder if I can actually make it as a programmer. [link] [comments] | ||
Mostly anonymous webhosting / domain registration? WHOIS Database Posted: 14 Jan 2021 01:12 PM PST I was about to register my domain and sign up for webhosting with IONOS since its only 12$ for the first year. But then I read aout the WHOIS registry. How can I make my name not show up? I want to be anonymous to the general public, so nobody can look me up based only on my website. How can I do this best? I read about NJalla, but if I use Njalla, can I still use IONOS webhosting? or is it enough to just not use a .com domain name? [link] [comments] | ||
Is back-end okay for a newbie ? Posted: 14 Jan 2021 04:53 PM PST Im looking for a career in programming and I have been learning Java, I was commited to then learning Spring, SQL, mySQL and some JS, i then learned from the job market that everyone wants 2+ years experience, a lot more sh*t like Angular, REST API. Isnt it better to just start front-end and then when you understand how the web works move to back-end if you want to ? [link] [comments] | ||
Posted: 14 Jan 2021 04:47 PM PST Why do people pay over $100, or even $13, for Udemy courses like these. With so many guides on git out there, I just don't understand. Am I missing out on something? [link] [comments] | ||
What’s a good website or way to find a lot of different layouts for websites? Posted: 14 Jan 2021 12:43 PM PST Just looking to find different layouts to get some inspiration. Thanks! [link] [comments] | ||
Best headless CMS to sell art with Next? Posted: 14 Jan 2021 08:42 AM PST Hey guys, I am struggling a bit with finding the right tech to use. I have to make an e-commerce site for an artist to display art on a headless CMS and ideally pull that data via a Next.js frontend. I've been looking into Contentful, Shopify, & Strapi, and I'm unsure which would be best/easiest? Does anyone have experience with this? I know Gatsby is all over the place, but personally I hate Gatsby. I would love to have GraphQL, however. Any tips moving forward would be great. [link] [comments] | ||
Posted: 14 Jan 2021 04:00 PM PST
| ||
How to trigger some JS after 'scroll-behavior: smooth;' finishes Posted: 14 Jan 2021 03:58 PM PST
I'm hoping there is an event or something I can latch onto or catch so that I can then execute some Javascript when scrolling is complete. What are my options? Thanks in advance. [link] [comments] |
You are subscribed to email updates from webdev: reddit for web developers. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment