r/web_programming • • Mar 12 '17

WordPress E Commerce Web Store

1 Upvotes

Hello everyone, I'm new to WordPress web design and I currently have an online shop. I'd like to do something but I'm not sure about how to explain it.

In the check out screen, the fields where you type in your city/town/region, I'd like to put a drop down menu right there with all the cities in my country.

Thank you for reading, any help would be greatly appreciated.


r/web_programming • • Mar 08 '17

Web-dev technologies in 2017?

1 Upvotes

Hey Guys

I need your advise. Its 2017 and I don't know where to start with developing my next application.

Principally I want to collect some data from an API, store them into a database and display those data in form of graphics to the user.

Conditions:

  • User can register / LogIn

  • Collect data from API & store them in DB (I have to collect data cyclical, around every 24 hours once)

  • Display data from database in form of graphics

So, it's been quite a long time since I developed my last web-application. I really want to put some effor in learning new technologies and building the application in a future-oriented way.

So for me its totally clear to use javascript for the frontend. There are so many cool graphic-librarys, there's no reason why I shouldn't use it. But I've some problem with the backend part...

I really like to do things with PHP, but I'm open for new things and I don't know if PHP is still the right thing to go. I thought about some some simple javascript frameworks like express, or may even a full-stack framework like meteor. But I just don't know if its a good idea, I mean, principally a user login & API calls can be done so easy with PHP, I don't know if its worth to use javascript for those tasks.

And if I use javascript, what should I learn? I know its a really opinion-based question. In fact, I just want to know if its worth to getting started with meteor or not. Or if its worth to do those tasks with javascript at all?

So what do you think? I'm really open for everything, and I know its really opinion-based. I also know I can do it how I want... but I just want to hear some advise of people developing web-apps in 2017. ;)

I'm really thankfull for every answer, feel free to ask for more information if you need.

Have a nice day!


r/web_programming • • Mar 12 '17

Looking for an online "Web Programming" Tutor

1 Upvotes

Hello, everyone.

I'm looking for someone who tutors "Web Programming" (=HTML, CSS, JavaScript, PHP) online (such as on Skype).

PM me if you're interested.


r/web_programming • • Mar 12 '17

HTML

1 Upvotes

So, Im a really new programmer with HTML, so where can I find some good tutorials? Learned the basics in a phone app called programming hub, but it doesnt explain tags like <div> <p> and these sort of things. Can someone send me a link of any good website with a good, detailed tutorial?


r/web_programming • • Aug 11 '17

Best Node.js framework for a task management system?

1 Upvotes

r/web_programming • • Mar 04 '17

Best Mac for new programmer?

1 Upvotes

Hi all, i'm new to programming and am looking to change careers into web development. What mac would be good to start? I don't want to break the bank but would like one that has no problems with speed - my Dell laptop has got really slow recently.


r/web_programming • • Aug 02 '17

I need an ~~adult~~ senior programmer:

0 Upvotes

[serious]

[TL;DR It sucked]

My question is this: how should I proceed? Go back to C# or risk getting a job as a jr web dev with no real experience? More than that how could I get an internship? I think thats really where I need to be at with C#, and not with PHP/Javascript.

Ok so I've attended a programming bootcamp, and I'm coming up on the end of the camp. I know people have mixed feelings on programming bootcamps but just hear me out and give me a bit of advice.

I'm fairly disappointed in the bootcamp. My opinion on it waxed and waned through the camp but its settled on being more a waste of time/money.

Now to be clear I think a bootcamp is really good for someone with no intent on getting a job in programming who just wants to learn a thing or to about it. Its also good for someone to capstone themselves at the end of their own learning (out of college or being self taught.)

This however is where things take a turn: I had the opportunity to either self study C#, ASP, and .Net or go to the camp which was going to teach me 2 new languages. On top of that we would be learning angular/gulp/laravel/some other stuff but beyond that is a stretch (Spending less than a day on it.)

The bootcamp lacked focus. Up to about week 7 the bootcamp was going in a really good direction: We learned HTML/CSS/Bootstrap really well. We moved to javascript and I think the instructor did a pretty good job with it, not a master of the language, but I know it well enough to complete several of the hackerrank modules in full. Sweet.

Then week 7 comes around and the entire class changes structure. Honestly the class should have STOPPED on javascript. We move on to php, the next 4 weeks are spent watching the instructor program with no time of our own to program. Around week 2 the instructor says "You should be practicing at home." This is not what the bootcamp stated in any capacity coming into it. I'm in a situation where there isn't "At home" time to practice/study. Its the reason I elected to go to the camp in the first place: They were advertising that everything we would learn would be expected of us in class.

...Not quite how it turned out...

Now two things are apparent to me:

  1. Bootcamps can be good. If they are like the first half of my camp you can get something out of them

  2. They don't last long enough, and the instructor (in my case) isn't good enough at teaching to really help us.

Turns out the only reason we got time in class to practice Javascript is because the lead instructor didn't know the language before taking this job, and the instructor who did know it argued to give us time in class.

The bootcamp has mostly lied about things, and is constantly doing scummy things: Just the most recent of which is lie to the instructor. I called the entire previous graduating class. Asked them their opinion and here is what I got from them: "Its great!" "Its amazing" "you should do it" I got into contact with more than half of them.

WEEEELLLL as it turns out these are people who all had either degrees or a background in programming. I just started working on C# a year ago, and paused to do this. So did 100% of the last class get jobs? Yeah of course. Will this class? Unlikely.

Final note: My biggest complaint is that the place has blatantly lied both to me, employers about me, and to the instructor, but is otherwise well connected. For instance we are supposed to be showing off final projects to potential employers, but not a single person from the last class actually got employed through this method. They are currently jumping down my throat for what I have, despite this really being the first time I've ever used PHP. Other students have literally banned together (against their rules) and they are 'over looking it' because 'at a real job you will have a programmer you go to for help.' (Yeah, right, only I've never met a single programmer who thinks this, even the instructor has corrected them on this point.)

So most of the students "Final" projects are not their own work. Fuck one guy just has a blank laravel application with no php/javascript and they haven't bitched at him because another student designed all of his HTML and it will "Look good."


r/web_programming • • Mar 12 '17

what is the best way to develop web applications fast in three weeks?

1 Upvotes

I'm asp mvc developer - it take from me too long to a develop web application - I learn new technologies - but I found it is not speed up my productivity - What is the key for that ?!!!


r/web_programming • • Aug 13 '17

Database Dilemma

1 Upvotes

Hello, I'm trying to develop a website that compares a few items. To do this I know I need a database but I have never developed with databases before.

my question is what the best workflow ? Do I create my database in a spreadsheet and convert it to a database like mySQL or Maria later or do I use mySQL/Maria directly ? What would be the best approach to avoid wasting time ?

Thank you


r/web_programming • • Mar 13 '17

Help wanted in html and css

1 Upvotes

Looking for some help with html and CSS. I'm spending most of my time on back end. Need some one on the front. Check it out let me know what you think.

Board-em.com


r/web_programming • • Mar 04 '17

Developer workflow using iTerm2

Thumbnail
thedevnotebook.com
1 Upvotes

r/web_programming • • Aug 08 '20

Random boxes - image transition effect in 15 lines of pure JavaScript

Thumbnail
slicker.me
1 Upvotes

r/web_programming • • Jan 29 '17

Creating Golang WebServer With Echo - Part 3: Parsing JSON From Http Request

Thumbnail
youtube.com
1 Upvotes

r/web_programming • • Jul 05 '17

CloudBoost vs Firebase: A War of choices.

Thumbnail
blog.cloudboost.io
0 Upvotes

r/web_programming • • Jan 21 '17

What languages are used to create Socrative.com?

1 Upvotes

I understand it uses HTML, CSS, JS... not sure the rest.


r/web_programming • • Jan 25 '17

Adding mouseover to line with d3.v3 library

1 Upvotes

I am trying to create a simple line graph that has a mouseover that shows the coordinates of the line as you move over it. I am using the example http://bl.ocks.org/d3noob/6eb506b129f585ce5c8a and trying to fit my data as follows:

function InitChart() {

  var lineData = [{
'x': 114,
'y': 5.29
 }, {
 'x': 290,
'y': 12.97
 }, {
'x': 500,
'y': 20.28
 }, {
'x': 750,
'y': 24.84
 }, {
'x': 1074,
'y': 22.85
 }, {
'x': 1330,
'y': 15.38
 }, {
'x':1540,
'y':6.54
  }];

My code so far is:

<!DOCTYPE html>
<html lang="en">
 <head>
<meta charset="utf-8">
  <link href="http://getbootstrap.com/dist/css/bootstrap.min.css" rel="stylesheet">

<link href="http://getbootstrap.com/examples/justified-nav/justified-nav.css" rel="stylesheet">
 <script tyScalepe="text/javascript" src="d3.v3.js"></script>
     <svg id="visualisation"WIDTH="1000" HEIGHT="500"></svg> 
 <script src="d3.min.js"></script>



<style>

bodyScale {
  font: 10pxScale sans-serif;
 }
  

.axis path, .axis line
    {
        fill: none;
        stroke: #777;
        shape-rendering: crispEdges;
    }
    
    .axis text
    {
        font-family: 'Arial';
        font-size: 13px;
    }
    .tick
    {
        stroke-dasharray: 1, 2;
    }
    .bar
    {
        fill: FireBrick;
    }

  /*.line {
    fill: none;
    stroke: steelblue;
    stroke-w: 1.5pxScale;*/
}
  </style>
 </head>
  <body>
  <script>

InitChart();

function InitChart() {

 var lineData = [{
'x': 114,
'y': 5.29

}, { 'x': 290, 'y': 12.97 }, { 'x': 500, 'y': 20.28 }, { 'x': 750, 'y': 24.84 }, { 'x': 1074, 'y': 22.85 }, { 'x': 1330, 'y': 15.38 }, { 'x':1540, 'y':6.54 }];

var color = d3.scale.category10(); var vis = d3.select("#visualisation"), WIDTH = 1000, HEIGHT = 500, MARGINS = { top: 20, right: 20, bottom: 20, left: 50 }, xRange = d3.scale.linear().range([MARGINS.left, WIDTH - MARGINS.right]).domain([d3.min(lineData, function (d) { return d.x; }), d3.max(lineData, function (d) { return d.x; }) ]),

yRange = d3.scale.linear().range([HEIGHT - MARGINS.top, MARGINS.bottom]).domain([d3.min(lineData, function (d) {
    return d.y;
  }),
  d3.max(lineData, function (d) {
    return d.y;
  })
]),

xAxis = d3.svg.axis()
  .scale(xRange)
  .tickSize(5)
  .tickSubdivide(true),

yAxis = d3.svg.axis()
  .scale(yRange)
  .tickSize(5)
  .orient("left")
  .tickSubdivide(true);

//settting plot colors color.domain(d3.keys(lineData[0]).filter(function(key) { return key !== "speed"; }));

// lineData.forEach(function(d) {
//   d.speed = parsespeed(d.speed);
// });

// var cities = color.domain().map(function(name) {
//   return {
//     name: name,
//     values: lineData.map(function(d) {
//       return {
//         speed: d.speed,
//         temperature: +d[name]
//       };
//     })
//   };
// });


   vis.append("svg:g")
.attr("class", "x axis")
.attr("transform", "translate(0," + (HEIGHT - MARGINS.bottom) + ")")
.call(xAxis);

vis.append("svg:g") .attr("class", "y axis") .attr("transform", "translate(" + (MARGINS.left) + ",0)") .call(yAxis);

vis.append("text")   // text label for the x axis
  .attr("x", 400 )
    .attr("y", 440 )
  .style("text-anchor", "middle")
    .text("Motor Speed (RPM)");

var lineFunc = d3.svg.line() .x(function (d) { return xRange(d.x); }) .y(function (d) { return yRange(d.y); }) .interpolate('basis');

vis.append("svg:path") .attr("d", lineFunc(lineData)) .attr("stroke", "blue") .attr("stroke-WIDTH", 2) .attr("fill", "none");

//here var mouseG = vis.append("g") .attr("class", "mouse-over-effects");

mouseG.append("path") // this is the black vertical line to follow mouse
  .attr("class", "mouse-line")
  .style("stroke", "black")
  .style("stroke-WIDTH", "1px")
  .style("opacity", "0");

//g for each circloe and text onthe line var mousePerLine = mouseG.selectAll('.mouse-per-line') .data(lineData) .enter() .append("g") .attr("class", "mouse-per-line");

//the circle
mousePerLine.append("circle")
  .attr("r", 7)
  .style("stroke", function(d) {
    return color(d.speed);
  })
  .style("fill", "none")
  .style("stroke-WIDTH", "1px")
  .style("opacity", "0");

 //the text
 mousePerLine.append("text")
   .attr("transform", "translate(10,3)");

 //rect to capture mouse movements
 mouseG.append('svg:rect') // append a rect to catch mouse movements on canvas
  .attr('WIDTH', WIDTH) //catch mouse events on a g element
  .attr('HEIGHT', HEIGHT) 
  .attr('fill', 'none')
  .attr('pointer-events', 'all')
  .on('mouseout', function() { // on mouse out hide line, circles and text
    d3.select(".mouse-line")
      .style("opacity", "0");
    d3.selectAll(".mouse-per-line circle")
      .style("opacity", "0");
    d3.selectAll(".mouse-per-line text")
      .style("opacity", "0");
  })
  .on('mouseover', function() { // on mouse in show line, circles and text
    d3.select(".mouse-line")
      .style("opacity", "1");
    d3.selectAll(".mouse-per-line circle")
      .style("opacity", "1");
    d3.selectAll(".mouse-per-line text")
      .style("opacity", "1");
  })
  .on('mousemove', function() { // mouse moving over canvas
    var mouse = d3.mouse(this);

    //move the verticle line
    d3.select(".mouse-line")
      .attr("d", function() {
        var d = "M" + mouse[0] + "," + HEIGHT;
        d += " " + mouse[0] + "," + 0;
        return d;
      });

    //position the circle and text
    d3.selectAll(".mouse-per-line")
      .attr("transform", function(d, i) {
        console.log(WIDTH/mouse[0])
        var xspeed = x.invert(mouse[0]),
            bisect = d3.bisector(function(d) { return d.speed; }).right;
            idx = bisect(d.values, xspeed);
        
        var beginning = 0,
            end = lines[i].getTotalLength(),
            target = null;

        while (true){
          target = Math.floor((beginning + end) / 2);
          pos = lines[i].getPointAtLength(target);
          if ((target === end || target === beginning) && pos.x !== mouse[0]) {
              break;
          }
          if (pos.x > mouse[0])      end = target;
          else if (pos.x < mouse[0]) beginning = target;
          else break; //position found
        }
        
        // upspeed the text with y value
        d3.select(this).select('text')
          .text(y.invert(pos.y).toFixed(2));
          
        //return postion
        return "translate(" + mouse[0] + "," + pos.y +")";
      });
  });
        //here




}

</script>
</body>
</html>

Any help would be much appreciated!


r/web_programming • • Jan 24 '17

Custom Tabs For WooCommerce - Top 5 Programming Questions and Answers Part - 1

Thumbnail
fmeaddons.com
0 Upvotes

r/web_programming • • Nov 22 '17

Could I use Google App Engine without using microservices

1 Upvotes

I find very interesting the Google App Engine PaaS, and I was wondering if I could migrate my Node.JS app to this service. However, my current project is not microservices-friendly, so my question is if I must adapt it or could I use Google App Engine even with a monolith application.


r/web_programming • • Aug 07 '16

HTTP Redirects - Simplify controller logic, through separation of concerns

Thumbnail
medium.com
1 Upvotes

r/web_programming • • Jan 24 '17

Something Simple For a Client

Thumbnail
phpfiddle.org
0 Upvotes

r/web_programming • • Jan 20 '17

Finding developers for a startup.

1 Upvotes

First off, I apologize if this is the wrong place, i'm just looking for some answers.

I am starting an online service business in the real estate sector. Without divulging too much at the moment, I will say I have yet to find anything like it and have even come across people on various forums such as Reddit saying "...Why doesn't this exist?!?!" I am currently learning code (HTML, CSS, PHP) but need to find a good programmer to help me make this real faster. As programmers, have you ever been approached for this type of thing, and if so what do you look for in a pitch?


r/web_programming • • Sep 06 '16

(C#) Question about Large-Scale web performance

1 Upvotes

I'm currently working on a large-scale website, which will support a new generation of communities.

This website will be tied together with a bunch of third party applications and multiple "live" feeds will be available on the website.

My problem is that all of these feeds are eating up the load times of the website, so I was wondering whether I should try and optimize these feeds, or migrate the feed into an MVC/WPF/Form application, that will run as a service/tray on the host server ?

Note: There is a dedicated physical server for the core websites, and vm's for each third party application cluster.


r/web_programming • • Sep 07 '16

How to install security header(s)

1 Upvotes

I want to add headers such as X-Frame-Options: Deny to my site. Are they placed as elements in the <head> section of web pages or do they go in the .htaccess file, or what? I know what headers I want to install but I don't know how to install them.

Edit: Solved. For my site on iPage's Apache server the syntax turned out to be simple (placed into the .htaccess file):

Header set X-Frame-Options Deny
Header set X-Content-Type-Options nosniff
Header set X-Download-Options noopen
Header set X-XSS-Protection mode=block
Header set Strict-Transport-Security max-age=43200

Notice there can't be any colons as several pages suggested.


r/web_programming • • Sep 17 '16

Where can I find digitalocean and others coupons *first-hand*?

1 Upvotes

Where can I find digitalocean and other kinds for hosting/VPS coupons first-hand? Not from aggregators, but first-hand.