[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

/wdg/ Web Development General

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 325
Thread images: 30

File: 1496845010511.png (731KB, 824x553px) Image search: [Google]
1496845010511.png
731KB, 824x553px
memes will never make you happy

>old thread
>>61124523

>Discord / IRC
https://discord.gg/wdg
#/g/wdg @ irc.rizon.net
Web client: https://www.rizon.net/chat

>Getting started
Get a good understanding of HTML, CSS and JavaScript.
Everything you learn will have these as their base.
The Mozilla Developer Network offers a good intro (no matter your browser choice)
https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web

>Online courses
https://www.codecademy.com/
https://www.freecodecamp.com/
https://www.bento.io/

>Further reading/viewing
https://www.youtube.com/watch?v=sBzRwzY7G-k
https://github.com/kamranahmedse/developer-roadmap
https://github.com/getify/You-Dont-Know-JS
https://github.com/vhf/free-programming-books/blob/master/free-programming-books.md

>Code challenges
https://www.codewars.com/
https://www.hackerrank.com/
https://codefights.com/

>Useful resources
https://developer.mozilla.org/en-US/docs/Web - General documentation for HTML, CSS & JavaScript
https://libraries.io/ - Discover and keep track of open source libraries, modules and frameworks
https://stackoverflow.com/ - Developers asking questions and helping each other
http://www.programmableweb.com/ - List of public APIs
https://caniuse.com/ - Check browser support for front-end web technologies

>Useful Youtube channels
https://www.youtube.com/derekbanas
https://www.youtube.com/learncodeacademy - codecademy
https://www.youtube.com/channel/UCO1cgjhGzsSYb1rsB4bFe4Q - funfunfunction
https://www.youtube.com/user/TechGuyWeb - Traversy Media
https://www.youtube.com/channel/UC8butISFwT-Wl7EV0hUK0BQ - freeCodeCamp
https://www.youtube.com/user/shiffman - coding train

>cheap VPS hosting in most western locations
https://www.digitalocean.com/
https://www.vultr.com/
https://www.linode.com/
https://www.scaleway.com/
https://www.heroku.com/

an in-depth comparison of hosts
https://www.webstack.de/blog/e/cloud-hosting-provider-comparison-2017/
>>
First for PHP
>>
Second for getting rid of css and using tables and images instead
>>
>>61174914
I'd love to be 13 again but that's not a thing I miss from these times
>>
what are some high-tier udemy courses

i wanna do full stack
>>
File: 1468183283860.png (45KB, 596x658px) Image search: [Google]
1468183283860.png
45KB, 596x658px
To the anon on the last thread who asked how much I paid for my Udemy course on webdev:

I got it on sale for $10. Really happy about that.

As soon as I finish my Google Analytics certification, my SEO training and my SalesForce cert, I'm gonna get cracking on this webdev thing

Question for you anons: What are some alternative trackers/analytics tools that someone like me (I'm working to be a full stack Marketer) can use instead of GA?
>>
>>61175188
>tools that someone like me (I'm working to be a full stack Marketer) can use
Maybe a gun?
>>
File: 1476391878777.jpg (43KB, 701x695px) Image search: [Google]
1476391878777.jpg
43KB, 701x695px
>>61175322
That's how I get clients to begin with tho
>>
>>61175188
which one did you get bro
>>
>>61175362
This one: https://www.udemy.com/the-web-developer-bootcamp/learn/v4/overview

I got it because I am a complete noob in the world of webdev, and have 0 programming skills. I was told this was a really good one, plus it gives a cert. It looks like the price has even gone up about $5 since I bought it.

My ultimate goal is to be able to setup website, manage the data and design content.
>>
hello webdev
>>
File: web.png (17KB, 691x539px) Image search: [Google]
web.png
17KB, 691x539px
Post data isn't being sent from my ajax script to a php file.

Nothing prints out. The entry data, which is set to $id's value, is not being sent at all. After testing it a bit, I'm 100% confidant that the url is okay, so incorrect paths aren't an issue.

pic related is the code
>>
>>61175188
GA is pretty much standard if you don't have a really high traffic website or one heavy on content. Piwik is another free solution however it is pretty limited
>>
>>61175528
remember that the .js is executed in the user's web browser.
"../php/refresh.php" is not a url https://en.wikipedia.org/wiki/URL
>>
What's the best Git interface for Windows 10? I have a little website on Namecheap and I'd like to set up version control.
>>
File: 5b0.jpg (47KB, 500x483px) Image search: [Google]
5b0.jpg
47KB, 500x483px
Would you guys be interested in watching me stream building a large SAAS application in node/react/redux and a bunch of server tech shit?
>>
>>61175648
gitkraken is nice
>>
File: 121ada6-elixir.png (76KB, 800x600px) Image search: [Google]
121ada6-elixir.png
76KB, 800x600px
I want to get into full-stack a little, but backend technologies seems overall like slow limited crap. Mainly Node and Ruby so slow. Then I was introduced to this beauty and it really seems like superior choice and actually performs better. Am I in beginner's euphoria here? Actually worth to learn?
>>
>>61177123
elixir is very nice, although it isn't really faster than node. that doesn't make it slow because I have no idea what basis do you have for the claim that node is "so slow".
elixir with phoenix would probably be my favourite thing for fullstack if java/kotlin with spring weren't so perfect. also there are very few jobs in elixir, at least in my city (one job posting site sample: 2 for "elixir", 88 for "java spring", 85 for "php", 66 for "asp.net", 3 for "rails", 6 for "django")
>>
File: vue.png (4KB, 400x400px) Image search: [Google]
vue.png
4KB, 400x400px
Have you accepted Vue.js as your lord and savior?
>>
>>61174892
Hey, OP, throw codility in with the challenges
>>
>>61175714
there are programmers who stream themselves on twitch
>>
>>61177935
>>61177935
One thing I like about vue.js is it has it's own official router. Install it, set the route paths, and you're all set.

React.js doesn't have an official router. Only bullshit third-party routers that keeps on breaking changes on every update. I've spent the last 2 days refactoring react-router v3 to v4 and its frustrating. Seems like react-router developers are just trolling on each version release. Know of any good routers for react that isn't full of shit?
>>
>>61174892
I'm very, very new to web development.

I have a simple, static website.

I would like to add a simple, basic contact form.

I do not want to use a third-party service like Formspree.

I am ambivalent about it using HTTP like Mailgun or SMTP like Gmail.

I would prefer it be implemented in Node.js, but Python would be ok too.

Suggestions?
>>
File: fuck.png (448KB, 900x900px) Image search: [Google]
fuck.png
448KB, 900x900px
DEAR GOD PLEASE HIRE ME
>>
>>61180818
>have a strong portfolio
>have amazing interview skills
>have a based resume and cover letter
>be very knowledgeable
>be outgoing and fun to be around
>apply to 400+ jobs
>>
Are there any good free open imageboards available to spin up and host yourself?
>>
>>61181637
there is many, Google should help you
>>
>>61177935
vee-validate
vuex
vue-router

Is heaven.

Reactjs still has no semi standard validation, routes as html tags <Route> are awkward.
>>
is it possible to put multiple conditions in js and get true if at least some of them are true(more than 1) ?
>>
>>61182133
Lookup truth tables
>>
>>61182133
Just explicitly cast each condition to a boolean (by negating its negation with !!), add them up, and check whether the sum is greater than 1.

e.g.
if (!!firstCond + !!secondCond + !!thirdCond + !!fourthCond > 1) {
// do the thing
}


I think that would work.
>>
Does anyone have a list of ideas for portfolio projects?
>>
Ordering a new keyboard soon, going for a small one.

Started learning wd not so long ago, do I need to use a lot the F_ keys?
>>
Should I still learn Ruby on Rails?
>>
>>61175188
>I got it on sale for $10. Really happy about that.

yeah, that's what I meant. Never pay more than that for those courses. Some anon said if you frequently visit a course and walk away, it is guaranteed they will offer you a super-discount on it in a matter of days.
>>
>>61183373
Are you retarded? Just google udemy coupon code and you'll find a code either for all courses or for a specifc course of your choice that will discount course to $10
>>
>>61181679
with a proper react+mobx architecture you don't need any <Route> bloat
>>
Newbie React dev here. How do I get into "testing"?

I hear "unit testing" and "testing" all the time -- what I do now is develop (MAKE STUFF) and fix bugs.


Can someone prime me on testing, what it means, and how I get into it exactly?
>>
team treehouse vs lynda.com vs udemy vs freecodecamp for a beginner who wants to become a front end developer?
>>
>>61180119
could you recommend some to follow? I'm a full stack web dev.
>>
I'm making a web page for small business dealing in refrigerator appliances.

It will be a generic business page, Call to Action etc. There'll be no online sales; everything will be done offline, the old school way.

The webpage will have a list of products, however. They'll be continuously updated.
The owner is a technophobe, so I need an extremely simple way he can add new products.


Any pro tips on how to approach this?


Also looking for general advice on making a good, generic small business webpage.
>>
>>61184368
Might as well use Wordpress for stuff like that, there are some plugins that let you add arbitrary fields to content easily.
>>
File: 1498929629321.jpg (186KB, 1137x1200px) Image search: [Google]
1498929629321.jpg
186KB, 1137x1200px
What is the + icon that you can push to drop down a menu of links called?
>>
I love PHP. took me hours to find and fix a bug caused by this. Who wants to take a stab at why this was happened?

 $a
//6
$b
//6

$a == $b
//false

(int)$a == (int)$b
//false

md5($a) == md5($b)
//true

strlen($a)
//1

strlen($b)
//1

trim($a) == trim($b)
//true
>>
>>61180818

I've got a trainee graduate position

Requirements

HTML5, CSS3, JS, JQuery, Bootstrap, PHP, SQL Server, Linux, Zend Framework or knowledge of multiple MVC frameworks, Unit Testing, Selenium, GIT, experience in deploying to a large scale load balanced server setup, experience in PCI compliant ecommerce, Ability to code PHP to google code standards.

Applicants will be required to demonstrate their coding abilities on a whiteboard.

Starting rate £16,000

>is now an experienced semi-senior developer and doesn't have to deal with that job market shit any more.
>>
>>61185333
>Who wants to take a stab at why this was happened?
without reading the code, most probably because php is shit
>>
File: edc975f.jpg (167KB, 960x640px) Image search: [Google]
edc975f.jpg
167KB, 960x640px
the concept of using multiple containers on docker for each process of a web app seems so over complicated. a separate container for sql, nginx, and php and having to link them together seems like an unnecessary level of complexity. am I just retarded?
>>
>>61180818
God here, you must have at least 10 years of experience with Angular JS to work for my innovative startup
>>
>>61183027
maybe on linux, windows not really
>>
what does /wdg/ use for a Dev environment?

laragon?
xampp
homestead?
something else?
>>
ded thread ded board
>>
>>61185865
I install all the tools I need through package manager and like use them
>>
Wish I could wake up tomorrow and automatically know everything about Javascript and PHP
>>
>>61185865
what?
never even heard of any of those

like >>61186013 said, I just install and run whatever I need
>>
>>61185333
Octal?
>>
>>61185865
Vagrant most of the time, don't like having everything on the main install and can use the same setup script for live servers.
>>
How do I make text on Image look good?
>>
>>61186966
Faded/blurry image, or background on text.
Post an example
>>
File: eyesore.jpg (228KB, 1704x405px) Image search: [Google]
eyesore.jpg
228KB, 1704x405px
>>61186988
>>
File: ttext.jpg (106KB, 638x479px) Image search: [Google]
ttext.jpg
106KB, 638x479px
>>61187031
maybe a semitransparent rect in the back of the text?
>>
>>61187076

yes I will try this thank you based internet

quick question: what's a good way to implement this solution?
>>
File: curves.jpg (387KB, 1649x1036px) Image search: [Google]
curves.jpg
387KB, 1649x1036px
>>61187031
do a curves adjustment on the image
>>
>>61185427
Only £16000/month! Damn that's what I earned when I was 11 years old with my image sharing website. I advice you to quit UK and create your biz to expand it and earn a little more at least.
>>
>>61187155

make the image a background image

position text absolutely

position a div with opacity and background color behind the text

???
>>
>>61187323
>position text absolutely
Pleb.

Exercise for the reader. Style >>61187076 using only
<p>Lorem ipsum dolor sit amet</p>
>>
>>61187408

why would you not position the text absolutely if you know where it needs to be
>>
>>61187571
breaks responsiveness
>>
>>61187571
Because you should assume that the length of the text could change. If it's positioned absolutely then the outer box's size isn't reflective of the amount of text in the inner box, making responsiveness shit and maintainability shit, and will break when someone adds more text. If it is positioned normally and either using flexbox with two divs or one element like my example and using padding and psuedo elements then nothing will break if you add or remove text.
>>
File: working as a team!.png (590KB, 1280x960px) Image search: [Google]
working as a team!.png
590KB, 1280x960px
I'm trying to make a little greasemonkey script for 4chan itself, and I can't seem to get this onclick event to fire. Any tips?

var quotelinks = document.getElementsByClassName('quotelink');

for(i = 0; i < quotelinks.length; i++) {
quotelinks[i].onclick = function(event) { console.log('lol'); };
}
>>
>>61186779

One of them was a float and was 5.99999...
>>
>>61187856

Are the quote links generated dynamically? onClick will only bind to elements that exist at the time it's called.

Either use jquery (can you use jquery in greasemonkey?) and use .on("click" fuinction(){} ) or you can keep scanning the document for them.

setTimeout(function(){ quotelink code goes here }, 500);
>>
>>61188257
the quotelinks are plain static <a> tags. I can iterate over them and change their href, for instance. I think it's the fact that they're <a> that messes with it.

I think I'll have to add jQuery to the script, but it feels a bit dirty
>>
>>61188342
Is your code running before 4chans js kicks in and resets all of the onclick handlers to it's own functions.
>>
>>61188404
interesting point, and likely. I'll look into it.
>>
>>61188342

Try quotelinks[i]..addEventListener("click" function(){});
>>
I set up an A record with www as a host pointing to my IP address using namecheap. However, when I go to the website, ?from=@ is appended to the end of the URL. Anyone know what's up with that?
>>
>>61188613

look at your vhost or .htaccess
>>
>>61188659
I just set up nginx (moving from Apache). There's nothing about a `from` parameter in there. Any ideas? I think namecheap may be automatically forwarding it.
>>
What are the best coding challenge websites for Javascript? I've tried Coderbyte so far but their challenges are quite hard for a beginner like myself.
>>
>>61188893
project euler
>>
>>61180392
Anyone? ._.
>>
>>61189180
what are you even asking? if you know node then just ajax the form data to your backend
>>
Guys, hows the market for hapi.js compared to express? Which one is more required for a node.js junior dev
>>
>>61189237
Express now because there are a lot of legacy applications developed with this framework.
>>
Redpill me on authentication. What's the least autistic way to handle auth in node.js?
>>
>>61189237
Learn both, express as main, hapi just learn how it works as backup
>>
How much does a junior front-end developer earn?
>>
>>61188613
https://www.digitalocean.com/community/tutorials/how-to-redirect-www-to-non-www-with-nginx-on-centos-7
>>
File: 1495501973188.jpg (37KB, 480x371px) Image search: [Google]
1495501973188.jpg
37KB, 480x371px
what do YOU use to host your sites /wdg/
>>
What is the most efficient and least resource-intensive way to allow different blocks of text to be loaded and unloaded dynamically via onclick events? Should I put the text into a SQL database and use PHP to call them or is it better to write all the different text blocks into the same document, hide them by default and toggle them on and off through jQuery?
>>
>>61189496
about tree fiddy
>>
>>61189845
depends on how many blocks you have and how often they need to change
>>
>>61189771
Vultr $2.5/mo vps
They stopped selling it atm, but it handles a few wp installs fine with apache2/virtualhosts etc.

I was with digital ocean, but the $2.5 plan with vultr was perfect for what I need.
>>
>>61189771
Digital Ocean and mostly duct taped jury-rigged configs for everything because I'm broke as fuck and dumb as rocks.

On another stupid note, does anybody know of a Wordpress quick cheat sheet of some sorts on the web? It feels stupid and weird asking this, but I have an interview tomorrow and the guy uses Wordpress and jQuery for his website. jQuery I'm more than familiar with, but I've never worked with WP before and it's going to suck if I go in saying that I've built things using Node, PHP, and Python, but I've never touched WordPress.
>>
>>61189931
They need to change every time the user clicks on different elements. One element changes the text to one text block, another element changes it to another block. The user can also toggle it back to the default block of text. It's all done through onclick
>>
>>61189931
>>61190060
well if I'm guessing right you're the web game guy then I think you can just keep the descriptions as strings in javascript and swap them in and out.
anyway, always start with the easier solution first unless you're like 99% sure that the more complex one will be needed soon (for example a feature allowing administrators to manage the blocks of text through a friendly web interface)
>>
>>61190037
spin up a wp server with DO and fuck around with it for a day, its pretty simple, most people just load in plugins/themes they like and go from there.
>>
File: feature-eamondevalera.png (93KB, 650x437px) Image search: [Google]
feature-eamondevalera.png
93KB, 650x437px
>>61190136
Cheers buddy.
>>
So i have executed query and i want json output
how can i do that?
i did something like
        $class = array();
$stmt = $dbq->getAllActiveClasses($_SESSION['student_session']);
foreach ($stmt as $row){
array_push($class,$dbq ->getCourseName($row['id_course']),$dbq->getProfessorName($row['id_professor']));

}

echo json_encode($class, JSON_PRETTY_PRINT);

i get output like
[
"something",
"something",
"something"
]
>>
>>61190975
this is json
>>
>>61191198
how can i get output like this
[
"course":"Professor",
"course":"Professor"
]

>>
>>61191225
probably by doing something like

$class[<get course name code>] = <get prof name code>


inside the loop
>>
>>61189771
openshift and ovh
>>
>>61189771
For dynamic webapps usually scaleway or vultr
For static site I use netlify

>>61191225
is this what you mean?
let myObj = {"a" : 11, "b" : 22}
for(key in myObj){console.log(`${key} : ${myObj[key]}`)}
>>
>>61189180
Just make a basic form.
>>
>>61175170
Freecodecamp
>>
For buildng mobile web apps, is ionic framework good?
>>
How do I quit?

I have time to give a 2 weeks notice but what should I say?

The boss is really nice and I do not want to burn any bridges.
>>
>>61191873
yeah it's alright, you could also just build in js and package with Cordova but the setup for cordova is a pain in the ass honestly.
>>
>>61185865
I have my macbook set up with the default apache + php (5?) install

And then I installed mysql with homebrew I think.

I've only started using it recently though, for some wordpress dev. I've also done Node and Rails dev, but they have their own setups out of the box. And if I just need a static server, then I use
python3 -m http.server
>>
>>61188893

Codewars. Sort by easiest or most completed
>>
>>61192023
Smash open his office door tomorrow, storm over to his desk and grab him by the collar. Lean in close, your face just an inch or so from him, and snarl. Breathe in and out heavily like an angry bull about to smash up some shit. That's how you quit
>>
I am on Angular dev position for a week now. It's so shitty and uninteresting, holy shit. Web-development is a mistake.
>>
>>61189227
Because I don't know node.
>>
>>61180392
1. make a simple html form with method="POST" and action="http://myfuckingwebsite.biz.xxx/contact/send"
2. make a node server that listens for POST requests at http://myfuckingwebsite.biz.xxx/contact/send, takes the form data from the request and shoves it into a mail which it then sends using something like nodemailer
>>
so, i have json output like this
[
{
"0": "42",
"1": "101235",
"2": "10",
"3": "OOP",
"4": "2017-07-01 15:45:02",
"5": "0",
"id": "42",
"id_professor": "101235",
"price": "10",
"id_course": "OOP",
"started_on": "2017-07-01 15:45:02",
"finished": "0"
},
{
"0": "46",
"1": "101235",
"2": "10",
"3": "UUP",
"4": "2017-07-01 18:46:10",
"5": "0",
"id": "46",
"id_professor": "101235",
"price": "10",
"id_course": "UUP",
"started_on": "2017-07-01 18:46:10",
"finished": "0"
}
]

what is the best way to get this json and display it on some php page in real time?
Any suggestions?
Links are welcome
>>
>>61192469
Ok, should I be crying the whole time and then kiss him at the end?
>>
>>61192892
you can use json_decode to make an array or object.

Then foreach through the object/array to access whatever you want.

When I start fucking with JSON I do a TON of trial and error. I basically try to get the base info, then I narrow it down, narrow it further, then get exactly what I need. Very hard to get what you need from the beginning unless you're rainman autism or don't have ADD.
>>
>>61192961
>you can use json_decode to make an array or object.

that would not be in real time?
I want to do it in realtime because there will be changes every second
>>
File: spec.jpg (114KB, 853x960px) Image search: [Google]
spec.jpg
114KB, 853x960px
>>61174892
Any AJAX guides ?
>>
I'm working with a team that's been using ASP.NET with VB for their code behind. I'd like to start transitioning to C#.


Any pros/cons between VB or C#?
>>
>>61193005
Websockets.
>>
i started making an omegle clone but i dont know why or what to do to make it cool
>>
>>61192892
https://codepen.io/anon/pen/owqmjN

>>61193041
VB is shit, C# is not shit. ASP.NET will remain kinda shit until microsoft sorts out their .NET Core/.NET Standard/.NET whatever the fuck business (if they do sort it at all, but it looks like they might)
so go with C#, 100%
>>
>>61193005
You get your json in chunks, right? I can't think of an example where you are getting a json array that somehow changes while being used by PHP?

That doesn't make sense at all.

php isn't async, it does everything then stops running. Use json_decode.
>>
>>61193222
Thanks for the advice. I've only done strictly front-end work, do you know a good jumping off point for C#?
>>
>>61193249
There can appear new object any second and i need that new to be loaded, l need it to call api page like every second
>>
>>61193161
Make it have user rooms where you can tip the owners of the rooms in virtual currency for acts they perform.
>>
>>61193292
>do you know a good jumping off point for C#?
I don't. just pick whatever book from libgen.io that has good reviews on amazon or whatever course from youtube that has lots of views or whatever course from rutracker.org that has good reviews on udemy/pluralsight/wherever it's from and get going. start doing a project and google or refer to relevant parts of your resources when you're stuck
>>
>>61193020
>Any Ajax guides ?

for XMLHttpRequest (the most supported method of Ajax):
https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest

or for Fetch (which requires a polyfill for older browser support):
https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
>>
>>61181143
I didn't have shit. A friend offered me a paid internship to see if I'm actually any good, and then hired me after a month. It's all about connections these days
>>
can anyone recommend some Django resources other than the official Django tutorial and MDN Django tutorial.
>>
>>61193589
I'm on the same kind of internship right now. I have no idea how you can make your way into frontend all by yourself.
>>
>>61193307
So? I told you how to do it.

Do you know how php works?
>>
>>61193222
>https://codepen.io/anon/pen/owqmjN
is it possible to make this scrip be realtime
>>
>>61194070
no, but you can make it reload data every 1 second
https://codepen.io/anon/pen/owqmjN
>>
>>61194070
You can use websockets to make it real time, that's about your only option.
>>
any recommendation to learn css? like from a designer point of view, i mean i already know the syntax but i can hardly make good stuff, i want to learn some techniques, something like this video https://www.youtube.com/watch?v=3EPG1fsZ-qo
>>
anyone here use html preprocessing like pug(jade)? is it worth while
>>
>>61196455
I skimmed that video and it seems to focus on animations and transforms. Transforms are very easy for simple stuff; it's just translating (sliding), rotating, and similar stuff. (Unless you want more complex transforms, with matrices and shit.)

CSS animations aren't too hard either. It's very similar to animating in Flash or basically any similar program. You specify keyframes, which are what you want your element to look like at certain percentages through the animation. And then through a process called "tweening", the browser generates the location and appearance at subsecond intervals.

You can also make certain parts of the animation faster or slower, with the ease in/out (and other) timing functions.

Alternatively, you can use CSS transitions, which let you specify a property (e.g. height), and when that property gets changed with CSS or JavaScript, the change gets animated. This is simpler, but you can't have keyframes in the middle of the function.

>>61196666
Eh, I never have. But I might be biased because I generally prefer writing things from scratch. I do use Emmet for typing html though.
>>
>>61196666
Not really, it's just one more thing to learn and one more thing to have bugs and incompatibilities, and it doesn't really add anything significant in return.
>>
File: 1483641674499.png (21KB, 352x482px) Image search: [Google]
1483641674499.png
21KB, 352x482px
why the fuck is this stuck every few days?
router.post('/api/mobile/authorizeMobileUser', function (req, res, next) {
passport.authenticate('login', function (err, user, info) {
if (err) return next(err);
if (!user) return res.json({success: false, errorMessage: info});
else {
req.logIn(user, function (err) {
if (err) return next(err);
return res.json({success: true, user: user});
});
}
})(req, res, next);
});
>>
>>61198696
what do you mean stuck every few days?
>>
>>61198751
monitoring shows this route stops responding every few hours/days

can't find out why, any inspiration?
Request just time out, can't login anymore
>>
>>61198876
There's not enough info there to tell, but if it works most of the time but occasionally fails, that sounds like something isn't handling some login data correctly.

Figure out what all your possible inputs are and test it for each of them. For example:
- Valid login info for existing user (success case)
- Correct username, incorrect password
- Incorrect username, correct password
- Both incorrect
- asavcaegaewafadsfdqc23q32fq3aw
- Anything else you can think of

If it consistently fails in one case, you at least know where to look. You really should be doing that automatically with unit testing, but whatever.
>>
File: asp_net.png (17KB, 216x216px) Image search: [Google]
asp_net.png
17KB, 216x216px
I have an internship coming up in a major company, technologies used while I'm there will be:
- MS Windows Server 2012, MS Windows 10
- MS SQL Server 2014
- C# 5.0, T-SQL
- MS Visual Studio 2015, Sybase Power Designer
- MS SQL Server Reporting Services 2012
- HTML, CSS, Javascript, Linq to SQL, Entity Framework, MVC, ASP.NET

I don't know most of these, since I only worked with MEAN stack.
How do I get ready for this?
I have exactly one month to get ready to get this fucking job and stop being a useless neet.

Can you point me to some "free" (YARR!) tutorials or some other ways to make this happen. I can study 24/7 for this, since I don't have other responsibilities.
>>
>>61199299
learn SQL by learning the mongo equivalent.
other stuff is fine

good lugg!
>>
>>61199356
dangs bro!
>>
>>61198696
you used a free host
>>
File: landscape.jpg (4MB, 3401x2128px) Image search: [Google]
landscape.jpg
4MB, 3401x2128px
I have a question about hosting. Please bare with me, if this is stupid question. I've dealt with PHP and Java in the past, but right now I'm pretty unsure what to do:
How would you people host a Rails site?

I did a lot of research but every solution seems to have huge downsides:

>Heroku
Super simple, but as I understand it, you can't permanently store small files, but have to put it on something like S3 instead. So why am I using this when I have to configure so much shit in the aftermath anyway?


>DigitalOcean
A lot of times I heard the recommendation of DG on /g/. But their "One-Click App" of Rails uses an old version or Rails and the worst server for Rails (Unicorn). And from what I've seen, installing Rails yourself and doing all the configuration is a lot of effort, especially since you have to take care of a lot of security stuff. Is this correct?


>Engine Yard
Way too expensive, also I don't need a full service team.


>AWS
I couldn't even figure out what all those bundle names mean. There are so many options and packages, it's hard to get what I would actually need, let alone configure and deploy.


Any recommendations or experiences about that topic would be very appreciated..
>>
I am done with wordpress, shopify,angular and retarded clients, where do I find ASP.NET MVC jobs?
>>
>>61196666
I think maybe jade went out of style when webpack blew up but imho it doesnt matter what templates/components you use/reuse as long as you dont type everything out every time and constantly copy paste code or repeat yourself.

the thing about jade is you dont have to write tags anymore. the tradeoff is it has really strict rules that make it easy to read but nobody knows what it will do but a jade interpreter.
>>
>>61199549
not sure what you mean? paid hosting, always on
>>
pls gimme some nice tut where i can see how realtime works
i need to do some realtime shit with json
>>
>>61183590
This. Reactjs+mobx is love
>>
How do you insert <head> properties from a react app?
>>
I've done many React applications, but I always use a different set up.

What's the RECOMMENDED, the ideal, standard, textbook etc. way to set up React?
>>
There is a bot scraping my website. I am running nginx with a reverse proxy to nodejs. Only open ports are 80 and 22. I am running postgres but I dont think it could have an open admin interface on 80 since nginx is using 80. What do?

191.208.67.112 - - [03/Jul/2017:14:09:43 +0000] "HEAD http://wewlad/phpMyAdmin3/ HTTP/1.1" 404 0 "-" "Mozilla/5.0 Jorgee"
191.208.67.112 - - [03/Jul/2017:14:09:51 +0000] "HEAD http://wewlad/phpMyAdmin4/ HTTP/1.1" 404 0 "-" "Mozilla/5.0 Jorgee"
191.208.67.112 - - [03/Jul/2017:14:09:56 +0000] "HEAD http://wewlad/phpMyAdmin-3/ HTTP/1.1" 404 0 "-" "Mozilla/5.0 Jorgee"
191.208.67.112 - - [03/Jul/2017:14:09:59 +0000] "HEAD http://wewlad/php-my-admin/ HTTP/1.1" 404 0 "-" "Mozilla/5.0 Jorgee"
191.208.67.112 - - [03/Jul/2017:14:10:00 +0000] "HEAD http://wewlad/PMA2011/ HTTP/1.1" 404 0 "-" "Mozilla/5.0 Jorgee"
>>
Third world NEET here. How realistic is it to land a remote coding job, if you're not from the US?
>>
Reminder to read up on graphic design

Aesthetics are literally of equal importance to a website working
>>
>>61201309
remotes are the hardest to get, seriously. Do you have any experience? If you don't, I'd say first try to land a job wherever you are, then once you have that you might have a chance at better jobs abroad. If that's not an option, then just freelance til you go crazy, and then use your freelance stuff as a portfolio to land something better abroad.
>>
>>61201294

What does your robots.txt say?
>>
>>61201610
>implying these bots respect robots.txt
>>
>>61199653
Shut the fuck up.

Use node and socket io. Php can't do that at scale.
>>
>>61201684

But it's a differernce:
If it does not respect it, you can simply block i the IP (or IP range).
But it would be rude to do so if you have no actualy problem with getting scanned.
>>
>>61201325
and where should I read up on graphic design?
>>
>>61201572
Thanks, m8, landing a job in my current area isn't possible, as my local area doesn't have any hirings involving programming. It seems freelancing will be my best bet to build a portfolio.

Still, I'm finding all of this coding to be rather fun, and I'm confident on my English. Once I've developed a good portfolio, I'll give remote jobs a try. Thanks, friend.
>>
>>61201684
Just ban the bot ips.
>>
>>61201684

Why do you care?

are the pages a secret or something?
>>
>>61199552

C'mon, anyone..?
>>
>>61174892 (OP)

What do I do about this when I don't know

A. what a successful request looks like
B. what the server side code is expecting
>>
>>61202671
you guess or you give up
>>
I'm trying to authenticate myself to a public free wi-fi network remotely by accessing their captive portal. You can do this for McDonald's so I have reason to expect it is possible.

Right now I have the captive portal I want bookmarked from Google search. Google had it listed with this info already in the query string:

Object { pip: "172.16.255.35", sid: "957", nasid: "hso4861gwy0001", vlan: "320" }


I don't know much about networking.

What does this info mean? Usually captive portals will just send a request to the server with the client's MAC address, and then it will remember "this MAC is good" for the session.
>>
>>61199552
If you want AWS, but want it to be simple setup, Elastic Beanstalk is the way to go. They have a guide here:
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_Ruby_rails.html

I've used Heroku in the past, and it's pretty decent. I'm not sure about the file storage limitations; my site didn't have any image uploads, or a ton of images for that matter. But I don't think it would be too hard to set up S3, if you decide to go that route. I've used the S3 SDK before (in another language, in another project) and it's pretty basic.
>>
File: smug cat.png (162KB, 261x258px) Image search: [Google]
smug cat.png
162KB, 261x258px
i haven't done any web dev before, so i've gathered some knowledge in html, css and javascript. i'd love to do some full stack development for fun. what should i do next? i was thinking reactJS for frontend and nodeJS for backend. how shitty is my choice?
>>
>>61202106
again, remotes are hard. You have more chances of getting a remote job by getting a regular job first and then asking your boss to let you go remote. What country are you in exactly? Are you able to relocate?
>>
>>61202917

JS for backend might not be the best first language to learn. If you already know SQL/PHP then go for it.
>>
Ever get a job offer out of state? Some startup in Palo Alto is offering to fly me and my wife out for an interview.
>>
>>61203188
>JS for backend might not be the best first language to learn
why exactly?

i know a fair bit SQL, i don't really like PHP though. are there any alternatives? i'm no beginner in programming btw, just the web dev part
>>
>>61203221
Yes. Im moving for an out of state job in a few weeks.
>>
>>61203260

because backend JS is still fairly new, the documentation and community on that shit compared to PHP or something wont be as useful. But do whatever the fuck you wanna do. No matter what you need to know SQL first.
>>
>>61203263
How did the process go? How many trips back and forth? What considerations did you make for living expenses and uprooting your life like that?

The thought of moving to silicon valley is exciting but it'd completely change my life, and I'm not sure if would entirely be for the better.
>>
>>61203286
>The thought of moving to silicon valley
I'm actually extremely jealous. It is my dream to work for a startup there (I watch the show)

I had one trip for the interview. A few phone calls after that. They denied me then made me an offer a week later. Negotiated the salary up a bit and took it.

Considerations made were living expenses and state tax differences. Housing is expensive in the valley so make sure the math sounds right or you could have less left over than you currently do. Also I made sure they were 40 hours a week since I wouldn't take a 25% pay increase if I had to work an extra 50% hours per week.
Relocation is a great tool for salary negotiations.

As for uprooting your life, not much advice on that. It's a pain in the ass but It's a necessary career step for me.

Let us know how it goes!
>>
>>61193589
Referring to an advantage I'd say that it's been always about connections, and that's probably not going to change in the near future.
>>
Oh anyone want a php job in north texas?
>>
Without straying too off-topic what machine do you use primarily for webdev? Self-built computer, laptop...? What specs?
>>
>>61174892

https://github.com/cryptobook-app/autocoinz

https://play.google.com/store/apps/details?id=com.altfolio.rmgsoftware
>>
i'm like a head trip to listen to cuz im only giving you things you joke about with your friends inside your living room the only difference is i got the balls to say it in front of ya'll and i dont gotta be false or sugar coated at all, i just get on the mic and spit it and whether you like to admit i just shit it better than 90% of you rappers out can and you wonder how these kids eat up these albums like valiums its funny cuz at the rate im going when im 30 i'll be the only person in the nursing home flirting, pinching nurses asses when im jacking off with Jergens and i'm jerkin' but this whole bag of viagra isn't workin'
>>
>>61203626
Why the actual fuck would specs matter
>>
>>61203774
Just wondering if people have high-range 1440p 144Hz shit for their webdev since I want to.
>>
File: 1496255764344.jpg (62KB, 500x683px) Image search: [Google]
1496255764344.jpg
62KB, 500x683px
What's a good JavaScript library to build PDFs ? I need to be able to insert SVGs and forms/text in them then simply download the file.
There are a few out there, any suggestions?
>>
Diving into react but can't seem to get an onClick function to work.

class Prices extends React.Component {
constructor() {
super();
this.state = {isOpen = false};
}
openCard() {
this.setState({isOpen = !this.state.isOpen};
}
renderCard() {
const card = this.state.isOpen ? <CardOpen /> : <CardClosed />;
return <Card content={card} onClick={() => this.openCard()} />;
}
render() {
return (
<div>
{this.renderCard()}
</div>
)
}
}


Where am I going wrong here?
>>
I'm trying to make GET requests to a remote server.
Getting: Access-Control-Allow-Origin Error

How do I bypass this ?
>>
>>61204338
The remote server has to allow requests from different origins. If you have access to the server you can configure it in e.g. nginx. Otherwise make the request on the backend.
>>
>>61204316
https://stackoverflow.com/questions/28268835/react-onclick-event-on-component
>>
>>61204338
You can't make XHR requests to cross-origin domains unless you've setup Cross Origin Resource Sharing.

>>61204316
And what happens?
>>
>>61203626
i hit two rocks - one hit means 1 - no hit means 0
>>
>>61204365

Its a competitor's web store. We need access to a particular price. Rather than scrape it daily, we want to make a request as needed.

Is there really no way to do this ? A browser can make the request, why not a server ?
>>
>>61204405
>no hit means 0
then you need a clock signal for it to work
>>
>>61204405

R.ock V1 was absolute granite.
>>
How do people manage to learn web dev for 5-6 hours a day? I can't even manage 3 at the moment
>>
>>61204374
That's great, thanks.
>>
Should I be using let or var to declare/initialise variables?
>>
Thoughts on Hugo?
>>
>>61204475
learning sucks, but working on a passion project is different. people can lock themselves in a room for weeks straight if they really get into a project.
>>
>>61204316
this.openCard = this.openCard.bind(this)
>>
>>61204475

you has no dedication
>>
>>61204697
idk if it's best practice, but i always use var just in case some faggot is running an older/obscure browser
>>
>>61204697
Always const when you can, otherwise let.
>>
>>61182133

[cond1, cond2, cond3, cond4].reduce((res, val) => {
if (val) res++;
return res;
}, 0) > 1;
>>
>>61204475
I learned because I wanted to, it was never work for me until I actually got that first real job.

>>61204740
Criminally underappreciated film.
>>
>>61202917
i used to do backend in php but i hated php so i switched to node and everything is good now. node isn't hard but it might take you awhile to get a familiar with it enough that you can really start doing work with it. node+mysql is possible, btw.
>>
>>61204791

Maybe this is the way. The past week I've hardly done much learning because I've been restoring a bicycle I bought instead. I've been springing out of bed in the morning to work on that bike, while I absolutely dread turning on my computer.

>>61204801

You may be right also

>>61204890

Interesting. I chose to learn it because I've switched career ideas so many times. I'm getting to the age where I should leave home, without any qualifications and am only able to get work in the construction industry, which I hate. The whole 'follow your passion' thing never materialised for me and instead I went by the advice of doing what you're (potentially) good at, as you are more likely to enjoy something you're capable in
>>
>>61204866
Use `some`.

>>61182470
This is actually retarded. This is why web developers aren't real programmers.

>>61182133
Give a concrete example. Often, for example if the conditions are totally arbitrary, this is best written just as:

if (
oneThing ||
anotherThing ||
thirdThing
) {
// go
}


Chaining `||` means that conditions will be checked until one succeeds, and once a success is found, no more conditions will be evaluated. The `if`'s condition will be passed.

Give a full example and I'll show you the best way to write it.
>>
File: 1496436462860.jpg (39KB, 375x375px) Image search: [Google]
1496436462860.jpg
39KB, 375x375px
Anyone who knows js can give me a light? I promise I'll sit down and learn this later but right now I can't figure this thing out and I just need to do something that should be simple.

I need to store the id #popup 'height' value, multiply it by 1.3 and then set it to the css var --screentp. What I want is use the #popup height in a mediaquery.
>>
Anybody know where i can find this book for download? https://www.fullstackreact.com/

Nothing on libgen.
>>
There any good guides on animations? It's the one thing I absolutely have no idea where to start with.
>>
where i can download premium wordpress themes?
>>
>>61205091
in js it's requestAnimationFrame, setTimeout, setInterval
idk about css

e.g. something like:
// move a div element 10 pixels to the right every second (1000 milliseconds)
setInterval(function(){
x += 10;
document.getElementId("sprite_div").style.left = x + "px";
}, 1000);
>>
>>61204973
>This is actually retarded. This is why web developers aren't real programmers.

Your example doesn't even do what he asked. He said 'more than one', but yours executes if there is only one truth condition.

He wants 'more than one', and counting isn't really possible with boolean logic; you'd have to do something like
(a && b) || (a && c) || (b && c)
, which becomes unmaintainable when you add a few more conditions. My example converts it to arithmetic, and imo is more convenient and readable than a loop. Please explain how it's retarded.
>>
>>61204961
>Maybe this is the way. The past week I've hardly done much learning because I've been restoring a bicycle I bought instead. I've been springing out of bed in the morning to work on that bike, while I absolutely dread turning on my computer.
Wow, we are total opposites. I need to fix my bike but always put it off in favour of web dev.
>>
Is this what a job in web development is like?

https://www.youtube.com/watch?v=2e5tAlelJXc
>>
>>61204928
are there any huge nodejs drawbacks one should be aware of?
>>
>>61205465
idk, probably
like you have to restart your node server every time you make changes to the backend code
>>
>>61205373

This is probably it. I NEED to learn web dev but I want to work on that bike. You NEED to work on the bike but want to work on web dev. Things can stop being enjoyable when they're an obligation.

I will look into beginning a project. Thank you for helping
>>
>>61205091
You should use CSS animation if possible. The browser handles shit for you, so you can't fuck your performance too hard.

The MDN guide is pretty good:
https://developer.mozilla.org/en-US/docs/Web/CSS/animation

Also look at CSS transitions, where you basically put in CSS what property you're going to animate, and how long to animate it for, and when you change that property with JavaScript, it will automatically animate it for you.

https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Transitions/Using_CSS_transitions

>>61205216
Try to avoid using setInterval if possible. Read the docs on requestAnimationFrame if you're gonna do that stuff in JavaScript. Alternatively, use a library that will handle that stuff for you. (A modern library; i.e. not jQuery)

Also, make sure you refrain from doing
document.getElementById
every single time you render a frame. Call it once outside the function, or at least check whether the element is defined before you query the DOM for a new one.
>>
>>61205490
what are you using for frontend developing my man?
>>
>>61205547
just the regular js/css/html
i could never get into jquery or js frameworks
>>
>>61204981
>css var
This isn't a thing. It sounds like you're approaching this in a way that is completely and fundamentally wrong. What is the larger problem you're trying to solve?
>>
>>61205615
https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables
>>
>>61205595
may i ask on what kind of projects you are working on with this rather basic set?
>>
>>61205667
My point stands. You're not gonna dynamically extract some property of an element and assign it to a css variable. CSS doesn't have access to that kind of context.
>>
>>61205358
You're right, I didn't notice he said "more than one."
>>
>>61205703
vidya, animations, data work, scraping
i dont really do regular web dev
>>
>>61205879
alright. thanks for the help
>>
>>61205879
can you make games with html?
>>
>>61205965
some games are made with js, but most are made with engines like unity because js/web are too limited
if you wanted to do only html, well uh, i guess you could have a click adventure

i like making games because it can help you explore a wide variety of dev topics in a way that's fun for a lot of people. like i thought classes/polymorphism was boring af to study but i was able to learn it while making a game
>>
will smith dont gotta cuss on his raps to sell records, well i do, so fuck him and fuck you too!
>>
I've got an idea for an application.

My server would monitor a chat channel using an API. An event would fire every time a new message is sent on the chat channel.

I'd like the new messages to be pushed out to my client web application realtime.

I know two approaches. First, I could poll my server every few seconds. But I know this is a bad approach. The second is websockets.

Would using websockets be smart for this type of project?
>>
>>61206230
Damn, Slim Shady up in here.
>>
>>61205965
The HTML5 <canvas> element lets you paint pixels/sprites to the screen using JavaScript. Obviously that's not purely HTML, but that's what people generally mean when they say "HTML game development" or something similar.

>>61206054
>most are made with engines like unity because js/web are too limited

It's not so much that JS/web are too limited, it's that Unity or other engines/libraries do a lot of the boilerplate stuff and sometimes provide common APIs to hook into low-level features, so you can compile for multiple platforms using the same codebase.
>>
>>61206304
just use UDP

 import java.net.DatagramPacket;
import java.net.DatagramSocket;
>>
>>61206408
Can I keep a record of my connected clients on my server, and then whenever my server has new data, broadcast that new data to each of my clients, using UDP?
>>
>>61206408
Ok I'm reading this...
https://www.cs.rutgers.edu/~pxk/417/notes/sockets/udp.html
It looks like on the server, I just need to properly set up the connectionless UDP socket.
My client will be a web page, so javascript; I know there's a WebSocket interface, so hopefully I can use that to access my broadcast data.

One thing though - it's still sockets. At that point I don't really care if the socket is using UDP or TCP. So I don't see an advantage to UDP over just using websockets, since UDP would necessitate socket usage anyways. Or am I misunderstanding?
>>
>>61205416
That vid was more of a helpdesk description
>>
4kev.org might be a shit website but it's so fucking comfy
>>
Anyone here ever apply to silicon valley positions from out of state? I live in the Midwest and our local tech scene is basically a handful of SJWs reinventing the wheel and a few ancient corporations who used to be headquartered here.
>>
>>61208485
Work remote, or at least don't bother with silicon valley. Mass exodus from the bay right now. Go to denver, huge scene developing there. Lots of demand.
>>
why is sucuri so much better than cloudflare for only $30-64/month
>>
I'm trying to learn Python to switch jobs (I'm a DBA right now), and I just don't understand where to go once I've got the basics down. It's like, I can understand most syntax, but what do I make besides doing random coding challenges (which seem to all be more math-y than code-y). How do I get to the next level?
>>
>>61208696
write crud
>>
>>61205015
Nope.
>>
I'm looking to move away from Bootstrap. Beside's doing everything from scratch, what's my best alternative?
>>
>>61209123
semantic ui
>>
yo /wdg/ where do you keep up with what to use?
im a bit out of the loop in webdev since ive been doing some database programming exclusively for about a year now but it looks like our next project requires me to be a webdev again.
is it still all ts sass and angular for frontend?
like i said im a bit out of the loop and i dont even remember much of the tooling i used to use well apart from compass to suplement sass and postman to test out api requests.
is there site or blog or news outlet that lets me keep up with what "the thing to use" is?
>>
I have built api with php and now i need to get that json array
what would be the best way?
It would be nice to be in real time
>>
>>61209645
Yes.
>>
>>61209464
always use php, mysql, windows notepad and apache but avoid css since that adds additional load times
>>
>>61206054
ThreeJS is pretty sexy tho. Yes, parsing user input and coding behavior is more difficult without a dedicated platform for it, but the advantage to HTML/Canvas/JS stuff is that it's, well, in browser.
>>
>>61205965
The direct answer? No. You can't, because HTML isn't a programming language. Namely, it can't accept, interpret, and produce different outcomes based on differing input.

However, with JavaScript, you certainly can. Using <canvas>, <svg>, or CSS if you're really fucking insane, you too can scam people on Facebook with your New Awesome Game.

I mean wait what?
>>
>>61209645
I fucking hate you so much. I am so fucking sick of your "real-time" bullshit.
>>
>>61205965
technically yes.
you need javascript though. i recommend typscript along with phaser.
you can even package it up with electron no problems this way you also get access to the filesystem and advanced input.
>>
Not strictly true. If you have something like nodemon, it'll do the restarting for you.
However, be aware that NodeJS IS JavaScript, and thus is inherently single-threaded. Also make sure you're aware of Asynchronous programming, which isn't necessarily a thing exclusive to Node or JS, but is worth remembering.

Finally, be aware that Node, as backend JS, does not have access to the 'window' object. So there's no window.alert(), window.prompt(), etc.
At least not natively.
>>
>>61205373
>>61204961
$npm rebuild bike


noobs.
>>
>>61209900
no rude pls bitch boi
>>
>>61205091
>>61205508
Small tip (inb4 that's what she said):
When you can, if you need to rotate or transform stuff, use 3D transforms. That is, instead of:
#my-element{
transform:rotate(32deg);
}

do:
#my-element{
transform:rotateZ(32deg);
}


This functionally does the same thing, but in a lot of browsers, using rotateZ() instead of rotate() forces the browser to use hardware accelerated rendering (if available). That can speed things up a LOT.


Also, on an unrelated note, two questions:
1.) Why are fat-arrow functions so sexy?
2.) Why are they not called thicc arrow functinos?
>>
>>61209803
Yes, and always use plenty of <blink> and <marquee> tags. And remember to sprinkle the fuck out of your page with animated gifs.
>>
>>61209848
>>61209908
W R O N G

First of all, JS is obviously not necessary as html+css is turing complete: https://codepen.io/i0z/pen/mFLCw

Second, lots of "choose your own adventure" style narrative games were written in HTML before everybody wrote fancy JS.

>>61205965
Of course you can, you just have to creatively work around your limitations. If you're asking whether HTML by itself is an effective generic platform for all sorts of game development, then the answer is no. You're not gonna make a 2D platformer using HTML without JS.
>>
File: sad-pepe-640x480.jpg (29KB, 640x480px) Image search: [Google]
sad-pepe-640x480.jpg
29KB, 640x480px
That moment you realize javascript has no standard function nor common used library to generate a guid.

https://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript
>>
>>61210297
That moment when you realize Javascript was a mistake.
>>
https://ionicframework.com/

what is /wdg/ opinion???

inb4 muh bloated
>>
>>61211137
I've heard of it, but I don't really know much about it. I know it uses Cordova, so what does it add on top of that?
>>
>>61211237

i've heard that its SUPER EASY to build an app, like literally just a few lines of code and youll have a web up and running or something
>>
>>61211137
>>61211237
>>61211254
>Being this bad at shilling

Frameworks to never use:
- Anything with node
- ionic

Thanks.
>>
>>61211286
What you have against node?
>>
Hey /wdg/,

So I have a conundrum. A lot of people quit at the small creative agency I work at. I stuck around because I'm not in a position to quit (I'm moving across the country and I need the money). Due to me being the only developer left, I was offered a full time position, despite transitioning to remote.

My boss is getting really hung up on trying to figure out a title, since I won't just be a "web developer" - since I have graphics design experience, and I'm good with client interaction and the "strategic planning" aspect of being a full-service creative agency, I'll be handling a lot of different responsibilities outside development.

Is there a job title that fits such a description? I don't want my boss to give me a job title that's going to look like I'm some "generalist" because I think that might look bad on a resume later on in my career. Any advice on what title I should propose for him?

Sorry if it's a stupid question. My boss is super detail oriented though and I'd rather not have him pick something silly.
>>
>>61211513

can i ask why did people leave?
>>
>>61211564
They just didn't like his management style or his take on the creative process. To an extent, I understand that they just felt he was too "involved" in how things get done, but personally I never had a problem with the way he did things.
>>
>>61211254
>i've heard that its SUPER EASY to build an app
But what exactly is exclusive about it to native app development as opposed to just web development?
>>
>>61211899

im just following from this local webdev fb page and some people say that a nobody can get started on building an actual web from those

they even have templates for navbar and stuff

im too lazy to check it out
>>
How do I properly end my ajax-called php? Currently I'm doing it like die($myStatusCode), but this seems horribly Pajeet-tier.
>>
>>61174892
I'm currently building a website. Since I don't have much experience beyond basic HTML, CSS and Java I'm having to learn as I go. Where should I be looking in order to learn to program the following? :
>a login/register system which "remembers" the user
>a search engine which can "fetch" items from an internal database
>>
>>61183135
If you want to built an app from (almost) scratch, then yes. If you want to work for Facebook or google, no. Learn PHP or JS or something used by bigger companies.

I built this: https://diogn.es in a few hours with rails. And www.gymbull.com in a few months
>>
>>61212660
exit($statusCode)

also use snake casing
>>
>>61212930

http://php.net/manual/en/function.exit.php
>Note: This language construct is equivalent to die().

I would have imagined the header() function to be a better fit, since it's already using HTTP status codes. Wasn't sure how to read those in the browser though.
>>
>>61213081
well your alternative is echo blah
then die();
there's no sophisticated method to do this
>>
>>61213126
>there's no sophisticated method to do this
this needs to be the /wdg/ banner
>>
>>61212914

gymbull loads really quick man, nice
>>
>>61213197
yeah, I did think "well this applies to all webdev basically"

just look at angular, you need to create 6 classes to edit a box
>>
Why do clients think they are qualified to make choices for technologies to be used? (Except for wordpress, I know they use it because they hate learning tech)

Is it to feel like they are experts? Or trying to control the course?
>>
So I'm looking at the helloworld example for React right now. Does this literally do all the rendering? I cant even read text without having JS activated like this.

ReactDOM.render(
<h1>Hello, world!</h1>,
document.getElementById('root')
);
>>
File: slowyourroll.jpg (148KB, 1200x742px) Image search: [Google]
slowyourroll.jpg
148KB, 1200x742px
>>61204961
Are there masses of dorky bike enthusiasts like yourself?

Maybe you could make a site that caters to some niche in the market and shows up in their obscure search terms.
>>
>>61208696
>How do I get to the next level?
it's time to start diving into specific areas you're interested in. Security, authorization, deployment, server management, whatever smaller fields you're interested in, pick up a book or tutorial and get acquainted with the standard libraries and techniques in those fields. Every field has a bunch of top-notch libraries that take a while to get to know.
>>
>>61213960
This is JSX and it's just syntactic sugar. Imagine that the HTML is a string or ES6 template literals instead. It just replaces an element on the page or inserts the template into it.
>>
What does /wdg/ predicts about elixir and phoenix?
>>
>>61202777

Thanks a lot, man.

So DigitalOcean is not a good option?

Basically I only need small avatar pictures, but since Heroku has this weird thing called "ephemeral filesystem" you can't permanently store files there.


I thought about saving the avatar pics in a Postgrees database (as BLOBs), is that a good solution?
>>
How easy / fast it is to learn node.js and angular.js for someone who already know javascript, php, C, C++, java, etc. ?

Any good resource for learning it ?
>>
>>61214690

What's there to predict?

Elixir and Phoenix are pretty great, but there are so many good web frameworks out there today, it's hard to penetrate the market. 20 years ago there was a lot of bad stuff out there, that's why you could have success if you actually had some quality framework. Today you can do pretty much everything with pretty much every language. The only real option to establish a new language/framework nowadays is either stealing someone else's fanbase - as the whole SPA circus (like Angular/React/Vue and so on) is trying to do. Or get a big company lobbying for you (as Go or Swift are doing).


So if you want to learn several frameworks, Elixir is definitely worth it. Sind Elixir is basically Erlang (+ some I/O goodies) you get an Amazing concurrency modell, the beauty of functional programming and so on.
But if you are a newbie and want to learn some frameworks, I'd rather start with a more common stack.

At the end of the day it all depends on what your company uses. If you freelance, you can really use what you want, but be aware that a more "exotic" stack often requires a little more configuration and so on.


don't get me wrong:
I'm not saying it's a bad idea. You will learn a great deal when you do more things "by yourself" instead of using a premade PHP+SQL server where you just put up your stuff on and then it just werks. Depends on your goals and maybe it's a better option to learn some "simpler things" like Node, Rails or Vue and then get funky with functional programming..


Ahh, sorry. I got a little off-topic. To answer your original question:
Elixir+Phoenix will be here to stay and it's a quality framework. I've never heard people saying bad things about it. But it will not get super popular.

I guess if you know some of the usual stuff (Node, Django,.. blablabla) and THEN have an elixir project, companies will love to hire you. Companies love special skills. But it won't be easy to get an Elixir junior job.
>>
Vue js
i get $ is not defined
what do i do?
>>
Anyone else have experience with animating SVG images? I made a thing but a few classes flip horizontally before the animation then revert back after.

What could be causing this behaviour? Using CSS transforms on svg paths.
>>
>>61215646

Node is pretty easy if you know JS, it's basically just JS with different libraries and some ""concurrency"" (non blocking IO).
Maybe look into the last chapter of "eloquent javascript" ot get an overview.

Angular is an ungly, verbose and bloated piece of crap, so your Java skills might come in handy here.
>>
>>61215949
>Angular is an ungly, verbose and bloated piece of crap
eww... Is there any alternative ? I don't think the project i'm gonna work on is started to I might be able to convince my boss to use something else.
>>
>>61216239

It always depends on the use case.

If you have a really big project with a lot of "classes" and different programmers (basically were you would also think about Java) then angular is worth considering.

Also some people get a hard-on because you can use static typing. Personally I don't think that's the biggest problem with JS, but some people do..


Angular (and of course I hope we are talking about Angular2 here, and not Angular 1 - correct?!) has two way data binding.

If you don't need such a heavy data tank with classes, static typing and what not, Vue might be worth a look. It has a lot of the advantages of Angular and React (i..e two-way data binding), but is much more lightweight and more beautiful.


I'd even chose React over Angular, unless you have a real good reason where Angular shines,
>>
>>61209123

foundation
>>
>>61211513

lead creative director/developer
>>
>>61211513
hauptentwicklungsführer
>>
How do I pass all props to my react component properly

I got this.


const Book = ({person}) => {

return (<div>

<p> {person.title} </p>
<p> {person.description} </p>
</div>)
}


I want,
 <p> {title} </p>
<p> {description} </p> ... and so on
>>
>>61218150
const Book = (({title, description}) =>{

});
>>
>>61218286
The final result will have tens, twenty of arguments.
>>
how do i add link to header image wordpress theme twenty seventeen theme
>>
File: ivdxugbj0rxy.jpg (440KB, 1520x2048px) Image search: [Google]
ivdxugbj0rxy.jpg
440KB, 1520x2048px
I have done all of coursecademy, freecodecamp and mozzila developer network courses on html, css, javascript, bootstrap and i think i got a brief understanding of how seperate things work but i still can't create a whole webpage. Could anyone help me and recommend a book, a video, a guide anything what could lead me to wrapping everything i have learnt to create a whole webpage?
>>
>>61219164
Try to create portfolio or start some lynda course
>>
>>61219001
Do it outside of the function arguments then, don't see why you need that anyway.
>>
>>61219234
lynda asks for my credit card, any other options?
>>
>>61219291
torrent
>>
>>61174892
how fast can i learn web dev and get a job /g/ (from scratch) i need a job in 1 month
>>
>>61204316
Define functions using the lambda.
openCard = () => {
}

This way this is automatically bound.
Otherwise you have to bind this to functions before calling them.
"this.openCard.bind(this)"
>>
>>61205490
nodemon autoreloads your server when you make a change.
>>
>>61177935
I'am on the Ember train
>>
File: 14973516199370.jpg (57KB, 450x600px) Image search: [Google]
14973516199370.jpg
57KB, 450x600px
Any possibility to make drop menus open tab at the position of anchor (this case, bottom for each tab) solely with bootstrap?
If not solely, then how to?

https://pastebin.com/PZs2Msxm
>>
What are some good free wordpress templates?

also can i be sued for downloading premium templates?
>>
javascript must be eliminated from the earth
>>
so it begins huh

https://github.com/SteveSanderson/Blazor

what do you think about not using js on the frontend, faam?
>>
 <input type="hidden" v-model="sid"

how do i get pass v-model to method?
Thread posts: 325
Thread images: 30


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.