• Breaking News

    Thursday, March 11, 2021

    An awesome CSS editor plugin for chrome: Web editor web developers

    An awesome CSS editor plugin for chrome: Web editor web developers


    An awesome CSS editor plugin for chrome: Web editor

    Posted: 11 Mar 2021 03:40 AM PST

    Forget the < 30 somethings out there, how many individuals aged 35+ 40+ 50+ and still working dev/eng?

    Posted: 10 Mar 2021 10:56 PM PST

    I know it's easy for those who are still young in life, but Im curious to know how many older folks are still out there coding away, and getting and or maintaining a steady flow of work? If your a +, sound off, whats your age? (if you don't mind)

    This comes from what I hope is just an irrational fear that in this industry we have an age limit before companies look at us and say, psssh what could they know about modern tech. Or damn they know their value, we'd rather get some fresh go getter who doesn't.

    submitted by /u/arraysync
    [link] [comments]

    React library for building split views like in vscode

    Posted: 11 Mar 2021 12:51 PM PST

    My tinfoil hat theory: Increasingly strict CORS restrictions, while more secure for the end user, only get so much Google investment because it strengthens their AMP business when it's more difficult to make cross-site requests

    Posted: 11 Mar 2021 03:14 PM PST

    Am I crazy or not crazy?

    CORS has fundamentally changed our site's backend architecture. Everything needs to be proxied now and served from the same host which is antithetical to the steady dominance of microservice architecture.

    I'm not saying gateways are bad, but sometimes they're not appropriate i.e. when you're serving heavy files from third-party CDNs that ask for special auth cookies. Those cookies are a pain in the ass to get on the user machine due to CORS.

    How convenient that AMP would fix all of these problems... Just let me believe this conspiracy.

    submitted by /u/plumshark
    [link] [comments]

    Freelancers & Agencies: Referrals from friends and family

    Posted: 11 Mar 2021 01:55 PM PST

    Hey pals,

    I wanted to post about something that really helped me out when starting my software development agency, which is: asking for referrals (from friends and family).

    Without being spammy, I would encourage you to get out there and ask your trusted, known, social circle if they can think of anyone that could use your services. This is mutually beneficial, but only if you'r email or communication is clear, with a crystal clear value proposition about what you can offer.

    1 year into starting my agency I sent out a targeted email, letting my circle know

    1. What I am doing (started an agency focusing on custom software for business)
    2. What I'm looking for from them (if they could think of any businesses or individuals that may need my help, and could be beneficial to connect us).

    It took a little while, but over a few months I got some good referrals from that one email.
    Then a few months later I got a lead that ultimately landed us a 7-figure software project. That's right (and it was unbelievable at the time), but sending the email ended up being worth it's weight in gold.

    Id'e encourage anyone who has an agency or they freelance to consider this.. I have a rundown of my experiences and how I did it on my website, but the important things are keep it clear, choose people you trust and who already trust you (don't be a spammer), and it's the long game.. You are planting a seed which may come back many months later.

    Hope this helped someone!

    submitted by /u/httpknuckles
    [link] [comments]

    Release Notes for Safari Technology Preview 122

    Posted: 11 Mar 2021 01:47 PM PST

    I built my first site ResumeToPDF - professional resume builder in browser exports text based PDF. Privacy oriented. Freebie.

    Posted: 11 Mar 2021 11:51 AM PST

    Advice for working on side project while living on savings?

    Posted: 11 Mar 2021 02:06 PM PST

    I left my job to take a higher paying job and only lasted 2 months. Instead of job searching I decided I'm going to work on a side project idea I've had for a while now.

    I estimate my savings can last me about 7 months. I'm thinking I work on this everyday and then re-evaluate where I'm at in 3 months and decide to start demo'ing it or job searching.

    Does anyone have any tips for working on a side project? How about living off savings? Has anyone here done both at the same time?

    submitted by /u/nbst
    [link] [comments]

    How common is it for developers to have multiple roles with different companies?

    Posted: 11 Mar 2021 07:28 AM PST

    I've heard that some developers take on multiple roles and in turn have several 6 figure salary incomes.

    How practical is this? And is this really that common? I feel like it would be easy to become burnt out and I'm having trouble understanding how some people balance it all.

    submitted by /u/losandies
    [link] [comments]

    window.close() Restrictions

    Posted: 11 Mar 2021 12:04 PM PST

    For a local service business, Wordpress or my basic dev (HTML/CSS/JS) skills?

    Posted: 11 Mar 2021 02:11 PM PST

    So I have a decent understanding of HTML/CSS/Javascript/Node. The most complex project I have built is probably just a to-do list that uses local storage. I am just barely starting to learn SEO.

    A friend wants me to build a website for his local business. It would likely just be a landing page with information about his services, reviews (brought in from his socials), and his contact information. In the future, we might add more complex features like booking an appointment through the site.

    This is more of an emergency service so SEO is very important. Also, I have never deployed a site that will have actual traffic. I don't know much about security or improving load speeds. For these reasons, I have been looking at Wordpress as it seems that will cover much of my short comings. But I would prefer to not have to learn a whole platform if I don't have to. Am I over thinking this? Is handling security and load speeds and SEO that much harder when building from scratch? Or does Wordpress actually provide major advantages for these types of sites?

    Thanks

    submitted by /u/bibimbapdroptop
    [link] [comments]

    What should i do with this client? Work from 0 or use his code?

    Posted: 11 Mar 2021 08:09 AM PST

    Guys i have a client that gave me a website to clone and to place some features in it. He gave me the files that he had and it was the website but with only html, no customization in css. I found in those files of the client, some css files that were badly named. I found the correct names in the Index file. I corrected the name of the css file and the simple HTML website transformed into the cloned website with all the customization.

    Now what should i do? The html file and css files are a big mess. I will using Angular to place some of the features that the client wants (paypal and stripe payment), but i want the code to look well formated and "done" by me. So should i just copy the HTML and css and use that, or should i do that by 0, using the code that is already written as a guide line?

    submitted by /u/drking100
    [link] [comments]

    Ray.so: Create beautiful pictures of your code

    Posted: 11 Mar 2021 05:09 AM PST

    Problem implementing microservices on my final year MERN stack project

    Posted: 11 Mar 2021 12:49 PM PST

    I will build a website for my 3rd year final project where people can hire each other. The problem is that my professor told me to use microservices for my application and I don't understand how to organize my code in order to be microservices oriented.

    I have a frontend part with React where people can log in, post jobs, apply for jobs.

    Then I use GraphQL for the API.

    The server runs on NodeJS and for the database I use MongoDB.

    I am a single person so this project will not be as complex as a company website where a lot of people worked on.

    How can I implement microservices on this? Can you give me some examples? Thanks.

    submitted by /u/RazTutu
    [link] [comments]

    How well does the knowledge acquired in a CS degree translate to web dev?

    Posted: 11 Mar 2021 10:00 AM PST

    Hi everyone, I'm in my 3rd year of my major in Computer Science Engineering. However I don't think most of the course I've had would really help me out much in the field of software development I'd like to work in. (Web Development, with more preference towards the frontend side of things).

    Have you ever used what you learned in courses like the theory of computation and computer architecture at your job?

    submitted by /u/AppropriateHamster
    [link] [comments]

    Wordpress core team discussion: Dropping support for IE11

    Posted: 11 Mar 2021 03:53 PM PST

    Freelancing as a computer science student?

    Posted: 11 Mar 2021 04:28 AM PST

    I'm currently studying computer science and I'm thinking about starting to freelance. I have been building mobile and web apps for personal projects but I don't have actual work experience. I'm currently building a portfolio and creating my CV. Because I'm still studying I can at most work for 30h/week. My main technologies are Flutter, React.JS, Angular, Firebase and Node.JS.

    Does anybody have experience in freelancing as a student? How did you get into it and how did you find your first customers? What salary should I aim for?

    Any tips and recommendations are welcomed.

    submitted by /u/jwknows
    [link] [comments]

    Chrome 90 Beta: AV1 Encoder for WebRTC, New Origin Trials, and More

    Posted: 11 Mar 2021 03:31 PM PST

    Why I Don't Like Tailwind CSS

    Posted: 11 Mar 2021 03:31 PM PST

    Should i use my personal google account to set up Google to index a client's website?

    Posted: 11 Mar 2021 11:43 AM PST

    So I have my first freelance client and have made a website using Wordpress. The site is not indexed by Google yet so I wanted to login to Google Console and do the necessary. My question is, is it OK for me to use my personal google account for this ? Or should i get the client to use his account and set this up as I should not be mixing my freelance work with my personal site?

    This is my first time trying to use Google Console and i am a bit lost as to what the right thing to do is.

    Thank you.

    submitted by /u/Imizing
    [link] [comments]

    Do you consider Ruby on Rails legacy?

    Posted: 11 Mar 2021 09:55 AM PST

    I still see a lot of new projects being started in Django, Flask, Spring, NodeJS, and likely Deno soon as well. I see a lot of job openings for all of them, and a good amount for Rails. I don't see many startups creating their new applications with Rails and most of the roles I see involve maintaining existing Rails applications.

    From what I can tell, Rails does not seem to have the same momentum behind it that other frameworks have. Do you see it slowly heading the way of PHP where it's mostly worth learning for maintaining legacy applications or is there a more lively side of Rails that I haven't been exposed to?

    Is it worth learning for someone early in their career? Will I have the same value that I would have if I had, say, 5 years of Django experience instead?

    submitted by /u/valchon
    [link] [comments]

    Finding files that aren't referenced anymore

    Posted: 11 Mar 2021 01:16 PM PST

    I have an old classic ASP application portal that I created for my company almost a decade ago. It contains many different web applications, all running under the same base look and feel using commonly included ASP, CSS, and JavaScript files. Obviously, this isn't very up-to-date technology-wise, but it works for the small applications that it runs.

    The problem is that, while I don't have the time to redevelop all of the applications using a more current web technology, the folders have accumulated a lot of "detritus" over the years. There are ASP files that were once used and are no longer in use. There are JavaScript files that were replaced with other scripts. There are CSS files that aren't used anymore.

    My issue is locating these files. There are 5,200 files to go through. If I want to check to see if "SomeFile.asp" is still in use, I can run a text search to quickly find any references to it. If there are none, I can remove it. (Move it out of the web root to a backup in case it's needed.) This is tedious to do on a large scale, though. I don't really want to search through almost 1,500 JavaScript files one by one to see which are and aren't referenced.

    Is there any program I can run that will take a listing of files, run a full text search on a folder, and report back which of the files are referenced and which aren't? This way, I can clear out the unreferenced ones. Even if I need to re-run the tool multiple times (as removed files take out the last references for other files), it would be better than one file at a time.

    submitted by /u/TechyDad
    [link] [comments]

    Get a city's longitude and latitude based on location entered in searchbar

    Posted: 11 Mar 2021 01:03 PM PST

    Hello

    I am making a weather app using the open weather maps api. I was wondering if it was possible to get longitude/latitude based on what a user would enter during a search

    So for example, if they entered london how would I get londons longitude and latitude?

    Thanks for help

    submitted by /u/localmarketing723
    [link] [comments]

    Unhandled Promise Rejection in async loop in Express Endpoint using Mongo

    Posted: 11 Mar 2021 12:49 PM PST

    Hey guys,

    I am working on this project, and created an endpoint in Express that takes an LocationID that matches an ID in the Location collection, a date string, and an array of objects that consist of objects that holds a ProductID that matches an ID in the Products collection as well as a quantity.

    The idea of this endpoint is accept a dates count of products that need to be put into a certain location. It then takes that amount of a product out of the inventory collection, and puts the data of how much of what goes where into another collection that I will be working with later.

    The code is as follows:

    app.put('/api/counts/:location', async (req, res) => {
    const locationID = req.params.location;
    const date = req.body.date;
    const counts = req.body.data
    const client = await MongoClient.connect(
    process.env.MONGO_USER && process.env.MONGO_PASS
    ? \mongodb+srv://${process.env.MONGO_USER}:${process.env.MONGO_PASS}@cluster0.qnngp.mongodb.net/${process.env.MONGO_DBNAME}?retryWrites=true&w=majority` : 'mongodb://localhost:27017', { useNewUrlParser: true, useUnifiedTopology: true }, ); const db = client.db(process.env.MONGO_DBNAME || 'suprememanager-db'); const location = await db.collection('locations').find({ _id: new ObjectID(locationID) });`

    if (location) {
    let countObj = {
    countDate: date,
    locationID: new ObjectID(locationID),
    data: counts
    }
    await countObj.data.forEach(async count => {
    if (count.productID !== "604a7652637bc221acc387d2") {
    let inventoryRecord = await db.collection('inventory').findOne({ product: new ObjectID(count.productID) });
    await db.collection('inventory').updateOne({ product: new ObjectID(count.productID) },
    {
    $set: { quantity: inventoryRecord.quantity - count.quantity }
    });
    }
    });
    countObj.data.forEach(count => {
    count.productID = new ObjectID(count.productID);
    });
    await db.collection('inventorycounts').insertOne(countObj);
    res.status(200).json("Success");
    } else {
    res.status(404).json("Location not found!!!");
    }
    client.close();
    });

    It works fine when counts is only a few items, but I get this error in my heroku logs:

    2021-03-11T20:23:52.159017+00:00 app[web.1]: (node:21) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 5)

    2021-03-11T20:23:52.159110+00:00 app[web.1]: (node:21) UnhandledPromiseRejectionWarning: MongoError: Cannot use a session that has ended

    I Imagine this has something to do with the execution reaching the client.close(); before the loop completes, which would explain why data processed after the loop is reflected in the Mongo.

    I may be following a bad practice here, as I am not hugely familiar with async programming. So feel free to let me know if I am.

    Any advice would be great!!!

    submitted by /u/TheLambSaucee
    [link] [comments]

    No comments:

    Post a Comment