[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
/wdg/ - Web Development General
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 255
Thread images: 29
File: 1463313260918.png (172 KB, 515x656) Image search: [Google]
1463313260918.png
172 KB, 515x656
Previous Thread: >>54592746

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

> Discord
https://discord.gg/0qLTzz5potDFXfdT

>Learning material
https://www.codecademy.com/
https://www.bento.io/
https://programming-motherfucker.com/
https://github.com/vhf/free-programming-books/blob/master/free-programming-books.md
https://www.theodinproject.com/
https://www.freecodecamp.com/
http://www.w3schools.com/
https://developer.mozilla.org/
http://www.codewars.com/
https://youtu.be/JxAXlJEmNMg?list=PL7664379246A246CB - "Crockford on JavaScript" lecture series.

>Frontend development
https://github.com/dypsilon/frontend-dev-bookmarks

>Backend development
https://en.m.wikipedia.org/wiki/Comparison_of_web_application_frameworks
https://gist.github.com/dypsilon/5819528/

>Useful tools
https://pastebin.com/q5nB1Npt/
https://libraries.io/ - Discover new open source libraries, modules and frameworks and keep track of ones you depend upon.
https://developer.mozilla.org/en-US/docs/Web - Guides for HTML, CSS, JS, Web APIs & more.
http://www.programmableweb.com/ - List of public APIs

>NEET guide to web dev employment
https://pastebin.com/4YeJAUbT/

>How to get started
https://youtu.be/pB0WvcxTbCA - "WATCH THIS IF YOU WANT TO BECOME A WEB DEVELOPER! - Web Development Career advice"
https://youtu.be/zf_cb_Nw5zY - "JavaScript is Easy" - If you can't into programming, you probably won't find a simpler introduction to JavaScript than this.

>cheap vps hosting in most western locations
https://lowendbox.com
https://www.digitalocean.com/
https://www.linode.com/
https://www.heroku.com/
https://www.leaseweb.com
>>
File: question mark dog.jpg (34 KB, 500x348) Image search: [Google]
question mark dog.jpg
34 KB, 500x348
Is there a mobile dev general? I'd love a mobile dev general.

Mobile dev is fun as fuck.
>>
>>54638139
There's daily programming thread.
>>
>>54638139
Not that I've seen. This would probably be the closest thing to it if you're using ionic/cordova/etc or programming general if you're doing native apps.
>>
>>54638139
would stay here
the dpg threads are bad
they only talk about C languages and fizzbuzz
>>
>>54638413
I thought the same thing desu.
>>
found a fizzbuzz tier challange on fcc

Intermediate Algorithm Scripting

Check if a value is classified as a boolean primitive. Return true or false.

function booWho(bool) {
// code here
}

booWho(true) should return true.
booWho(false) should return true.
booWho([1, 2, 3]) should return false.
booWho([].slice) should return false.
booWho({ "a": 1 }) should return false.
booWho(1) should return false.
>>
What environment do you guys work in? I used one for classes but the license is running out soon.
>>
>>54639287
I use vim and awk.
>>
>>54639190

So like...
return (typeof bool === "boolean");

Or am I missing something? How is that "intermediate algorithm scripting"?
>>
>>54639190
this is why dynamic typing is pants on head retarded.
>>
>>54639325
This. I didn't reply because I was worried that I was too stupid and was missing something. But this is my answer too.
>>
>>54639287
PyCharm

I'm the most minimalistic person I know, but goddamn jetbrains stuff provides everything you need that isn't a meme into one product. VCS, database view, project view, tests, quickly finding uses of functions, vagrant, ssh, etc. It's pretty much all you need for full stack barring a few things
>>
>>54639325
More like
npm install is-boolean

var isbool = require('is-boolean');
function booWho(bool) {
return isbool(bool);
}
>>
>>54638139
Here is fine.

I regularly talk about Cordova and I think most apps will be JS in the future.
>>
>>54639972
>I think most apps will be JS in the future.
What makes you say that? seems like it's a long way off.
>>
What was that one minimal PHP framework that scales really well?
>>
I currently know Python and Django pretty well is it worth swapping over to Ruby on Rails? Or should I just stick with Python and Django?
>>
>>54640005
Stick with Django
>>
>>54639980
Cross-platform. All native phone functions will be included with the packagers and accessible to JS. Also JS is doing great at making games recently.

Why do the Japanese use email instead of SMS?
>>
>>54638105

Is there something wrong with react? Idk, just curious.
>>
>>54639972
Cordova is good for small apps but it really shits the bed when your application starts to get big.
>>
>>54640045
Only does 1 thing right, views, and that thing is included in whatever other framework you choose usually with about as much functionality
>>
>>54640120
But you can use React with a Flux implementation, and you get almost a full framework
>>
>>54640231
Well it's not quite a full framework, but even if you added in the missing bits, it's still a choice of framework, and there is little benefit react would provide that you would choose it over other frameworks
>>
>>54640057
How big? I am new to it.

My app takes photos and processes them locally. It then sends the smaller image to a database.
It also didplays the images from the database.

Would that be too much?
>>
>>54640547
That's a good size for that.

I suppose when I say a big application I mean an enterprise application with many different modules.

I work with an enterprise web application that also runs on Cordova. The results aren't pretty.
>>
>>54640662
Thanks for the info.
>>
>>54639287
Same person, I already have Eclipse installed from a few years back. Is it worth using despite being so sluggish?
>>
Why are so many webdevs such complete fucking shit?

I mean I had an inferiority complex graduating college. My first job I worked with some amazing people, then I got my next job and only 1 out of 50 are half way fucking decent.

How is it fucking hard to just seperate functionality? It's easier than inlining everything
>>
>>54640005
I love Python and would choose it over Ruby anyday, but Django really is kinda crappy compared to Rails.

Don't get me wrong, you can get stuff done with Django, but:
- managing local/testing/production enviroments is a pain
- actually, the whole settings.py is a pain
- assets (scss, typescript etc.) is a pain
- urls.py is crap
- Django is very unpythonic in many ways

Give rails a shot.
>>
Reassure me that getting hired as a self-taught web dev is doable without a degree.

It's fun, I live in the bay, and I have plenty of opportunities to schmooze as I have friends in tech.
>>
I feel like shit... I was asked to make a simple webapp some days ago. I first overestimated the requirements, which made me lose a couple days. now I have to write the View... and I fucking HATE frontend stuff, to the point that I don't want to even touch this shit anymore.

ffs, how am I even supposed to work as webdev...
>>
>>54641175
Thanks for this break down, do you know any good books to get started?

I haven't really looked into ruby that much, I'm pretty adept at Java and Python and I understand that ruby is meant to hold true to OOP, or more true than Java.
>>
File: 1413047158867.jpg (43 KB, 494x494) Image search: [Google]
1413047158867.jpg
43 KB, 494x494
>>54641230
Hire a pajeet for the frontends
>>
>>54641263
First you need to know that Rails is doing a LOT of magic for you in the background. Far more than Django which is much more explicit. It may seem weird and sometimes strange to understand how things are tied together.

Assuming you are familiar with other languages:
- take a quick Ruby crash course, most importantly about classes, instance variables, methods etc.
- read https://www.railstutorial.org/book - it is a top notch tutorial, i recommend you do not skip any parts and just do the whole thing from scratch
>>
File: blocks.png (32 KB, 565x296) Image search: [Google]
blocks.png
32 KB, 565x296
Anyone have experience with mojolicious? I dont do much web development but it looks like it could be some fun
>>
>>54641189
- have a good portfolio
- be willing to relocate
- be willing to take 10-20% less than other people until you have professional experience or a top portfolio
>>
>>54641689
I'd be willing to relocate for sure but would I even need to? From what I understand companies in the bay are more desperate for developers than anywhere else.

I'd take 60k starting happily, that's still almost double what I'm making now.
>>
File: w3.png (34 KB, 744x372) Image search: [Google]
w3.png
34 KB, 744x372
>>
>>54641175

>I love Python and would choose it over Ruby anyday

May I ask you why?

FIrst of all I have to say that I'm rather a beginner in Python and I'm don't mean to be rude.. But coming from Ruby to Python, Python feels like a "crippled" version of Ruby.

I mean you can programm "Python style" in Ruby but you also use "the Ruby way"..


No flamewar please.
>>
>>54641689

>have a good portfolio

Do you mean actual running sites (customers) or also undeployed projects?
>>
>>54641807
i thought w3 got a lot better in the last year and isnt an embarrassment anyome.
is it still shit?
i dont really keep up with w3.
>>
Where do you guys like to host? I have a box with digital ocean at the moment. I used to be with heroku but I didn't like their toolbelt and behind the scenes work. I feel like digital ocean might be overpriced though.


>>54640005
I never worked with Django but RoR is what made webdev enjoyable for me in the first place. Its a bit of a mountain to climb but theres a massive ammount of current support and libraries for it and it does a great job or separating the webapp into managable boxes for you to work with, as wel as dealing with different deployment environments. I think the only major concern is that it doesnt scale gracefully.

>>54641230
Use precompiled languages. Scss, haml. Use libraries like bootstrap or jquery. Working without them is tedious and makes you want to kill yourself. Also over time you'll learn some tricks to overcome basic retarded shit like mobile meta tags or the recently added flexbox display that makes designing layouts not retarded.
>>
File: 1283658727351.gif (1 MB, 186x139) Image search: [Google]
1283658727351.gif
1 MB, 186x139
>>54641886
undeployed projects are fine.
running sites are great too though. not necessary.
you can use for example github/gitlab pages to show static frontend stuff and hiroku if you wanna show off backend and server stuff.

important are completed projects.
dont just show off a snipped of code that does something neat. show something complete even if its just one page.

the best way to show off work is just send them your git repos and let them judge.

also specialize in stuff at first.
even if you know lets say python or ruby in additon to go but you dont actively used them its fine to put down on your resumee but in the interview tell them that you are not confident enough to do projects specilaized in those.
emplyers appreciate honesty and like it lets say a dedicated javascript guy knows stuff about setting up rest apis with python or express even if he only works on the frontend with them.
>>
>>54641859
I think python and ruby are both decent languages, ruby has better web dev support, and ruby blocks are a miracle of the universe.

Python tuples are great though, and I think the language performs faster.
>>
>>54641921
used chicagovps for a while, $12/year, fine for little sites with no traffic
>>
>>54641859
> why?

Way too much syntactic sugar for my taste. Plus there are too many ways to do one thing, versus "the one obvious way" in Python.

But...
Ruby has better debugging options
gem is superior to pip
I like the many built-ins and alias methods in the stdlib
No Py2/3 mess

FYI: i use Python in all my hobby and side projects but use Ruby (and Rails) in my day job.
>>
>>54639992
PHPixie? The one where the dev got caught fudging downloads to make it seem like people actually use it?
>>
>>54639287
I primarily use sublime + vagrant/docker + chrome. I haven't run into anything I needed an IDE for yet. I have tried brackets though, and it seemed pretty nice, although I've seen a few people complaining that it crashes on startup sometimes.
>>

var text1 = {1: "lowest price",2: "low price",3: "average price",4: "high price",5: "highest price"};
var $slidertext1 = $('#display');
var refresh = function (e) {$slidertext1.text(text1[$("#price-slider").slider( "value")]);};
$("#price-slider").slider({min: 1,max: 5,step: 1,value: 3, change: refresh, slide: refresh});



I have a slider with 1 to 5 values, and text assigned to each number, and I want it to dynamically change the text while you slide without releasing the mouse click. The refresh function works fine on change but it doesn't while sliding, anyone know why it isn't working?
>>
>>54642006

Thanks!
>>
>>54641751
They're desperate for top-tier devs who will work for peanuts, like everywhere. On the other hand, SF is well known as *the* place for tech companies (also the weather) so a lot of people want to live/work there. If you look in places like DFW, web dev is just as in demand, and the cost of living is a lot lower.
>>
>>54641914
Does online certificates ever have any weights?
I'd assuming having portfolios/projects is more solid than online certificates if you were self taught.
>>
>>54642193
Good to know, I actually had a long term plan to move to Austin/DFW after getting a few years experience in the bay because of the cost of housing, but maybe I'll just shoot straight for Texas. Thanks.
>>
>>54638139
Most mobile apps nowadays are web apps. Most of the apps you have installed on your phone *could* run in just the browser. You really have to know web programming now to be a mobile developer.
>>
Anyone here working with asp.net core 1 rc2? Been looking for good reference material on setting up a site with a sqlite db (new to webdev and have to build .net stuff for my college course)
>>
>>54642353
>I'd assuming having portfolios/projects is more solid than online certificates if you were self taught.
Absolutely this. Huge difference between showing things you've made and showing a piece of paper (or online equivalent) saying that you know something. Depending on where the cert is from, it may not be entirely useless, but some people treat them like job coupons, which is ridiculous.
>>
>>54642353
generally speaking nowadays employers consider everyone a candidate.
doesnt matter if they have a masters or are self-taught with only a high-school degree.
what matters is stuff to show. though obviously someone with a better education will get preferential treatment.
however it is basically universally agreed upon that grades mean jackshit in most cases.
certs are just something nice for yourself to hang onto your office or home.
in the end experience is what counts. and employers know just because someone has a STEM degree, it does not mean he can actually do anything.
>>
>>54641921
>Where do you guys like to host? I have a box with digital ocean at the moment. I used to be with heroku but I didn't like their toolbelt and behind the scenes work. I feel like digital ocean might be overpriced though.
openshift, free for basic plans

>Use precompiled languages. Scss, haml. Use libraries like bootstrap or jquery. Working without them is tedious and makes you want to kill yourself. Also over time you'll learn some tricks to overcome basic retarded shit like mobile meta tags or the recently added flexbox display that makes designing layouts not retarded.
thanks, I had no idea about all this stuff...

>>54641388
t-that's not a bad idea...
>>
Is Drupal 8 a meme or should I learn it?
>>
>>54642407
sup bro
queuedodge on the hub of gits
>>
Soo.. I can't figure out while this isn't working.

The IMG tag is within the black background div yet it stacks below it? CSS attached.

Black div is itemImgContainer

<style>
body { font-family: Raleway; }
.mainContainer {
overflow: auto;
display: block;
min-height: 320px;
width: 640px;
background-image: url("public/img/num2.png");
}

.itemImgContainer {
overflow: visible;
width: 256px;
height: 256px;
margin-top: 3%;
margin-left: 192px; /* (.mainContainer Width / 2) - (.itemImg WIDTH / 2) */
border: solid 6px black;
background-color: black;
z-index: -1;
}

.itemImg {
overflow: visible;
height: 256px;
width: 256px;
border-radius: 15px;
z-index: -1;
}

.buttonDiv {
margin-top: 4%;
background-color: green;
width: 192px;
height: 40px;
font-weight: 700px;
}

.buttonDiv.left {
float:left;
clear:left;
}

.buttonDiv.right {
float:right;
clear: right;
}
</style>
>>
File: whyNoWork.png (153 KB, 655x343) Image search: [Google]
whyNoWork.png
153 KB, 655x343
>>54642730
pic related

Also HTML

<body>
<div class="mainContainer">

<div class="buttonDiv left" style="margin-left: 50px;">sagfagargarg</div>
<div class="buttonDiv right" style="margin-right: 50px;">sagfagargarg</div>

<div class="buttonDiv left" style="margin-left: 15px;">sagfagargarg</div>
<div class="buttonDiv right" style="margin-right: 15px;">sagfagargarg</div>

<div class="buttonDiv left" style="margin-left: 15px;">sagfagargarg</div>
<div class="buttonDiv right" style="margin-right: 15px;">sagfagargarg</div>

<div class="buttonDiv left" style="margin-left: 50px;">sagfagargarg</div>
<div class="buttonDiv right" style="margin-right: 50px;">sagfagargarg</div>

<div class="itemImgContainer">
<img class="itemImg"src=" " />
</div>
</div>
</body>
>>
>>54642730
>>54642749
http://jsfiddle.net
>>
>>54642809
https://jsfiddle.net/duyLf6pt/
>>
>>54642115
use console.log!
>>
>>54642730
>The IMG tag is within the black background div yet it stacks below it?
Your green divs are fucking it up. Remember a div is like a block of space that reserves it's own position anywhere you put it.
Instead of setting the backgrounf of mainContainer to be black, set it to the image you want to place behind it.
>>
>>54642105
Brackets is nice. I used to use it as my primary text editor, but now I'm a bigger fan of Atom.
>>
File: Untitled.png (25 KB, 1174x408) Image search: [Google]
Untitled.png
25 KB, 1174x408
Going to a hackathon tomorrow, planning on working on my final project for cs50x, it's a little JavaScript web app that helps you keep track of conversations

I get to meet David Malan, he's like a rockstar to me at this point
>>
anyone got any material thats related to search engine optimization?
from what i understand its stuff like using special tags like <article> for articles so google for example can pick that up and display parts in their search results and your site gets a higher priority in display ranking.
i cant quite find any reading material related to that stuff.
also it seems like search engine optimization means a lot of different things to people so that doesnt help either.
>>
Hey guys, I got my first international gig, doing React. AMA!

I was making $6.25/h locally, now I upgraded to $40/h. I make more than a senator.
>>
>>54641115
because webdev is boring garbage
>>
Just wanted to say thanks to the kind front end anon who gave me great advice with this project, if he's still here. I think it looks much better now.

http://immense-ridge-1024.herokuapp.com/
>>
>>54640005
they're both pretty similar. rails has more community tools but gems tend to be low quality so w/e

it's worth learning flask for small sites/internal services - basically anything that isn't a massive web app sitting on a db (that's rails' forte). easy to get up and running + it stays out of your face. plus the codebase is easy to understand, it's only 2500 lines or something
>>
>>54642529
don't learn it unless you're getting paid a lot to. there are better modern options
>>
>>54639603
commit suicide
>>
>>54640045
it's really unstable.
>>
>>54641921
I really liked Rails.
>>
>>54639603
anyone here want to start an is-bool.io affiliate ring?
>>
>>54645192
How so? How more unstable than the alternatives?
>>
>>54638105
FUCK YOUR GENERATION, TOO
>>
>>54645302
not performance-wise, the toolchain + ecosystem. constant churn and your packages are constantly breaking, partially thanks to npm, the worst package manager of all time
>>
>>54638105
>Learning material
>no eloquentjavascript.net
Literally essential for quick mastery of JS. It can be hard quickly though
>>
>>54645332
I... I agree, actually.

But I think the framework it's worth it.
>>
>>54645352
it probably is, that's the sad part. maybe in 5 years webdev will finally not be hell
>>
>>54640012
Having one basic codebase between mobile and web would be nice. That's why stuff like firefox os and flutter seem cool
>>
File: 1452456993611.png (60 KB, 1442x927) Image search: [Google]
1452456993611.png
60 KB, 1442x927
Where the fuck do I get the actual SQL server?
I installed MS SQL Server 2014 Express, and I've been googling around for ages on how to actually start it, I don't think it's even installed.
>inb4 >MSSQL
Yeah I know, but I need it for school.
>>
File: IMG-20160218-WA0000.jpg (35 KB, 544x467) Image search: [Google]
IMG-20160218-WA0000.jpg
35 KB, 544x467
>>54645107
That's me. (nice coincidence that I decided to lurk just now)
You're welcome.
Looking better.
>>
>>54645107
Hey, that's pretty cool man. Just slap some google fonts on that shit.
>>
File: 1459909230236.jpg (1 MB, 1908x1073) Image search: [Google]
1459909230236.jpg
1 MB, 1908x1073
sup anons i need advice

i want to build a local web app on html5 on phones

can i run sql scripts and have a local database without the use of php/webserver on the local device/phone with only using javascript and html5?

is there a better way? can you point me in the right direction?
>>
>>54646407
If you're going to be running sql scripts, you'll be extracting your data from a webserver anyway right? So do you mean one that isn't stored locally?
>>
>>54641230

bootstrap templates for the front end. Done.
>>
>>54646407
No, you can use local storage though.
>>
>>54646468

how do i use the local storage for databases?

>>54646422

i want to run sql scripts on the database that is stored locally, is it possible? is there another way?
>>
Why is /wdg/ irc so dead?
>>
>>54647118
irc itself is dead
>>
Guys I'm struggling with this side task in asp.net application for couple of days.

I've got a MasterPage and several DocumentBox~.aspx pages all of them inheriting from GridPage.cs

On MasterPage there is a RadMenu sending ajax requests being serviced in the GridPage.cs

One of option transforms a grid from the page to excel view and rebinds it. Works fine. But I need to add to it another functionality, excel needs to be displayed as it is now and also downloaded.
But writing to response fails as i do not get full postback.

The only 'solution' i found was to create a ghost button in DocumentBox, catch the ajax request on the client side and invoke click() event with the same functionality what gives me full postback.
But I would need to make this button for every aspx (around 20-30) as i cannot simply place it in base class GridPage + I have to hardcode it's id in the script of masterPage.

Wat Do...
>>
>>54647118

Is discord the only alternative?
>>
>>54646792
You said "local database" which means it doesn't connect online.

If it connects online then just AJAX to a PHP page or whatever backend you want to use.
>>
>>54642059
Oh my god that was fucking hilarious. Especially the followup emails on the FIG group where a "Russian" claimed to be responsible for the download count, saying he boosted it to appease some middle managers, but the email had a header referencing the dracony's IP address, so then dracony claimed that the illuminati was trying to frame him.

To boot, the name used in the fraud Russian email wasn't even a proper Russian name.
>>
I have a rest api for data retrieval and want to plot the data on the web page in a pie chart. But it's usually a lot data like ~60.000 points, and I was wondering if it would be better to create the chart data in the server instead? Would this be against rest?: GET /data/2/piechart
>>
>>54647612
If you *really* need to plot 60,000 points in a chart and you want to keep it interactive you could try using a chart library that supports live data. Highcharts can do this: http://www.highcharts.com/docs/working-with-data/live-data

Set up some event handlers listening for zoom events, call a REST endpoints that takes parameters e.g. start, end, number of points to plot, and with this information calculate some percentiles and return only visibly relevant data? Just an idea. I think Kibana does something like this.

Otherwise, render it on the server if you don't want to do all of that. Not sure why it'd be against REST to do so, anyway.
>>
File: needful.png (237 KB, 994x976) Image search: [Google]
needful.png
237 KB, 994x976
What should I reply /wdg/?
>>
>>54648059
>PERNEET
>>
Articles at Smashing Magazine are sometimes cringe-worthy:

https://www.smashingmagazine.com/2016/04/finally-css-javascript-meet-cssx/

>css inside javascript

One reader commented:
>JSX, CSSX, React and npm are all terrible ideas. What a bloated, slow, insecure mess. Front end web development is going to shit.

>Not even junior devs would write selectors like that. People use classnames and avoid html selectors altogether. This is the next thing you learn after css 101. Hope this terrible idea of putting css to js dies

And then the shills:

>Nice one!

Me: facepalm.jpg
No idea if that's just a "filler-article" to keep SM loaded with blogs
>>
>>54648134
And then there is this fagoot blogger who advised putting inline css in the <head> section:

https://www.smashingmagazine.com/2015/08/understanding-critical-css/

Reader comments:

>Wtf you smoking, dude!
>>
>>54645483
Express doesn't install any management tools by default. It's meant to be used as part of some embedded shit.

You need to get yourself SQL Management Studio.
>>
>>54648059
> J query
>>
>>54641393
ruby/rails is hipster-tier horseshit
>>
>>54643449
don't be a retarded moron and just use sublime
>>
File: 1364871404940.gif (993 KB, 290x198) Image search: [Google]
1364871404940.gif
993 KB, 290x198
I'm building my personal site, is it complete lazybones tier just to use a bootstrap template for the front end? I feel like employers might sneer at that but I honestly don't want to put the work in.
>>
>>54648059
>Perneet only knows PHP
average php programmer right here
>>
>>54648537
Yes. You don't want to put all your time in your small personal website, but if that's your showcase, you should at least show what you can do. You should at least make your website different from the other pajeet's.

Especially for a fontend position.
>>
Interested in doing backend development in the future since I have a bad eye for what is aesthetic due to autism, any recommendations for a side project I can do over the summer to learn backend stuff? I was looking at the MEAN stack and maybe doing a reddit clone
>>
>>54648537
If you are a web dev then having a bootstrap site is a big no-no.

Just check out some gay-ass award winner sites and copy their design if you are too lazy to come up with your own.
>>
>>54647150
>Master page
>Aspx

May God have mercy on your soul
>>
>>54646407
Use localforage (not a typo, Google it)
Come up with a data model that can be stored/retrieved via key value pair
>>
File: 1434531458772.jpg (65 KB, 635x665) Image search: [Google]
1434531458772.jpg
65 KB, 635x665
Web-dev noob here. I've covered HTML, CSS (bootstrap) and JS (jQuery) and I've built 2-3 hobby projects nothing spectacular. Should I start Angular or try to get some more basic web-dev experience?
>>
>>54649346
Make something simple with angular and focus on DI/SOC and how you're supposed to use directives instead of modifying the DOM directly.
>>
>>54649227
Why is bootstrap a big no-no?
>>
File: js.png (24 KB, 500x500) Image search: [Google]
js.png
24 KB, 500x500
What are minimal req for back-end job?

JS, IO, NODE?
>>
>>54639972
Now they do not even have working plugin for background service on own thread senpai.

And its 6.0th version
>>
Starting a new job in 3 weeks working as a frontend backbonejs dev. This is my first time working with something other than bootstrap/css/jquery plugins. Comfort me /wdg/
>>
>>54642749
The image is being pulled from an api server, I wanted to have the div so it have have a black, straight edge and cornered background to act as a kind of frome behind the image. The image to have border radius applied for a curved edge
>>
>>54644964
https://ma.ttias.be/technical-guide-seo/
>>
>>54649632
PHP
>>
>https://www.cutestrap.com/

This will combine with my stripped socks for /bst/ photos
>>
>>54650893
Make a jsfiddle/jsbin with what you want and I'll help you out
>>
QUICK

What is the simplest way of getting a frield (auto-increment ID) from an SQL INSERT query in the same query? I tried OUTPUT put doesnt work :/

I feel bad having to do an insert and then a select in a separate query. Id rather just insert and retrieve the generated ID in one go.
>>
>>54649227
>>54649608

I only use bootstrap for their buttons and dropdowns in all my work, i think thats quite acceptable.
>>
>>54651135
PDO::lastInsertId :o)
>>
>>54651178
What if i dont use PDO :/ Just need it in raw SQL syntax.
>>
>>54649608

it's fine if you're doing backend for a living, dont listen to Pajeet
>>
>big client is dropping us for their website despite having been working on it for a year
>the area of the company I'm in has moved to India (who our team trained)
>several years of experience now means shit as I'll be doing drips and drabs in another area of the company

Guess it's time to look for a new job then. God I fucking hate this industry.
>>
maybe this is a good place to ask this.
i want to do an $.ajax(...) call and then pass a .done( f ) function. the callback function receives the server response as an argument, but how can i pass it another custom argument? something like
$.ajax( ... ).done( f );

function f (response, myarg) { ... }
>>
>>54641263
I am learning RoR currently
The tutorial the other anon rec'd is great
When it comes to Ruby Addison-Wesley's Practical Object-Oriented Design in Ruby is great to refresh OOP concepts and Eloquent Ruby has made me love Ruby
I am also reading Rails 4 Test Prescriptions and it's pretty good, Rspec is neat and Capybara is really cool too
>>
>>54652206
if I understood you correctly
$.ajax(...).done(response => f(response, 'whatever'));
>>
>>54639972
Why use Cordova instead of something like React Native?
>>
>>54652227
so basically just an anonymous function that calls my function and passes on the response.
would have gone with that solution anyways if there was no other solution, thx mate.
>>
>>54648215

It's not complete bullshit.

Putting embedded CSS in the homepage can speed up rendering time, especially if you've bloaty CSS.

Putting embedded CSS on the homepage that's just enough to render the page means as soon as the HTML is loaded, the page will fully display rather than hanging around for the CSS files to load.

Can make a big difference on mobiles.

You get it so that people coming to the site the first time get the embedded CSS, you load the CSS files after it's rendered and then on future pages don't load the embedded CSS.

I believe there are even scripts/preprocessors that'll scrape a page for just the required CSS and embed it on the page.
>>
Anyone knows some fast and simple in-memory db for storing sessions in Flask/python? I don't really want to use either redis or mongo.

I woudln't need to do this if python allowed storing objects in the session variable.
>>
>>54653087
SQLite?
>>
>>54649322
>>54646407
Nigga, IndexedDB is a thing.
>>
>>54653137
>SQLite
>in-memory
>>
>>54653736
https://www.sqlite.org/inmemorydb.html
>>
>>54653757
Any advantages for using this over memcached or redis?
>>
>>54653788
redis and memcached are better suited for large applications with algorithms focused on caching and getting shit fast. They should also scale way better than sqlite.

>SQLite supports an unlimited number of simultaneous readers, but it will only allow one writer at any instant in time. For many situations, this is not a problem. Writer queue up. Each application does its database work quickly and moves on, and no lock lasts for more than a few dozen milliseconds. But there are some applications that require more concurrency, and those applications may need to seek a different solution.

Taken from:
https://www.sqlite.org/whentouse.html
>>
File: 1440242537921.gif (3 MB, 390x215) Image search: [Google]
1440242537921.gif
3 MB, 390x215
Writing a router for javascript. Figured why the fuck not, might as well. Close to being done.

Though, like with all other personal projects, I probably will take another 2 weeks to finish it off because I'm too lazy to dedicate time to my own projects.
>>
Have a high school degree but a good deal of experience. Will I be able to get a job?
>>
File: 1459717532127.jpg (126 KB, 911x615) Image search: [Google]
1459717532127.jpg
126 KB, 911x615
>>54653938

Maybe. Universities are shit anyways. I finished one, I should know.

It's all about how you can understand the programming principles and programming languages and solve problems.
>>
File: HDAc0pt.jpg (52 KB, 506x662) Image search: [Google]
HDAc0pt.jpg
52 KB, 506x662
>>
>>54654084
noob here
why is this a bad idea ? d
>>
>>54654362
>this is your typical JS web dev's understanding of computers
>>
>>54654362
holy shit
>>
>>54654394
>typical JS web dev's
started this shit some weeks ago and have no idea about hardware n shit
>>
>>54654394
*tips autism*
>>
>>54654454
>butthurt js babby detected
>>
File: 1441831969213.jpg (129 KB, 450x360) Image search: [Google]
1441831969213.jpg
129 KB, 450x360
>>54654493

>He starts off in his life by naturally knowing the differences between languages.

Man, I know you're trolling, but that's just fucking sad.
>>
File: 1371110367667.jpg (77 KB, 368x368) Image search: [Google]
1371110367667.jpg
77 KB, 368x368
>>54654362
Device drivers are not supposed to be super fast because hardware limitations and shit. They are to be written a low-level slow languages like C and shit. Javascript is fast high-level language because websites are supposed to be fast.

So writing device drivers in Javascript is cow-fucking-horse bad.
>>
what's your guys opinion on cofeescript, less and sass? just curious.
>>
>>54654769
Coffeescript has lost its 5 minutes of fame some time ago when the whole ES6 hype started.
LESS and SASS/SCSS are two tools for the exact same thing (and quite similar). SASS/SCSS is more popular tho
>>
>>54653137
I'd prefer a nosql
>>
>>54654547
I want Rose to do Twitch, she would get partnered in 2 months.
>>
>>54654662
Nigga I hope you're trolling but I just don't fucking know anymore.
>>
huh, why doesnt it work ?
https://repl.it/CTXI
it removes the second "2" but then it doesnt remove the "4" and "1"
works fine for the second input
>>
>>54655015
>looping through the original array while you're manipulating it
why lad
>>
>>54655015
you are looping over an array while at the same time removing items from it.
your all.length gets smaller and smaller so it won't check the last items.
>>
>>54655015
I'm guessing when you remove a 2, the counter increments to the 1, but the 1 is now where the 2 was. The 1's never get touched by the counter because the 2 pulls it back when the counter increments.

In the 2nd example, duplicates do not succeed duplicates
>>
>>54638105
Is History.js considered deprecated? I just implemented on a site without any issues, but I'm worries about the fact it has not been maintained in years.
>>
>>54655015
>>54655124
Yes, just by using simple console.log, I can tell that the counter increments each time, length is updated each time, and the array does shorten when an element is removed. Removing those 2s makes the counter skip past the 1s
>>
>>54655172
Just use pushState.
>>
>>54655190
>https://repl.it/CTXI
>>54655172
>>54655124
>>54655094
>>54655090
lel, I'm too tired
just added k=0; to the if of the second loop so the counter goes back

for(var k=0; k<all.length; k++) {
if(k != all.indexOf(all[k])) {
all.splice(k,1);
k = 0;
}
}

it werks now
>>
>>54654824
>Coffeescript has lost its 5 minutes of fame some time ago when the whole ES6 hype started.
this is bullshit, the only thing ES6 adds is let blocks which is a stupid Lisp hack to try and fix the scoping problems with Javascript. Dont be surprised if browsers start supporting a native version of Coffeescript in the future
>>
>>54655238
whatever, famy. time would tell
>>
>>54655230
jesus christ, that solution and no code tags either
>>
>>54655282
IT WERKS :^)
>>
>>54655238
>the only thing ES6 adds is let blocks
LITERALLY false
>Dont be surprised if browsers start supporting a native version of Coffeescript in the future
lol
>>
>>54655324
>LITERALLY false
good counter argument, you can go back to doing fizzbuzz on /dpt/ now

Javascript ONLY has function scope and file scope, anyone here want to tell me how let blocks are a good fix, Id like to hear it. Let blocks are really EM6's only solution to the problem
>>
>>54655390
huh?
i meant that es6 adds a lot more things to the language than just let blocks
https://www.google.com/#q=what+does+es6+add+to+javascript
>>
Writing up a Go websocket server around RethinkDB. Just finished server-side client subscription to a thread and fetching of missed messages + tests.
>>
>>54655543
Is the code available somewhere? Are you trying to do a Go implementation of horizon.io?
>>
>>54655238
>the only thing ES6 adds is let blocks
>I have no fucking idea what I'm talking about
Here's a small sample of some of the differences

For a larger list of categorized differences and their support among various browsers, you can look at https://kangax.github.io/compat-table/es6/
>>
>>54655571
https://github.com/bakape/meguca/tree/synchronisation

I'm writing a realtime imageboard, but some things sprout off as separate libraries (like the thumbnailing backend). Not sure if the websocket code will ever be generic enough to split off into a library.
>>
>>54655707
Holy shit, anon. I thought this was something way smaller. Great to see something like this on these threads.
>>
>>54655612
ok, I'll admit let is not as bad as I thought, still having to explicit declare variables local to scope is clunky compared to modern scripting languages like Python and Ruby. Everything would be a lot clearer if they just totally re-did Javascript by making Coffeescript its own compiler
>>
File: 13279321.jpg (61 KB, 300x283) Image search: [Google]
13279321.jpg
61 KB, 300x283
What's the cheapest way to make my website more famous?
>>
File: 1435701307045.jpg (43 KB, 600x401) Image search: [Google]
1435701307045.jpg
43 KB, 600x401
>>54655612
ES6 looks fucking amazing

Is browser support for it considered good enough to use in small websites yet? I really want to try it.
>>
>>54656009
posting frog pictures

>what is the cheapest way to make money
>>
>>54654878
>>54654547
is she back around?
>>
>>54655905
>let's break 99% of all websites so you don't have to learn to use javascript
>>
>>54656051
use babel
>>
>>54656063
To be fair, it could be done with a "use strict"-type header. Or better yet, make only available in System modules, once those finally hit native.
>>54656051
Almost full native support in Chrome, FF and Edge. If you absolutely have to lick Apple and corporate balls, see >>54656085 .
>>
So

God Emperor Tier
C#

Kings
D, F#

Nobles
Ruby-onRails

Peasants
JSP, Javascript

Untouchables
VB.NET

Zulu masses
PHP
>>
>>54656232
Add Go to Kings and Python to Nobles and yeah, pretty much.
>>
>>54656232
C# is at most Kings tier

Django is God Emperor tier
Flask is Nobles tier
>>
>>54656009

Put a stream on that site

Stream yourself an hero
>>
>>54656189
>let's add yet another complex thing to web browsers and standards just so you don't have to learn to use javascript
>>
>>54656257
>>54656232
>comparing programming languages to web frameworks
>>54653610
>>
>>54656232
>Zulu masses
>PHP

Don't mind me then I'll just keep being employed.
>>
>>54656279
Tell that to the guy who put Ruby on Rails there

Either way: Python is God Emperor tier
>>
>>54656009
Spew racist and nazi propaganda pn twitter against your site using SJW hash tags
>>
>>54656286
>Don't mind me then I'll just keep being enslaved.
FTFY
>>
I want to learn about online payment. What is the best way to get paid and payout on the Internet and why?
>>
>>54656263
I don't mean the CoffeeScript cancer. I mean fixing longtime faults in the language ala ===.

>>54656232
Elder God Emperor of Concurrency and Maintainability Tier
Go
>>
File: 1311527860696.png (232 KB, 640x480) Image search: [Google]
1311527860696.png
232 KB, 640x480
>>54656299
>Toy Language
>God Emperor tier
>>
>>54656305
>enslaved
I don't disagree.
>>
>>54656299
SLOW
>>
>>54656355
>implying
Benchmarking my gargantuan django projects at work, and nothing runs more than 0.001 seconds. Even SQL queries are slower than the python code. This is without Pypy obviously

>>54656337
>toy language
nice meme
>>
>>54656051
>Is browser support for it considered good enough
There is a link to a page that breaks down ES6 support for every major browser and javascript platform in the post you replied to
>>
>>54656331
>Elder God Emperor of Concurrency
node.js?
>>
>>54656331
== just does type coercion if needed
its a weakly typed language after all
>>
File: 1346790825394.jpg (7 KB, 195x258) Image search: [Google]
1346790825394.jpg
7 KB, 195x258
>>54656396
>meme
Whatever makes you feel better
>>
>>54656396
>nothing runs more than 0.001 seconds
Okay, now do the same with 10 000 simultaneous requests.
>>54656426
heh
>>54656436
Is that why Eich tried to correct it, as soon as he realised what kind of shit it is? Was too late though. ES refused and presented === as a compromise.
>>
>>54648329
But I do have management studio installed, I can start it and all, it was installed by Express.
It's not management studio that's the problem, it's the actual SQL server that is the problem, you know, the program that actually serves and processes SQL queries, it's not fucking installed.
>>
>>54656502
>Okay, now do the same with 10 000 simultaneous requests.
We do.
>>
>>54656533
On a single backend instance and without simply loading 10k identical requests from cache?
>>
>>54656570
I seriously hope you don't do this at your work
>>
>>54656607
You see, that is my point. Redirecting to your cache completely identical requests answered by a huge cluster is no indicator of the language's performance. All it says is that your cache is fast and your servers are beaffy. Now what if you need to serve highly individual responses and, God forbid, live updates with emphasis on hardware cost reduction and power bills?
>>
>>54638105
That hereford kylu is far too deep in the front, who bred that thing.
>>
>>54656693
I know. Thankfully there are tools for simulating live project use
>>
>>54649632
>js
>node
>back-end
AYYYLMAO
Any pajeet with java/php/.net will kek all over you and be your boss.
>>
<html>
<head>
<title>My website</title>
</head>
<body>
<h1>My website</h1>
<p>Welcome to my webiste</p>
<p>&copy; Pajeet Industries, LLC.</p>
</body>
</html>


when can i get job?
>>
>>54656232
No...

God Emperor Tier
PHP, Javascript, Python

Kings
C, Shakespear

Nobles
C++, Go

Peasants
D, F#, Ruby, JSP

Untouchables
C#,

Zulu masses
VB.NET
>>
>>54657002
literally my negro
>>
>>54656931
>no indentation

never
>>
Lads got a question, srs c#/.net developer, but I feel bored with the tech. What should I learn, was thinking either js with node, or maybe python or go? I like concurrent shit, for a project thinking of writing an irc bot with lots of random functions.
>>
i want a qt webdev trap gf
>>
>>54657055
Python + Django is literally the most fun, smooth shit out there. It is a comparatively minor side effect that your productivity will increase
>>
>>54657092
Completely fucking painful

I can feel the shit code just emanating off of you wafting like waves against a mountain side never to change
>>
>>54656931
Where's your meta and doctype tags?

Either way start monday
>>
>>54657162
Ill give python a go, lack of curly brackets puts me off a little, guess just gotta push through my c# autism.
>>
>>54657293
It was weird for me too, coming off 15 years of C, but you realize that you format shit the exact same way anyway and brackets become a waste of space
>>
anyone seen Macenzie Child's 12 rails apps videos?
https://www.youtube.com/watch?v=7-1HCWbu7iU&list=PL23ZvcdS3XPLNdRYB_QyomQsShx59tpc-

he is seriously gay though
>>
>>54657169
what does shit code have to do with trap gf's?
>>
>>54657321
>nu-male look
>rails
>reddit
So stereotypical it's not funny
>>
>>54657350
There's only 1 hole and traps are fucking crazy m8. You'd have to be a shit developer to want a trap.
>>
>>54657002
>>54657039
plebs
>>
>>54655210
Can't be bothered to rewrite my code though
>>
Having a bit of trouble with socket.io-p2p's library.

Every message I send is getting doubled, and I have no clue how to fix it.

I checked the github's issues and another person had this problem, but closed his ticket without a single response. So I have no clue on how to fix this.
>>
>>54655210
that shitty api still doesnt support page titles
>>
Should I learn Flask or Django as my first framework?
>>
>>54657712
Django

Flask is a waste of time imo
>>
How difficult would it be to add mobile notifications to a site? I wanted to make a to-do list site that sends alerts when a task is due.
>>
210 :/
http://pixact.ly
>>
is it possible to make a portion of the page that is made of divs downloadable as image without remaking the whole thing in canvas?
>>
>>54658250
https://html2canvas.hertzen.com/examples.html

Just use this library
>>
>>54658369
thanks
>>
>>54656782
Just once I want to discus the cow with someone, and concerns about erosion of livestock genetic resources in the face of a few highly marketed and highly inbred lines...
>>
Front end dev position:

HTML, CSS, JS
jQ, Angular.js or similar

>No degree needed

Back end dev position:

HTML, CSS, JS
C#, .NET
SQL

>Technical degree needed

Design position:

Design theory
Portfolio

>No degree needed

>TFW front end babby
>TFW design babby
>TFW I have a meaningless degree
>>
File: 1449608494755.jpg (70 KB, 426x640) Image search: [Google]
1449608494755.jpg
70 KB, 426x640
>>54659223
>TFW full stack dev
>TFW terrible with CSS and need to learn SASS still
>>
holy fucking shit how has no one told me how amazing typescript is.
this fucking typing system is fucking great. also the codecompletion and documentations from tsd is fucking amazing.
why should i ever write in vanilla js anymore?
>>
>>54660232
typescript is shit

pure JS is GOAT and is far more extensible than fucking TypeScript
>>
>>54660259
elaborate.
>>
>>54659262
sass literally is css with brackates. you can also do some math and conditionals and can take advnatage of partials, mix ins and nesting through mentioned brackets.
>>
>>54657894
You could do something with sockets or web workers easily enough, or you could port your site to a hybrid mobile app and use push notifications.
Thread replies: 255
Thread images: 29

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

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.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.