Web Development

is there anything like Dreamweaver CSS design panel in VS code?

webdev: reddit for web developers - Fri, 03/16/2018 - 12:35

hey all. new web dev here. i've been taking a dreamweaver class as an intro to web development, and im enjoying it alot. unfortunately, dreamweaver is really clunky and slow, so i started using VS code per suggestion from others. i already like it so much more for html/css/js.

the only thing in dreamweaver that i liked was the css designer panel. its basically a gui panel that lets me change css properties. is there any extensions for VS code that do this? i feel its better than having to write css, preview to see if i moved something correctly, go back and write css again because i didnt move it correctly, preview again etc.

any help is appreciated!

submitted by /u/Thepoopsniff
[link] [comments]
Categories: Web Development

[Q] How do you deal with exhaustion/difficult situations ? A question from a guy who has just started(trying) his career.

webdev: reddit for web developers - Fri, 03/16/2018 - 12:27

Right off the bat I want to point out that my English might be a bit bad, I'm not a native speaker, I'm very sorry for any kind of mistakes.

Now to the point of discussion. Dont get we wrong, I'm not fairly new to front-end development/webdev. It was around me for some years, i've made a few sites for my gaming clans in the past. Some personal websites, but they all were pretty simple and not fancy looking. I've never took webdev seriously enough but it was something always around me. Even though i hadn't practiced coding at that time, I was in touch with all new technologies that were released, etc. To sum it up - I'm an tech guy (nerd haha).

After serving in army i had to decide what do I want to do (for living and just being) and I decided to stick with my beloved internet, to be more precise - frontend. I love frontend for its visual representation, when you change something you immediately can see the differency. I love it for how many ways you can achieve the same result. For its ground simplicity.

After I have learned some basics of webdev, i started working on my portfolio (not a personal site, just github reps) and started to apply for jobs. And this is it - major problem. Right now I'm doing a test assignment and it is just pain in the ass. I've just realised that dont know so many things (or the test was just hard?), I feel so stressed out. I just dont know what to do at this point. I've been doing great on day1 of the test (they gave me like 2-2.5 days to do it), but on day2 (today) I'm just feeling a bit sick. I understand that I have already done a lot of work, learned a lot, but i just dont have enough time to do everything from the beginning (my test needs to be redone, bc at the current state, it might look good, but boy, under hood there is a lot of crap). And i feel bad about this situation, I was really trying to do but things did not go well for me, I had to look for many tutorials and explanations of some stuff and it consumed a lot of my time. And at the moment I'm feeling exhausted

Have you ever been to such situations ? Can you share some of your experience.

Thank you all!

Best regards, Andy

submitted by /u/andy-noir
[link] [comments]
Categories: Web Development

Changing location URL using pushState during scroll

webdev: reddit for web developers - Fri, 03/16/2018 - 11:45

I have a blog/feed page with articles one after another. As user scrolls, I want to change urls using pushState. but how do I know where the user is and which div is in focus ?

Also, when the user scrolls back up, instead of more pushState's can I popState and simulate back button behaviour as user is effectively "going back" as he scrolls up?

How can I implement this ?

Here is a site that has this functionality : link

submitted by /u/RedditorFor8Years
[link] [comments]
Categories: Web Development

Can you help me with my first website ?

webdev: reddit for web developers - Fri, 03/16/2018 - 11:39


I've been learning Html and Css since 3 weeks and i'm making my first website(not finished yet), it's about a serie called "UTOPIA. But i have some problems with it : The link: http://utopiamb.bitballoon.com/

How can i make responsive the text :"Where is Jessica Hyde ?" because it have a strange behavior when i shrink the page. Is it because of the transform property or the rotate value ?

How can i make the enter button responsive ?

I want to use @media queries but i don't know which minimum and maximum screen sizes i should set.

And if you have some advices about this website feel free to tell me, thanks :) (sorry if i made some english mistakes, i'm french)

submitted by /u/Labruniq
[link] [comments]
Categories: Web Development

Career Change - TV Producer to Web Developer

webdev: reddit for web developers - Fri, 03/16/2018 - 11:28

I've wanted a career change for quite some time and have reached a point now in my early 30s where I know I need a change. I'm an ISTJ and my coworkers have said my strengths are doing whatever it takes to get the project done, researching and systemizing information as well as an attention to detail that has brought be great success.

I've decided to take off the next 6 months and study web development at home, with the goal to become employable and start applying for jobs in September 2018. I want to be more mobile vs being stuck in NY/LA and eventually land a full time job. I've begun Colt Steeles Web Developer course and have really enjoyed it so far, but understand I have a ways to go.

Is it realistic to do this and expect to get hired? I feel a bit crazy beginning this journey but was interested in any feedback from the community here. Thank you!

submitted by /u/rollawaythethrowaway
[link] [comments]
Categories: Web Development

Looking to host a PHP/nodejs web/phone app but am not interesting in managing the infrastructure for it

webdev: reddit for web developers - Fri, 03/16/2018 - 11:15

Edit: typo in title, should be "am not interested*

I have a lot of experience with managing shared hosting accounts but little (none) with VPSs or clouds.

I have been tinkering around on a digital ocean VPS and it's made me realize how little I actually know about server infrastructure.

My app/website will offer a premium/paid service which requires the website to have as much uptime as possible. I do not know how to manage and secure a server and quite frankly I would rather just pay for someone else to do it for me.

I've been looking through AWS and Google Cloud for a good week and it's still not clear to me how I would actually deploy my service in any of their environments.

I am, effectively, looking for a shared or managed VPS hosting account that has PHP, MySQL, and NodeJS that can handle the traffic of a (hopefully) popular app. I really have no interest in building or managing a site through any command line interface except when absolutely necessary (installing NodeJS, for example). I realize this is going to cost much more than managing one myself but it's a fee I'm willing to pay for peace of mind.

Does anyone have any recommendations for what I'm looking for?

submitted by /u/nullsignature
[link] [comments]
Categories: Web Development

Sass Mixins

webdev: reddit for web developers - Fri, 03/16/2018 - 11:04

So i'm currently working my way through getting a solid handle on sass. I decided to start learning sass because I've been creating email newsletters for my company lately, and most can understand how tedious that process can be. Plus, it's just a great tool for web dev in general.

I'm really enjoying working through it, though I'm having trouble grasping the concept of mixins. I've gone through a couple tutorials, and I don't feel like this is a terribly difficult concept to grasp. For whatever reason I seem to have some sort of mental block with it.

Has anyone else struggled with mixins? Or does anyone have any good resources on sass that focus on mixins? Any advice would be greatly appreciated.

submitted by /u/joefus1o4
[link] [comments]
Categories: Web Development

Wordpress and plugins don't update.

webdev: reddit for web developers - Fri, 03/16/2018 - 10:57

The company I work for hired out a third party to do a wordpress website. I haven't looked through the code yet, but wordpress or any of the plugins that they installed doesn't update. How concerning is this, and what should we say to the company that developed the site?

I feel like it could be a big security risk if nothing is able to update when a new version comes out.

submitted by /u/ayosuke
[link] [comments]
Categories: Web Development

I love making macros/scripts/scrappers. Can I find a professional job doing this?

webdev: reddit for web developers - Fri, 03/16/2018 - 10:46

Hi. I apologize in advance if I shame the history of the english language with my question, its not my main tongue. I've been developing websites for a couple of years, and even though I really like it, I can help but confess it bores me to death sometimes... but I found that I massivelly enjoy making automation scripts, scrappers and such. I've only made these kind of work as a freelance for really short amounts of time (small projects), so I was wondering:

  • Can I find a job as a "professional scripter" (or whatever the title might be) out there in the professional world? I haven't seen such a thing yet since I'm just a beginner

  • If so, what kind of job could an scripter in an enterprise do? I get that some people might need an scrapper to get some information from a page eventually in their life but I can't see this working long-term inside a company

  • What's the standard for this kind of job? What are the most used languages/tools/etc?

I hope you can help me with this. Thank you very much in advance

submitted by /u/neogeorge
[link] [comments]
Categories: Web Development

Looking for what price is decent and someone to hire—

webdev: reddit for web developers - Fri, 03/16/2018 - 10:34

Basically, I give up.

Not 100%, but I started working on creating a blog and after working on it for a while, I just want to start posting content and I am over all of this development stuff, I am motivated about MY content. It was a fun experiment and I actually learned a LOT! (Even managed to school my coworker on how instances work even though that’s about the extent of my knowledge.) Also, I feel like I REALLY understand Wordpress which is a bonus if I’m going to be using it!

Basically here is where I am:

  • got a domain (and I linked it up to the IP)
  • AWS hosting
  • synced up Wordpress
  • changed all of that stuff to my own username

What I can’t figure out:

  • SSH tunnel — literally spent like 10 hours trying to figure it out...
  • plug-ins — But I have a list of plug ins that I want to use, apparently I will need to pay for WP for this, but I am willing to do that.

Lastly, I want to be able to upload documents to the website so people can download them (just little things like budgeting websites) and idk how to do this. This may require a call or something to learn.

I’m wondering if there is someone who can help me out and how much it will cost. There is the neighbor kid who did my friends business willing to do it all for me for $100, but he attempted to hit (not hit on, beat up) my other neighbor so I’m trying to avoid him. I can always make a username and password with admin privileges for someone to do it online... you would just need to walk me through the process to sign up for WP Business bc I would need to use my CC for that.

Also, I’m not upset with my bill, it’s literally pennies and I am looking to make an investment in this, but I was wondering if someone could explain the charges just so I have an understanding of it.

So I guess with that being said, how long do you think this will take? (Like # of hours) and how much do you think it will cost? (Willing to Venmo/PayPal/etc) Also, is this something that someone needs to be on my computer for (neighbor kid) or can it be done online?

submitted by /u/razorchick12
[link] [comments]
Categories: Web Development

Comprehensive Resources to Learn Responsive/Mobile First Development?

webdev: reddit for web developers - Fri, 03/16/2018 - 10:13

Any suggestions for books/tutorials that focus primarily on how to achieve truly responsive web applications?

submitted by /u/HoustonAg1980
[link] [comments]
Categories: Web Development

Weekly useful Drupal things to know thread

Drupal - Open Source Content Platform - Fri, 03/16/2018 - 10:08

What's a useful tip or technique or tool (or anything) that you picked up and think others should know about?

(Check out the weekly post schedule in the sidebar)

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

Theming With Variables: Globals and Locals

CSS-Tricks - Fri, 03/16/2018 - 10:04

Cliff Pyles contributed to this post.

Setting CSS variables to theme a design system can be tricky: if they are too scoped, the system will lose consistency. If they are too global, you lose granularity.

Maybe we can fix both issues. I’d like to try to boil design system variables down to two types: Global and Component variables. Global variables will give us consistency across components. Component variables will give us granularity and isolation. Let me show you how to do it by taking a fairly simple component as an example.

Heads up, I’ll be using CSS variables for this article but the concept applies to preprocessor variables as well.

Global-scoped variables

System-wide variables are general concepts defined to keep consistency across your components.

Starting with an .alert component as an example, let’s say we want to keep consistency for all of our spaces on margins and paddings. We can first define global spacers:

:root { --spacer-sm: .5rem; --spacer-md: 1rem; --spacer-lg: 2rem; }

And then use on our components:

/* Defines the btn component */ .btn { padding: var(--spacer-sm) var(--spacer-md); } /* Defines the alert component */ .alert { padding: var(--spacer-sm) var(--spacer-md); }

The main benefits of this approach are:

  • It generates a single source of truth for spacers, and a single point for the author using our system to customize it.
  • It achieves consistency since every component follows the same spacing.
  • It produces a common point of reference for designers and developers to work from. As long as the designers follow the same spacing restrictions, the translation to code is seamless.

But it also presents a few problems:

  • The system loses modularity by generating a dependency tree. Since components depend on global variables, they are no longer isolated.
  • It doesn’t allow authors to customize a single component without overwriting the CSS. For example, to change the padding of the alert without generating a system wide shift, they’d have to overwrite the alert component:
.alert { padding-left: 1rem; padding-right: 1rem; }

Chris Coyier explains the idea of theming with global variables using custom elements in this article.

Component-scoped variables

As Robin Rendle explain in his article, component variables are scoped to each module. If we generate the alert with these variables, we’d get:

.alert { --alert-color: #222; color: var(--alert-color); border-color: var(--alert-color); }

The main advantages are:

  • It creates a modular system with isolated components.
  • Authors get granular control over components without overwriting them. They’d just redefine the value of the variable.

There is no way to keep consistency across components or to make a system wide change following this method.

Let’s see how we can get the best of both worlds!

The two-tier theming system

The solution is a two-layer theming system where global variables always inform component variables. Each one of those layers follow a set of very specific rules.

First tier: Global variables

The main reason to have global variables is to maintain consistency, and they adhere to these rules:

  • They are prefixed with the word global and follow the formula --global--concept--modifier--state--PropertyCamelCase
    • a concept is something like a spacer or main-title
    • a state is something like hover, or expanded
    • a modifier is something like sm, or lg
    • and a PropertyCamelCase is something like BackgroundColor or FontSize
  • They are concepts, never tied to an element or component
    • this is wrong: --global-h1-font-size
    • this is right: --global--main-title--FontSize

For example, a global variable setup would look like:

:root { /* --global--concept--size */ --global--spacer--sm: .5rem; --global--spacer--md: 1rem; --global--spacer--lg: 2rem; /* --global--concept--PropertyCamelCase */ --global--main-title--FontSize: 2rem; --global--secondary-title--FontSize: 1.8rem; --global--body--FontSize: 1rem; /* --global--state--PropertyCamelCase */ --global--hover--BackgroundColor: #ccc; } Second tier: Component variables

The second layer is scoped to theme-able component properties and follow these rules:

  • Assuming we are writing BEM, they follow this formula: --block__element--modifier--state--PropertyCamelCase
    • The block__element--modifier the selector name is something like alert__actions or alert--primary
    • a state is something like hover or active
    • and if you are not writing BEM class names the same principles apply, just replace the block__element--modifier with your classname
  • The value of component scoped variables is always defined by a global variable
  • A component variable always has a default value as a fallback in case the component doesn’t have the dependency on the global variables

For example:

.alert { /* Component scoped variables are always defined by global variables */ --alert--Padding: var(--global--spacer--md); --alert--primary--BackgroundColor: var(--global--primary-color); --alert__title--FontSize: var(--global--secondary-title--FontSize); /* --block--PropertyCamelCase */ padding: var(--alert--Padding, 1rem); /* Sets the fallback to 1rem. */ } /* --block--state--PropertyCamelCase */ .alert--primary { background-color: var(--alert--primary--BackgroundColor, #ccc); } /* --block__element--PropertyCamelCase */ .alert__title { font-size: var(--alert__title--FontSize, 1.8rem); }

You’ll notice that we are defining locally-scoped variables with global variables. This is key for the system to work since it allows authors to theme the system as a whole. For example, if they want to change the primary color across all components they just need to redefine --global--primary-color.

On the other hand each component variable has a default value so a component can stand on its own, it doesn’t depend on anything and authors can use it in isolation.

This setup allows for consistency across components, it generates a common language between designers and developers since we can set the same global variables in Sketch as bumpers for designers, and it gives granular control to authors.

Why does this system work?

In an ideal world, we as creators of a design system, expect "authors" or users of our system to implement it without modifications, but of course, the world is not ideal and that never happens.

If we allow authors to easily theme the system without having to overwrite CSS, we’ll not only make their lives easier but also reduce the risk of breaking modules. At the end of the day, a maintainable system is a good system.

The two-tier theming system generates modular and isolated components where authors have the possibility to customize them at a global and at a component level. For example:

:root { /* Changes the secondary title size across the system */ --global--secondary-title--FontSize: 2rem; } .alert { /* Changes the padding on the alert only */ --alert--Padding: 3rem; } What values should became variables?

CSS variables open windows to the code. The more we allow authors in, the more vulnerable the system is to implementation issues.

To keep consistency, set global variables for everything except layout values; you wouldn’t want authors to break the layout. And as a general rule, I’d recommend allowing access to components for everything you are willing to give support.

For the next version of PatternFly, an open source design system I work on, we’ll allow customization for almost everything that’s not layout related: colors, spacer, typography treatment, shadows, etc.

Putting everything together

To show this concept in action I’ve created a CodePen project:

Global variables are nestled in _global-variables.scss. They are the base to keep consistency across the system and will allow the author to make global changes.

There are two components: alert and button. They are isolated and modular entities with scoped variables that allow authors to fine tune components.

Remember that authors will use our system as a dependency in their project. By letting them modify the look and feel of the system through CSS variables, we are creating a solid code base that’s easier to maintain for the creators of the system and better to implement, modify, and upgrade to authors using the system.

For example, if an author wants to:

  • change the primary color to pink across the system;
  • change the danger color to orange just on the buttons;
  • and change the padding left to 2.3rem only on the alert...

...then this is how it’s done:

:root { // Changes the primary color on both the alert and the button --global--primary--Color: hotpink; } .button { // Changes the danger color on the button only without affecting the alert --button--danger--BackgroundColor: orange; --button--danger--hover--BorderColor: darkgoldenrod; } .alert { // Changes the padding left on the alert only without affecting the button --alert--PaddingLeft: 2.3rem; }

The design system code base is intact and it’s just a better dependency to have.

I am aware that this is just one way to do it and I am sure there are other ways to successfully set up variables on a system. Please let me know what you think on the comments or send me a tweet. I’d love to hear about what you are doing and learn from it.

The post Theming With Variables: Globals and Locals appeared first on CSS-Tricks.

Categories: Web Development

My code feels dirty, and I don’t know what to do about it.

webdev: reddit for web developers - Fri, 03/16/2018 - 09:56

I am about to finish up a few month endeavor creating an Ionic mobile App, and to be completely honest with you guys, I feel dirty.

I started out with this beautiful blank canvas, and now I’ve gotten to the point where I’ve thrown best practices out the window, created little hacks for things to work, and now every time I look at my code, I dream about a day that I can refactor it into its best and truest form. Right now it works, but I want it to work well, and that’s why I’m posting, because I have no clue how to get to that point.

I created the code I have today, because it was the best code I could do given my circumstances at the time, so how do I go about refactoring an entire project from start to finish?

What kind of tips and tricks do you guys have about this?

submitted by /u/WebDevLikeNoOther
[link] [comments]
Categories: Web Development

Does this require any server-side code?

webdev: reddit for web developers - Fri, 03/16/2018 - 09:53

I want to write a web app for work that can pull data from our API, however, to receive an API token you must provide your username & PW. Is there any way I can receive this information and send from a user and get them to "log in" so they can use my app to retrieve data from my company's API without any server-side code?

Obviously, all of this information login credentials and API token would need to stay hidden.

submitted by /u/aviato23
[link] [comments]
Categories: Web Development

Favourite free learning resources at an intermediate/ advanced level

webdev: reddit for web developers - Fri, 03/16/2018 - 09:39

Currently at work I am doing a really mundane task for the next few weeks and want to optimise my time by listening/ watching tutorials on my iPad.

I am an intern at a web dev agency and have a fairly good grasp of the technologies. I’m interested in increasing my skills and looking to new stable tech.

One thing I really struggle with is how to style a site when looking at awesome designs from dribble etc (example this or this )

Topics of interest: - web design - advanced css - advanced JavaScript. I am fairly familiar with vuejs framework - data visualisation. How to build and style custom charts - modern php. I can write procedural code. - php frameworks
- progressive web apps - qraphQL

submitted by /u/BackpackerSimon
[link] [comments]
Categories: Web Development

I live in a small town, worried about job prospects.

webdev: reddit for web developers - Fri, 03/16/2018 - 09:32

We don't have a lot in terms of big business or tech; we're a dying factory town. Wife is unwilling to move away from her family. How common are remote jobs in this industry? What are people's experience with remote work? Do you feel like part of the team/company? Get enough support?

submitted by /u/FidgetFoo
[link] [comments]
Categories: Web Development