• Breaking News

    Thursday, December 28, 2017

    Introducing Hyperapp 1.0 — 1 KB JavaScript library for building frontend applications. web developers

    Introducing Hyperapp 1.0 — 1 KB JavaScript library for building frontend applications. web developers


    Introducing Hyperapp 1.0 — 1 KB JavaScript library for building frontend applications.

    Posted: 28 Dec 2017 11:11 AM PST

    Bootstrap 4 Beta 3 - primarily focuses around our forms, but it also includes key fixes to tables, some global styles, our documentation, and some JavaScript bugs

    Posted: 28 Dec 2017 10:29 AM PST

    Next open source file uploader for web browsers

    Posted: 28 Dec 2017 01:32 AM PST

    Viewen Web Hosting is injecting javascript cryptocurrency miners into their client's webpages without consent, and then hiding it from all of their administration panels.

    Posted: 27 Dec 2017 06:13 PM PST

    RESTful API Request / Response Design

    Posted: 28 Dec 2017 08:27 AM PST

    Having a conversation with a colleague we got into a debate about how to structure requests / responses for a RESTful web service, mostly surrounded how to handle dynamic data associated with a entity.

    As an example let's say we are building an RESTful web service to manage employees, which as part of the service has a endpoint to create an employee. An employee has a gender, employment type, and a department associated with them. They could have several other attributes, but just to keep the example small. The issue comes with how to handle associated data that is dynamic. Employee to Department is a many to one relationship. Departments can be added, deleted, and modified at will in this case. In that case is it considered generally acceptable to have the request take an departmentId in the request body?

    POST /employee

    { "firstName": "Bob", "middleName": "", "lastName": "Something", "dateOfBirth": "1990-01-01", "gender": "MALE", "employementType": "W2_FULLTIME", "department": "IT", "email": "bsomething@something.com" } { "firstName": "Bob", "middleName": "", "lastName": "Something", "dateOfBirth": "1990-01-01", "genderId": 1, "employementTypeId": 3, "departmentId": 4001, "email": "bsomething@something.com" } 

    As far as the response when someone request the resource back what is the most appropriate format.

    GET /employee/{id}

    { "id": 1234, "firstName": "Bob", "middleName": "", "lastName": "Something", "dateOfBirth": "1990-01-01", "gender": "MALE", "employmentType": "W2_FULLTIME", "department": "IT", "email": "bsomething@something.com" } 

    With this approach the consumer can easily understand the data, but for an SPA that has a dropdown of departments, it may not be as straightforward to set the appropriate dropdown value as an ID would provide.

    { "firstName": "Bob", "middleName": "", "lastName": "Something", "dateOfBirth": "1990-01-01", "genderId": 1, "employementTypeId": 3, "departmentId": 4001, "email": "bsomething@something.com" } 

    This is machine readable but doesn't really mean anything to a person calling the API. More API calls would need to be made to determine the name of the department, text value of the gender and employmentType.

    { "id": 1234, "firstName": "Bob", "middleName": "", "lastName": "Something", "dateOfBirth": "1990-01-01", "genderId": 1 "gender": "MALE", "employementTypeId": 3, "employmentType": "W2_FULLTIME", "department": "IT", "departmentId": 4001 "email": "bsomething@something.com" } 

    This combines both but could potentially make the response large depending on entity.

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

    Github repositories/people to watch

    Posted: 28 Dec 2017 01:44 PM PST

    Hello guys, im looking for repositories on Github that contains a react websites mainly, and other sites builded around javascript (no vue, agular) css, sass that are well builded and I can learn from them about file structure, javascript structure, configs and other great habits of writing code. But guys dont overcat level of this repos, I'm still learning

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

    What are some passive income ideas one could do with a web dev skill set?

    Posted: 27 Dec 2017 06:55 PM PST

    Last thread was about 2 years ago. Wondering what y'all have been doing for that extra passive / semi passive / side income in 2018

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

    New to web-developing, wondering how I should plan the project.

    Posted: 27 Dec 2017 11:40 PM PST

    My website is intended to be used by less than 20 people - basically the nearest families.

    Aside from being a fun project to learn from, the main purpose of the site would be to share wishlists in an easy way - needing a log-in of course.

    I would like to do all the coding myself, front-end and back-end, and I assume I have to use html, css, javascript and mysql.

    I don't know in what order this sort of thing is normally done though. I'll list some of the overall features below, in case they clarify some stuff.

    • login-page - require user to log in before moving on to other pages

    • main-page - consists of a big square in the middle with smaller squares that expand into more squares to the side of it when hovered over. The new squares serve as links to pages

    • wishlists-page - here you can see a person's wishlist - or if you clicked on your own wishlist, you can see and edit it.

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

    Front-end engineering intern looking to impress at new place?

    Posted: 28 Dec 2017 03:51 PM PST

    Hello everyone! I was lucky enough to land a front end internship doing some UX development, and as much as I like front-end, the stuff I'm doing is a little simple (SCSS entirely), and I'd like to get into the "real" programming part of the job, do some Angular work and really impress the higher ups (in hopes of landing a position after the internship)

    What would be a good way to go about this? I think the internship was mainly meant for practice and to acclimate interns to the work environment. One of my supervisors has mentioned that I'm doing pretty well, but I want to make absolutely certain they all know I'm serious. Right now there's not much work to do and I'm more or less just doing a little and waiting for a supervisor to have a free minute in their schedule for code reviews.

    Thanks for all the responses.

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

    Can I concurrently run multiple background tasks with Celery?

    Posted: 28 Dec 2017 03:10 PM PST

    I'm new to Celery and I am wondering if 5 users come to my site and perform action x (simultaneously) which executes as a background task, would there be 5 tasks running concurrently?

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

    Is there a js scrollbar tool out there?

    Posted: 28 Dec 2017 03:06 PM PST

    Looking for a package that does a carousel slider with a scrollbar similar to amazon.com. https://i.imgur.com/mcKTOId.jpg

    I'm trying to put a list of items inside a carousel and on screens, with wider views, it has a js scrollbar.

    https://codepen.io/kneepham/pen/wpJYmb

    The reasoning is I want to be able to style the scrollbar as the ::-webkit-scrollbar. Seems to be limited to what I can do and it doesn't look the same in different browsers.

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

    Maintanable CSS architecture (how I stopped worrying and learned to love the BEM)

    Posted: 28 Dec 2017 02:08 PM PST

    What would i need for this?

    Posted: 28 Dec 2017 02:07 PM PST

    <bad english>

    hey guys,

    Im working on a "fun project" with a frend of mine. Today i had a idea for a user profile for a website that slides in from the left edge of the screen out to the right with a click. From state 1 to state 2 basically. (picture)

    I learned html, css. i would say that im a 6/10 in both of them.

    My question is if im going to need something like js? or maybe something else to make it easier.

    Picture reference

    </bad english>

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

    Best framework for heavy client-side calculations?

    Posted: 28 Dec 2017 01:59 PM PST

    Hi guys,

    I'm working on a website that will run locally (so it can make calculations offline, and it's not meant for "laymen" for lack of a better term).

    I have an Angular4 frontend with an in-memory-web-api. I was going to write all the calculations in Javascript but I realize that this may not be a great way to go about it.

    To define heavy, users will generate a text file, and creating this text file requires parametrics, matrices, calculus, etc.

    Was wondering if you had any advice -- thanks so much for your help and time!

    Best, CW

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

    In your opinion what is the best hosting company at the moment?

    Posted: 28 Dec 2017 01:58 PM PST

    i currently have a premium plan on wix and honestly its driving me mad like the seo settings are terrible you cant configure anything and its just crap in general im looking for to create a small wordpress website but most hosting companies are asking like 100+ and thats just too much for a photography website are there any alternatives?

    thank you have a nice day

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

    Young aspiring QA analyst here. What is the best layout that Devs prefer for a bug report?

    Posted: 28 Dec 2017 01:37 PM PST

    Is there a common practice that devs would prefer to see? What aspects of a bug report makes your job easier? Just trying to gather some feedback. Thanks in advance!

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

    Need some outside-the-box thinking help- how are we getting so many blank form submissions?!

    Posted: 28 Dec 2017 08:27 AM PST

    Hey guys! Coming here with this question because I want to ask some fellow devs to help me think outside the box on this one.

    I built a few splash pages with forms on them. Each field (dropdowns and text fields) is required, and on two-step forms, the user cannot proceed to step two until every field is filled out. The form also cannot be submitted until every field has been filled out. All validation is done client-side, and if JS is disabled, so is validation, but the form does not render (still in the DOM though).

    Yet somehow, we are getting some 100% blank submissions. My first thought was validation was being bypassed by form state. Perhaps the visiter fills out the form, submits it, navigates back and then forward, and that submits a blank form that bypasses validation. That theory was debunked when I realized there were no other real form submissions around the time of these blank submissions.

    Or, this is just a bot doing this, which is entirely possible (but why?!).

    My next steps:

    • Further testing on more browsers, specifically older ones
    • Use one of those free heatmapping tool that records user behavior so I can see this actually happen and work from there
    • Is this malicious? Perhaps a bot? One form submission happened while our ad campaigns were turned off and there shouldn't have been any traffic to the page (can't be found organically). Still unsure how all validation would be bypassed.

    Would really appreciate your input and thoughts!!

    Thanks!!

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

    Recreating a gradient image with only CSS

    Posted: 28 Dec 2017 06:04 AM PST

    https://i.imgur.com/9xgJU0Q.jpg

    There's my current background, as you can see it's an image. I'm trying to recreate this as CSS only to reduce the payload size for first load in.

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

    Help me improve my Web App

    Posted: 28 Dec 2017 11:24 AM PST

    I am looking to improve Trump or False in any way possible, and am looking for suggestions.

    I am currently just looking for development suggestions in this thread, I will make a post in a design focused subreddit at a later time for those types of suggestions.

    My primary focus will be on user experience based improvements, or fixing current development flaws I might have overlooked.

    Already planning to swap out some of the setTimeouts with requestAnimationFrames, so those can be ignored for now.

    Let me know what you got.

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

    Creating HSTS and Pre-load with Cloudflare

    Posted: 28 Dec 2017 07:35 AM PST

    Contact Form: All messages received are marked as potential spam. Yahoo bounces.

    Posted: 28 Dec 2017 10:19 AM PST

    Hey there! I built my own contact form. Here's the php

    $emailTo = "example@gmail.com"; $name = $_POST['name']; $tel = $_POST['phone']; $ref = $_POST['referral']; $interest = $_POST['packagetype']; $body = $_POST['body']; $subject = $name . ' - ' . $interest . ' - ' . $tel; $content = 'Referred by ' . $ref . '. ' . "\n" . "\n" . $body; $headers = "From: " . $_POST['email'];; 

    As the title says, when I have been testing it out the emails I receive to my gmail account all come as "This message may not have been sent by: example email Learn more Report phishing" or in Yahoo's case, they return the error "Why is this message in Spam? It seems to be a fake "bounce" reply to a message that you didn't actually send."

    Any help here? I'm cross posting this from /r/PHPhelp

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

    Which bootcamp should I attend?...

    Posted: 28 Dec 2017 09:15 AM PST

    I do realize there have been mixed reviews for web development bootcamps lately, and I understand the risks associated with them. And yes, I am still using FreeCodeCamp extensively.

    I just feel a condensed, structured course is helpful for me personally, and a lot of reputable bootcamps do offer career support. After scouring for camps that I can still apply for (some deadlines ended), I came accross 4 of the best (in Canada).

    So which is better: Lighthouse Labs, BITMAKER, Red Academy, or BrainStation?

    EDIT: 4, not 3

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

    This might sound dumb, but what does a web developer do after the website is "complete"?

    Posted: 28 Dec 2017 02:53 AM PST

    I'm interested in being a web developer but had to ask this question. After a certain point, doesn't a website more or less get completed? Take reddit for example... What do the reddit web developers do now? What keeps them occupied assuming that its a full time job? Seems to me that they don't really need to do anything else to the website anymore. Sorry if this is a stupid question.

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

    Bachelor's thesis on CSS preprocessors and frameworks

    Posted: 28 Dec 2017 08:13 AM PST

    First of all I want to apologise to mods as this is not strictly a webdev related question.

    Secondly, I came here for advice on what to write my bachelor's thesis about. The general topic is supposed to be CSS preprocessors and frameworks. I just wanted to ask you what in your opinion is worth writing the thesis about as simple comparison is insufficient?

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

    No comments:

    Post a Comment