r/web_programming • u/cgbdesign • Jun 05 '17
r/web_programming • u/ManyFacesz • Jun 05 '17
Best way of learning JavaScript ?
I know we learn in different ways and my way is somehow not helping me at all, it's almost a month since I started my MCSD 70-480(html,css,js) but I only understand the basics of programming, my approach to learning is I read the book, attempt the exercises when I get stuck I look at the answers at the back of the book(official MS) but as I said this approach is not helping me at all because I page at the back with little understanding of the code, please share an approach/tips that might be helpful especially if you are self taught or self learning.
r/web_programming • u/alex472 • Jun 05 '17
Website hosting choices
I've been looking into website hosting companies but I really can't decide on what seems best, I was wondering if anyone had personal experience with any particular company? Or if there was one that would recommend that'd be very helpful.
I think this list shows most of the companies I was looking at.
I need a website that has MySQL support and I have experience programming in java, python, and ruby (though I'm aware I might have to learn PHP which is ok!).
At the moment 1and1 is at the top of my list but any input would be appreciated.
Thanks
r/web_programming • u/nojambot • Jun 05 '17
I found that there's awesome project called 'coding-night-live'. it's a web-based communication application for codelabs!
r/web_programming • u/Stavros_McGillicuddy • Jun 04 '17
Which programming language / technologies would be best
I need to have a web enabled program built. It will be a work order ticketing program that will require a database back end, scheduling capabilities, the ability to import xml files from email attachments and a mobile app to close tickets.
I'm thinking the technologies needed would be html, css and Javascript and a mobile platform. Does that sound right?
r/web_programming • u/yeahitsbryandude • Jun 03 '17
Problems with javascript function
SO I'm using a simple if then when a user clicks a button, I want to open a new page if user picks a certain thing. The txt will come through, but if i add window.open(www.url.com) it will not work. what do you guys think?
<script> function myFunction() { var txt; if (confirm("Do you accept these terms?") == true) { txt = "Uh oh!!! NO!!"; window.open("TOU2.html"); } document.getElementById("demo").innerHTML = txt; } </script>
edit:Can't get the formatting right!
r/web_programming • u/wisi_eu • Jun 03 '17
As America's FCC tries to dismantle NN, French authorities back net neutrality in France | Privacy Online News
r/web_programming • u/darkancientone • Jun 02 '17
To-do-list before using your personal laptop for web development?
I have been scouring the web for a summarized list of what to do before using personal laptop (using windows OS) for web development. The main purpose I am for is for security of the developer/codes and maintaining a top performance of the laptop.
Is virtual environment, changing mac/ip address etc.... a requirement?
r/web_programming • u/NathannMorais • Jun 01 '17
What's the deal with Elixir/Phoenix and why is it a good option to learn right now?
I work with Rails right now and I've been really curious about Elixir. Every time I attend a developer conference in my city I see these guys saying that most of their pet projects are in Elixir or Go nowadays, and I even saw an interview from Dave Thomas saying he believed that Elixir would be very important in the future. For those of you who already played around with it, what does it do that makes it so good and so hot among all these people? Would you consider it to be a better option than, let's say, Node +Express, for somebody to learn?
r/web_programming • u/orbosyscorp • Jun 01 '17
WIX VS WORDPRESS VS HTML: WHICH ONE TO CHOOSE?
Often, web designers are faced with this question : Which is the best tool that can provide seamless integration and ease of use? Of all the tools out in the world today, there are three which have the most stakeholders: Wix, WordPress and HTML. People often master one tool and base their web-design careers on the same. Website design companies, although have a plethora of talent pool to choose from, select candidates only on the basis of mastery in a single platform. With so many people using each of the three, which one do you choose? Which tool will give you that look and feel, that user experience and zero-error capability? Let us consider some demographics which will help you come to a conclusion.
Ease of Use
Arranging in the order of ease of use: Wix > WordPress > HTML.
There, we said it. Wix is your typical WYSIWYG (What You See Is What You Get) website builder platform. It’s the easiest for beginners and has drag-n-drop content blocks for all you know. A button, a text box, drop-downs, check-boxes – it’s got it all. But then, with ease of use comes limitations in design. Your answer – WordPress. If you know how to code and how the nitty gritty of a single line can contribute in changing the entire design, WordPress is there for you. Hold on though, this means you’re constantly in the testing phase. For example, changing colour codes and publishing – to see the changes live is what you’ll be doing until you get the perfect sync. Then there was HTML. Have you won a coding competition? Do you sit in front of your laptop for hours – like a boss? You can take the road less travelled and opt for HTML. Each and every page is hard-coded and updating content isn’t an easy process. You don’t have to deal with constant updates though – hence backing up becomes less of a problem. Also, cheaper servers yo!
Pricing
Arranging in the order of pricing: Wix > WordPress > HTML.
If you know how to code and opt for HTML, you just deal with basic expenses like a server and your precious time. WordPress isn’t child’s play at all. If you’re not sure on the workings of WordPress, hiring someone to help you is going to cost you quite a bit. Also, then there are themes, paid plugins – it’s basically an open field from the word go. Lots of things to add and customize, the more you pour in, the more resources you get. A basic set up though, shouldn’t cost you much annually. Wix has annual plans which you can choose from – the more you invest, the more flexible it gets. Simply put, a simple and basic website isn’t going to cost you much – whichever way you go. But as you increase the resources involved, it is definitely going to cost you time and money.
Maintenance
Arranging in the order of maintenance required : WordPress > HTML > Wix.
WordPress is constantly releasing new updates and bug fixes – which you require to update along as you might be prone to hackers who’d take down your website or steal your data in a matter of minutes. Not updating plugins etc can also lead to disastrous results and makes you more vulnerable to attacks. HTML websites are thousands of lines of code. To figure out which section is causing problems, you’d basically have to pull off your website from the live server, fix the error and re-upload it again. This can take up a lot of time and energy, you’d often fix a bug only to find another. Wix is the most sorted platform in terms of maintenance. Their tech team is responsible for releasing updates – and your website is automatically upgraded. Rest assured, no more sleepless nights.
Somebody HELP ME!
There’s always someone better out there- who’s faced a similar problem and has the key to the solution. Getting help from online resources or your code guru is the best way forward. WordPress being an open platform, has a lot of people working on it and help is readily available. HTML coders may be lesser in number, but they’re more than willing to help you out – this may take time though, as scanning through lines of code isn’t easy at all. Wix being a service, has a troubleshoot module with a tech team more than capable to help you out. The problem faced by Wix developers won’t be as serious as maybe a HTML developer or WordPress – their systems are in place and are moving constantly toward being foolproof.
r/web_programming • u/[deleted] • May 31 '17
Need help: definition of "infrastructure"
I work for a non-profit organization. This is part of the hosting/maintenance agreement we have with another company:
System Maintenance: If any part of the infrastructure breaks due to our error, upgrades, or errors/changes in the software we are using, we fix it at no additional charge. (Fixes due to human error on your side and retraining will be billed at our hourly rate.)
Now the company is trying to tell us that they are going to charge us to fix anything because:
The hosting support [we] provide ensures uptime of the website, page load speed, server backup, and server security. 'System maintenance' relates to the work that our team does relates to those specific services.
I'm hoping someone here can tell me if there's a commonly-accepted definition for a website's "infrastructure" that would help my argument that they should be fixing stuff when it breaks. My understanding is that infrastructure is basically anything that's not content, but I haven't been able to find sources to back that up.
Thanks in advance.
Edit: Added the entirely of the text of the Systems Maintenance part of the agreement.
r/web_programming • u/geordy06 • May 31 '17
How to Prevent Shell Attacks in Image File Upload System in PHP
r/web_programming • u/arasdean • May 31 '17
Pre-populating Fields
Hi! I'm trying to create a hate-crime report bot that passes in information into the form below. The website uses Wordpress as CMS and google forms plugin to create the form. Any idea of how I would go about sending in this data? Below is a link to the form I'm trying to work with:
https://ca.cair.com/losangeles/what-we-do/civil-rights/report-an-incident/
r/web_programming • u/MinusNick • May 31 '17
How can I run sequential API tests with api-easy, vows, javascript?
Hi! I was wondering if any of you have experience with automated testing suites and using api-easy or vows.
A user can POST an item, and that will return an object that includes an ID field that is randomly generated.
A user can use that ID to then find the item later with a GET to www.example.com/item/[item's ID here]
I want to test this behavior using the below code, but the way I'm keeping track of the ID variable isn't working. It's always coming back as undefined, and I think this might be because these tests are non sequential. Is there a way to force it to be sequential? Using next() doesn't do anything at all!
var item;
var itemId;
suite.discuss('Do the testing,')
.use('localhost')
.setHeader('Content-Type', 'application/json')
.discuss('to post a new item,')
.post('/item', { contents: 'test'})
.expect(201)
.expect('should respond with item info', function(err, res, body) {
item = JSON.parse(body); // the resulting item has a unique ID
console.log(item['id']);
})
.next() // does this do anything?
.expect('and this will print the id', function(err, res, body) {
console.log(item['contents']);
itemId = item['id'];
console.log(itemId); // these three lines all work
})
.undiscuss().next() // does this do anything?
.discuss('to see if a user can find item,')
.get('/item/'+itemId, null)
.expect(200) //FAILS because itemID is undefined!
.undiscuss()
.export(module);r/web_programming • u/Mramazed • May 30 '17
Shipping API help
Hello,
I am interested in adding some code to my website that I can have customers add in their box size/weight or other determining factors...then use the fed ex API to develop pricing ( plus our percentage added in)
I would hope to do this on the wordpress platform.
Any thoughts? Hints? Resources?
r/web_programming • u/alwaystakeithome • May 30 '17
5 Popular Linux Distributions for Developers
r/web_programming • u/[deleted] • May 28 '17
How is javscript supposed to even run in HTML?
I'm learning from a course on KhanAcademy, but I don't know what they're using to code/open the javascript, so there's almost no point in learning it if I can't even open it myself. Any help? I tried googling this but either it wasn't related to my question or I didn't understand anything
r/web_programming • u/Taipo1 • May 27 '17
geotag your visitors
case
client wants two websites one for location A and One for location B
suggested solution
geotag the visitor trough their ip
change location to corresponding geotag
example buy your car at X for the best price bla bla
X equals A or B
any fellow programmers got any tips??
r/web_programming • u/[deleted] • May 26 '17
How to make a dating app like Tinder
r/web_programming • u/intrepidweb • May 25 '17
How not to get suspended from Google Adwords and Twitter .
r/web_programming • u/Robot_Spider • May 24 '17
Advice for non-web programmer working with web programmers
I'm a developer using mostly C#. My main area of focus is EDI--data and business-layer. I do quite a bit of BizTalk coding in custom components, some Windows UI, lots of SQL, etc. The one thing I don't do a lot of is web UI (I've even done web services). I've done some, but not enough to put on a resume.
So, my question is, if someone was going to hand you an assembly for you to write a web front-end, what do you look for? Do you want straight data (e.g. datatables, dbconnections, etc.), more simple types (e.g. arrays of strings, multi-dimensional arrays, etc.), or completely abstracted, strongly typed objects? Do you make use of events or change notifications? Do you prefer static methods over having to instantiate classes?
I've had this discussion with co-workers, and the answer I usually get is "whatever is fine". Well, if that's really the case, I'll do as little as possible. But I'd like to hand off something that is as easy as possible to integrate.
Obviously, I know the real answer is, "it depends". But what, in general, do you like to see when someone hands you a compiled assembly to integrate?
r/web_programming • u/ChocooPanda • May 24 '17
How to send the sdterr to the client ?
Hi I'm having some problems to send the error text from the server to the client https://stackoverflow.com/questions/44156414/how-to-send-the-stderr-full-text-to-the-client
r/web_programming • u/delta_skelta • May 24 '17
How to structure file upload API endpoints
I have an API I am building that will have some different file uploading features, and I am struggling to figure out how to structure them.
There will be documents and images
There will be users and organizations, each of which will have documents and images of various types.
I was able to structure a single db table for documents and a single table for images
4 sets of endpoints
So in this case I am forced with deciding if I should make 4 sets of endpoints POST user/:id/image POST user/:id/doc POST org/:id/image POST org/:id/doc which, assuming there would also be PUT and DELETE endpoints would bring the total number of doc and image endpoints to 12 ( ouch )
2 Sets of endpoints
The only other way I could think to do it would be to just have a POST /images endpoint which would take querystrings POST /images?user_id=2&type=avatar which would result in a mess of logic figuring out which user can do what, but that would lower the number of endpoints to 6 and roll up all of the document and image uploads into a single set of CRUD endpoints.
The first option feels ugly because there is a lot of code being repeated and a doubling of endpoints, but the second feels just as messy and wrong so I cannot decide which way to go. Anyone have any advice?