[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]

/dpt/ - Daily Programming Thread

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: 326
Thread images: 38

File: dptaocp.jpg (98KB, 934x1000px) Image search: [Google]
dptaocp.jpg
98KB, 934x1000px
Employed Haskell programmer edition.

old thread: >>57078072

What are you working on, /g/?
>>
>>57084400
How much do you earn Employed Haskell programmer?
>>
>Programming the semiconducting jew
>>
File: 1473176707847.jpg (130KB, 768x1024px) Image search: [Google]
1473176707847.jpg
130KB, 768x1024px
Moanads
>>
>>57084421
$200k starting

>>57084435
>cock
>>
Is python a good first language?
>>
>>57084481
Yes.
>>
>>57084481
No.
>>
>>57084481
yes. Just make the mistake of thinking it's a good langugae in general.
>>
it makes me sad to see that so many of you waste your talents with being NEETs. i have the impression that some of you are really fucking talented but instead all you do is piss in bottles and jack off to lolis
>>
>>57084495
Do you have a credible source of this statement??
>>
>>57084505
Guido said so
>>
File: 1420112907201t.png (212KB, 550x535px) Image search: [Google]
1420112907201t.png
212KB, 550x535px
>>57084504
>i have the impression that some of you are really fucking talented but instead all you do is piss in bottles and jack off to lolis
Workplaces are filled with annoying Normies
>>
>>57084526
stupid frogposter nobody asked you
>>
>>57084504
Still better than working for Google
>>
File: 1466255330090.jpg (21KB, 329x345px) Image search: [Google]
1466255330090.jpg
21KB, 329x345px
>>57084504
>tfw pissing in bottles and jacking off to lolis at workplace
>>
>>57084534
he's not wrong
>>
File: image.jpg (940KB, 3000x788px) Image search: [Google]
image.jpg
940KB, 3000x788px
Pissing in bottles is comfier than working, friend
>>
File: ss+(2015-06-17+at+05.35.38).png (45KB, 580x571px) Image search: [Google]
ss+(2015-06-17+at+05.35.38).png
45KB, 580x571px
>>57084538
Go to bed, Max.
>>
>>57084481
Supposedly Python is easier for first time programmers to learn, but you'll end up abandoning it when you realize it sucks and wish you had put that time into learning a real language.
>>
>>57084505
Sort of: my own 16-year long experience in writing Python code for various tasks.

Compared to most other languages, Python is fine for beginners. If nothing else, it beats Java in everything. Java is fine for certain tasks, but not for beginners. Java rots their mind, like BASIC did back in the day.
>>
>>57084584
>>57084587
python ruins you for life
python rots your mind

don't learn python
don't learn java
>>
>>57084587
>experience
kek
>>
>>57084587
>it beats Java in everything
Java is much faster
Java is much better for large codebases simply by virtue of the fact it is statically typed.

Java isn't even a good langugae in comparison to other langugaes you could be using.
>>
>>57084596
>python ruins you for life
>python rots your mind

if you don't know what you are doing
>>
>>57084481
Just learn C. It's the only language you need.
>>
At least we can all agree that Haskell is unironically an excellent first choice of language
>>
>>57084624
no, it's the last choice of language

all languages come before it
>>
>>57084481
i personally think it is
it is really fun to write some cool scripts and shit like that to automate boring tasks

i'm new to python but it has helped me a lot
>>
>>57084631
>no, it's the last choice of language
this exactly. Haskell is the end game.
>>
>>57084635
my post could be read this way too

if it makes you feel better
>>
>>57084631
start with the good stuff
>>
>>57084646
>Using sarcasm ironically for truth telling
>>
>>57084504
Talent/knowledge/skill isn't even half the battle. To produce something useful takes a ton of time and effort. To produce something that creates value for businesses or individuals even more so.
>>
File: 1.png (1KB, 117x52px) Image search: [Google]
1.png
1KB, 117x52px
>>57084663
Not even close buddy.
>>
>>57084663
>>57084658
>>57084632
>>57084670
Samefags
>>
>>57084670
>>57084658
samefag
>>
>>57084400
what do you use haskell for?
I learned haskell some time ago, but never found a real application for it.
>>
>>57084551
that's apple juice right
>>
>>57084677
stfu and answer my question: >>57084504
>>
>>57084677
try again faggot
>>
File: 2.png (2KB, 111x86px) Image search: [Google]
2.png
2KB, 111x86px
>>57084677
Not even close buddy.

>>57084679
You don't even get a picture.
>>
File: hask.png (294KB, 960x800px) Image search: [Google]
hask.png
294KB, 960x800px
>>57084682
you use it for whatever
it's a general purpose language
>>
>>57084690
Making UI with Haskell sounds like a living hell.
>>
>>57084682
Literally almost everything. When I need fast code, I write it in C or C++ and then use Haskell to wire it together.
>>
>>57084682
Mathematics and statistics mostly
>>
>>57084699
callbacks are FP
>>
>>57084699
FRP is actually great.
>>
>>57084705
No shit
>>
>>57084677
>samefags
>fags
>s
...
Where is the German guy who wrote a program who could recognize users based on their writing style?
>>
>>57084699
>>57084714
https://en.wikibooks.org/wiki/Haskell/GUI
>>
>>57084400
Hey,

I'm doing the a/A jumpstart program. Has anyone applied to app academy? if not, what's your thoughts on the program? I'm trying to make the jump from my STEM degree and shift into programming. I don't feel like going back to school to get a masters in bioinformatics just to get an understanding of programming. So far, I'm in a week in and I feel like the culture of the program isn;t all that welcoming for newbie who are trying to make the shift into programming.
>>
File: 1470269867365.jpg (17KB, 264x277px) Image search: [Google]
1470269867365.jpg
17KB, 264x277px
>>57084740
>falling for the STEM meme
>>
>>57084690
Yes, that's the problem. I can write fast code in C, and I can write code fast in python. Never had the need to use haskell for something.
I wanted to use it for prototyping but I find slow to iterate between write-compile loop.
>>
>>57084740
>a/A jumpstart
never heard of this. got a link?
>>
>>57084750
use ghci rather than compiling
you could even just keep it open and :r to reload
>>
>>57084481
http://cacm.acm.org/blogs/blog-cacm/176450-python-is-now-the-most-popular-introductory-teaching-language-at-top-u-s-universities/fulltext
>>
>>57084540
what was her name again?
>>
>>57084749
I work at a big pharm company that cures leukemia and luckily one of the original team that will be there when the drugs launches commercial, so my resume will look really good.

>>57084756
There's no official link for the jumpstart, but there's a get hub.
https://github.com/appacademy/jump-start
their mainsite https://www.appacademy.io/
>>
>>57084788
>2. Set up ruby on Cloud9. (Or on your Mac)
alright i'm a macfag but this is pretty dumb
>>
>>57084788
>I work at a big pharm company
I'm always amazed how they manage to make curing diseases seem evil
Let me guess, there are literally no negative side effects whatsoever
>>
>>57084750
Don't sweat it. If it seems useless to you and you're happy with C and Python, just don't use it. But don't shitpost about how 'Hasklel a shit' in DPTs, please.
>>
>>57084800
Let me guess too. You pay $xxx everyday for the rest of your life or you die
>>
just bored and thought id try to play with some js my questions are

1)I figure I need a submit button on the html?

2) and I need to call the function after defining it?

3) should I just take the inputs with JS and leave out the HTML, what do people usually do? (although I kinda like learning the HTML with the JS, dont think id bother learning it on its own lol)

4) are those alerts written right, i just tried to write it like python's print

    <!DOCTYPE HTML>
<html>
<body>
<p>Please Enter A Temperature</p>
<input id="temp" type="number">
<p>Please Enter The Scale</p>
<input id="scale" type="text">


<script>
function calctemps(){
var temp = document.getElementByID("temp");
var scale = document.getElementByID("scale");
alert("Your Temperature is", temp);
alert("Your Scale is", scale) ;
}
</script>

<p>Space For Footer</p>
</body>
</html>
>>
>>57084813
t. someone who doesn't eat food
>>
>>57084750
Haskell is better than python. You're simply not smart enough to understand its beauty.
>>
>>57084823
with food there is some amount of choice
>>
>>57084825
>Haskell is better than python.
that's not saying much
>>
>>57084788
wait so you have to pay them 22% of your first years salary? that's a lot anon...
>>
>>57084802
the fact is that haskell isn't shit, is a very beautifull language and I would want python to be more like haskell, but is still slow to protoptyping with haskell.
>>
>>57084837
I'm not arguing, I just know you don't know I know you're wrong
>>
>>57084832
How else should it work then?

>>57084842
Holy shit what a scam.
>>
I swear to god if I hear another fucking Python user give me the fucking prototyping sales line I'm gonna kill myself
>>
>>57084853
i am joking of course

the python users won't survive the purge
>>
>>57084853
python is for prototyping, end your life faggot
>>
>>57084865
python is shit for prototyping
>>
>>57084865
>fail to even copypaste
wow you really are worthless
>>
>>57084870
post code or GTFO
>>
>>57084876
What code?
>>
>>57084400
So why is there no P2P search engine? How feasible would it be?

>>57084879
What did he mean by this
>>
>>57084853
What the fuck even is prototyping. I can't think of an instance where I have wanted to prototype something. The only thing I can think of is if it involves UI/UX? But then you're better off spending 10 minutes in ms paint drawing boxes and diagrams instead of programming forms.
>>
>>57084888
>What did he mean by this
https://www.youtube.com/watch?v=GRWbIoIR04c
>>
File: CeWLlDZVIAA7EG3.jpg (32KB, 600x600px) Image search: [Google]
CeWLlDZVIAA7EG3.jpg
32KB, 600x600px
>>57084788
>>57084800
>>
>>57084896
>not into maths
codemonkey spotted
>>
>>57084821
you're doing the python/ruby thing where you expect your guesses to just work

do something like <button onlick="calctemps()">Print</button>
in general i would not write event code this way but at least this will get you rolling. there are other problems which you will hopefully discover
>>
>>57084888
>>57084899
Also, checked
>>
Can learning to code help further my shitposting career?
>>
>>57084842
I am told they will discuss with you if you can't pay that much. I know a guy who got a job with google through this company.
>>
>>57084914
>prototyping math
What did she mean by this?
>>
>>57084950
what

>>57084929
If you code a neural network that learn what posts got the most (you) then yes
>>
>>57084929
automatic markov shitposting
>>
>>57084800
> there are literally no negative side effects whatsoever
As of yet, no. There was an issue with juno's product. Also, I understand why you have that kind of mentality, but would you rather deal with the side effects or live with a crippling disease? The only true evil with pharm companies is how they treat their workers and the readiness to shift to a new product or cut ties and sell the name of the drug while fucking with their workers who got them there.
>>
File: rnn_in_action.png (46KB, 1404x564px) Image search: [Google]
rnn_in_action.png
46KB, 1404x564px
>>57084943
done with rnn
>>
>>57084962
source code? ',:^)
>>
File: theano_warfare.png (67KB, 1385x538px) Image search: [Google]
theano_warfare.png
67KB, 1385x538px
>>57084962
another example I screenshoted
>>
daily tip: coding isn't programming
>>
>>57085102
but programming is coding
>>
>>57085102
you already posted this today
>>
File: discord-logo.jpg (36KB, 1080x675px) Image search: [Google]
discord-logo.jpg
36KB, 1080x675px
Daily reminder that you guys are cordially invited to the /dpt/ discord

https://discord.gg/whKvZ
>>
>>57085133
god damn irc fags
>>
>>57085133
>Discord
Literally /v/: The Proprietary Chat Platform
>>
File: 1408751367381.jpg (2MB, 3504x2336px) Image search: [Google]
1408751367381.jpg
2MB, 3504x2336px
>>57085133
>tfw no client for linux
>>
>>57085133
b-but... I'm always ignored on IRC/Discord.. :/
>>
>>57085156
linux doesn't have web browsers?
>>
>>57085173
linux doesn't have web
>>
>>57085173
>What is Javascript, HTML, HTTP...
Literally cancer
>>
>>57085173
>proprietary javascript
hmm
>>
>>57085200
Whats that?
>>
>>57085173
https://discordapp.com/apps
>>
How would I create a graphing system for the web? I have backend data coming from an external piece of hardware and would like to graph it onto a webpage so that I could monitor it from anywhere.
>>
>>57085248
there are a shitton of javascript graphing packages
>>
>>57085256
And everyone of them is shit.

>>57085248
Just code a custom librarie
>>
>>57085211
https://discordapp.com/api/download/canary?platform=linux&format=tar.gz
>>
File: screenFetch-2016-10-15_17-29-47.png (456KB, 1920x1080px) Image search: [Google]
screenFetch-2016-10-15_17-29-47.png
456KB, 1920x1080px
hello ""whizzkids"", just spent my day programming a new tab page for chrome.
>>
>>57085296
>44mb of proprietary goodness
thanks
>>
>>57085302
no, the speech marks go around programming
>>
File: sdthen.png (26KB, 1024x768px) Image search: [Google]
sdthen.png
26KB, 1024x768px
>>57085296
thanks
>>
>>57085302
For what purpose?
>>
>>57085316
>software development pre-monad
I don't like to think of those times
>>
>>57085302
>Take a day to do something that can be done in a minute
>>
>>57085325
>software development pre-embeddable chromium
ughh
>>
>>57084686
>>57084687
kek
>>
>>57085316
>tfw my workplace is the top part, and we make fun of the bottom part
Feels good to be an embedded dev
>>
>>57085317
to reduce the number of actions i have to preform to go to frequently visited pages?

>>57085327
shut up gay, you sound jealous
>>
>>57085316
Now Java and C# are considered low level. Everything is JavaScript now.
>>
>>57085359
>bla bla bla
Amateur. :^)
>>
>>57085316
/thread
>>
SimpleDateFormat sdf = new SimpleDateFormat("u");
Date date = new date();

if (String.valueOf(sdf.format(date)) == "1");
{
// mon
} else {
if (String.valueOf(sdf.format(date)) == "2");
{
// tue
} else {
if (String.valueOf(sdf.format(date)) == "3");
{
// wed
} else {
if (String.valueOf(sdf.format(date)) == "4");
{
// thu
} else {
if (String.valueOf(sdf.format(date)) == "5");
{
// fri
} else {
// sat and sun
}
}
}
}
}


So what is the actual way of doing this shit in java?
>>
>>57085401
>>57085316
So this is how we will end it?
>>
>>57085424
switch
>>
What's the best way to learn to code?

Codecademy? Treehouse? Lynda.com?

Pls no bully.
>>
>>57085443
At home in your parents' basement
>>
>>57085424
1. Don't roll your own time functions
2. Don't roll your own time functions
3. Don't roll your own time functions
...
n. Use the fucking library
>>
>>57085443
edx
>>
>>57085477
SHould I just take the Harvard course? I watched the intro and it seemed geared towards faggots.
>>
>>57085430
end what?
>>
>>57085487
no. take either

http://htdp.org/
https://www.edx.org/xseries/systematic-program-design-0

or

http://www.cs.hmc.edu/csforall/
https://www.edx.org/course/cs-all-introduction-computer-science-harveymuddx-cs005x
>>
File: screenFetch-2016-10-15_17-55-21.png (473KB, 1920x1080px) Image search: [Google]
screenFetch-2016-10-15_17-55-21.png
473KB, 1920x1080px
implemented hover-over color change
>>
>>57085533
>>>/g/wdg
>>
>>57085587
oh excuse me
>>
https://medium.com/@loorinm/coding-is-over-6d653abe8da8#.h7leg55wh

really made me think
>>
>>57085502
Sweet, thanks anonkun.
>>
Link me some books that'll make me think.
>>
>>57085621
http://learnyouahaskell.com/chapters
>>
>>57085602
screw anon what font is that on the right?
>>
>>57085533
wow its fucking nothing
>>
>>57085628
http://learnyouahaskell.com/starting-out#babys-first-functions

They misspelled babby.
>>
I want to make an app that will keep track of stuff, like you will add and item to a list and then you keep updating its status, keeping track of its changes etc

What should i use to store this all of this?
>>
>>57085648
bidirectional linked lists
>>
>>57085648
vector of vectors
>>
>>57085648
Hashmaps of red black trees.
>>
>>57085648
sqlite
>>
>>57085609
is this satire
>>
>>57085628
The problem with Haskell is that it's too much magic. How what's going on at runtime relates to the code you've written is pretty much a black box.
>>
>>57085648
fingers, including thumb
>>
>>57085660
>>57085666
>>57085681
>>57085692


I don't mean data structures

I mean should i start it with a database? Or should i use something else entirely?

A database right? maybe there is something else that i don't know
>>
>>57085697
For some problems, that's not a big deal.
>>
>>57085697
haskell is definitely magical
>>
Is android the only reason why java is still alive?
>>
>>57085727
enterprise
>>
>>57085706
what do you mean? yes, use a database, for example sqlite that lets you store your data locally on your device
>>
>>57084802
The funny side is that one can tell (and with a lot of arguments) why someone using haskell should do something in python instead and get a better result. The haskell guy can't justify to a pythonist why is better haskell for something other than "muh circlejerk".
>>
File: awk_sed.jpg (17KB, 300x272px) Image search: [Google]
awk_sed.jpg
17KB, 300x272px
>>57085706
why can't you just use plain text? There's a whole forgotten tradition of plain text editing tools (Awk, sed, ed, etc.)
>>
>>57085609
>Hack Reactor
>2015 – 2016
>Advanced Software Engineering Immersion Program
just got here but you guys are doing this all wrong
>>
>>57085628
I've never seen a task where I thought Haskell could provide the answer. What's it good for except fucking around?
>>
>>57085364
>Now Java and C# are considered low level.
nigga what?
Who would call them low-level in sane mind?
>>
>>57085757
>TYPE THEORY

in type theory you talk about type theory and look at haskell
>>
>>57085757
everything
>>
>>57085761
JavaScript programmers
>>
>>57085739
Strong types, algebraic data types, higher-kinded types and type classes are much better than anything Python can offer.
>>
>>57085773
>JavaScript programmers
>>
>>57085765
Sounds like masturbation.
>>57085768
Then why is nobody using it?
>>
>>57085793
most major languages have been adopting FP features for the past 10 years you heathen
>>
>>57085629
SquadaOne
>>
>>57085793
>Sounds like masturbation.
it really isn't

it's just not much of a programming language
>>
>>57085789
yes, JavaScript programmers
>>
>>57085765
Haskell isn't even that great from a type-theoretic point of view. If you want a pure language, use SML or Agda.

>>57085793
>Then why is nobody using it?
The fact that you don't know anybody who does doesn't mean it's not used.
>>
>>57085632
bullying isn't cool, you fucker
>>
>>57085800
Type theorists are developing haskell so that they can do more type theory. That's quite masturbatory.
>>
>>57085810
actually, bullying IS cool
>>
hi guys total pleb here, what's the difference between
public static void main(String[] args){}

and
public static void main(String args[]){}

? hope I get the code stuff right.
>>
>>57085799
thank you now I can complete my National Socialist commemoration SPA
>>
>>57085836
>Judean People's Republic
>>
>>57085822
Systems programmers develop GCC/LLVM so that they can do more systems programming. That's quite masturbatory.
Web developers develop SpiderMonkey/V8 so that they can do more web development. That's quite masturbatory.
>>
>>57085133
>The instant invite is invalid or has expired.

:(
>>
>>57085836
>String[]
It's and array

Because there are multiple possible arguments for the program it has to be an array
>>
>>57085836
anon are you aware that those are the command line arguments the program receives?
>>
>>57085836
>public static void final protected[][] String return[] unsafe private
JUST
>>
>>57085888
all those are useful keywords anon.

Are some a python fag by any chance?
>>
Do you guys have a github for meme posting?
If so, post usernames so we can check out your projects.

Bonus points if you have a cute anime girl as profile image
>>
>>57085842
>>57085857
>>57085873
This doesn't mean much to me. Is there something really basic I can read to know what I'm doing? I'm following a very practical-oriented tutorial right now and really don't know anything yet.
>>
>>57085930
assuming both are valid, it's almost certainly exactly the same
>>
>>57085925
https://github.com/haasn
>>
>>57085925
I used to have a cute anime girl profile on neetco.de but they got shut down.
>>
File: 1475143072125.jpg (15KB, 448x283px) Image search: [Google]
1475143072125.jpg
15KB, 448x283px
>>57085945
gambatte ne!
>>
>>57085943
I see. since the tutorial changes it up without comment I was unsure if it mattered
>>
>>57085945
>https://github.com/haasn
very cute senpai
>>
>>57085965
>>57085991
i was sadly trolling, i wish i was that guy, he's a major contributor to mpv. i'm pretty sure he browses /g/ though.
>>
>>57085930
If this is Main.java

public class Main {
public static void main(String [] args) {
for (int i = 0; i < args.length; i++) {
System.out.println(args[i]);
}
}
}


And you compile it and run it from your terminal

javac Main.java
java Main hello world blah blah


It will print "hello world blah blah" with each word on its own line, because each word is an argument in the args array (a "token").
>>
>>57085609
>some can't accept the fact that their existence is unecessary
>>
File: 1468899863437.jpg (95KB, 394x404px) Image search: [Google]
1468899863437.jpg
95KB, 394x404px
What's the second movie about a database engineer called?
>>
File: SQL.png (138KB, 350x350px) Image search: [Google]
SQL.png
138KB, 350x350px
>>57086021
>>
In C if I want to create a struct with two arrays each with an unfixed size, is the correct way to just store a pointer?

But isn't an array already a pointer kind of?
>>
>>57086021
i don't get it
>>
>>57086021
Reloaded

A SHIT
>>
>>57086047
>is the correct way to just store a pointer?
yes

>But isn't an array already a pointer kind of?
sort of
>>
>>57086008
he definitely does

whoever he is, he is exactly what people in this thread should be
>>
>>57086052
Some people think that SQL is pronounced as a "sequel".
>>
>>57086074
>some people
correct people
>>
Would you free Dennis Ritchie from prison twice?
>>
>>57086047
You could do
struct {
int len1; //length of first array
int len2; //length of second array
char contents[]; //actual content of both arrays. access the first one with thing->content and the second one with thing->content + thing->len1
};

The language can't do it for you though, this is C after all.
>>
>>57086105
I never free
>>
>>57086094
This is one of them.
>>
>>57086074
>You say it as SQL first in a sentence
>The person you're talking to then say sequel
>Kill me ;_;

>>57086094
SEQUEL
>Structured English QUEry Language
SQL
>Structured Query Language

Not they're not fucking right, they're just cunts.
>>
>>57086074
hold on a sec i gotta code a gooey to make a queer-ee to the DEE BEE and filter the results on the users əˈtrJbjuːts
>>
>>57084481

It is a very good entry language but seriously you should drop that shit as soon as possible and start learning something useful like C++
>>
>>57086116
i bet you think php is pronounced phap
>>
>>57086132
I usually pronounce it "shit."
>>
https://github.com/channelcat/sanic
>>
>>57086135
why is shit? because you read on internet that was?

kys
>>
>>57086145
>python
Why did you link me to this?
>>
>>57086145
>Python
>fast
kek'd
>>
>>57086145

no sanic, stahp!
>>
>>57084615
So, like a beginner?
>>
File: easter_1998.jpg (22KB, 501x388px) Image search: [Google]
easter_1998.jpg
22KB, 501x388px
>>57086149
Rasmus Lerdorf go leak memory somewhere else
>>
>>57086180
or like anyone using Python
>>
>>57086145
>Reformatted code to use spaces instead of tabs
b-but... why?
>>
>>57086121

funfact:

SQL was previously named "SEQUEL", but due to copyright calims they had to call it "SQL".

So there is nothing wrong to call it "sequel", because that was the original name.
>>
>>57086195
PEPE 8
>>
>>57086198
this is the copyright police
we have you surrounded
>>
>>57085845
Those comparisons are not even remotely valid.
>>
I want to create a catalogue/logging program.

I want it to run on the desktop. Would it be stupid to program the whole thing using web languages then utilise a web frame viewer thing within the program to use the software from the desktop?
>>
>>57086145
1. Why aren't you comparing it to fast servers?
2. Why only 100 connections? People were serving 100k parallel connections back in the 90s.
>>
>>57086198
I actually learned something on /dpt/ today.
>>
>>57086286
>I want it to run on the desktop. Would it be stupid to program the whole thing using web languages then utilise a web frame viewer thing within the program to use the software from the desktop?
Frankly no, it works and it's cross-platform. Besides everything is going web these days so...
>>
>>57084960
> only evil is associated with their employees

Yea because marking up drugs %500 isnt evil. Just shit that has to do with your job security makes them bad


Yea
>>
>>57086295
>>100k connections
stop dreaming.
>>
>>57086198
>aware of copyright protection
>encourages others to infringe copyright on online forum

Do you have any respect at all for Warner Bros. Entertainment Inc. (often referred to as Warner Bros. Pictures, Warner Bros., also shorted to WB) and their claim to the character string "SEQUEL"?
>>
>>57086235
They are spot on. There's like one or two type theorists working on GHC, unless you count Richard Eisenberg, which would make it three.
>>
>>57086324
>Do you have any respect at all for Warner Bros
ahaha what the fuck of course not
>>
>>57086318
https://en.wikipedia.org/wiki/C10k_problem
By the early 2010s millions of connections on a single commodity 1U server became possible: over 2 million connections (WhatsApp, 24 cores, using Erlang on FreeBSD),[4][5] 10–12 million connections (MigratoryData, 12 cores, using Java on Linux)

10 million connections with a Java application on a single 1U server.
>>
>>57086304
I just realised I couldn't use PHP because I would have to run Apache or something to make it work. Is there any work around this? I'm not sure if forcing apache to run without the user's consent would work since I know there are certain programs with interfering ports like skype
>>
>>57086354
PHP has a built-in lightweight server
>>
>>57084551
please tell me thats apple juice.
>>
>>57086354
Not necessarily apache tho. I don't have time rn to go into the detail, but technically you could do web cgi programming without a web server and without taking up ports... Not saying this is practical immediately tho.
>>
>>57086382
It's piss and some vomit on the left wall
>>
>>57086329
When a type theorist is asked what Haskell is good for, he says type theory. And then he'll be hard pressed to come up with anything else. At least those on /dpt/.

When a systems programmer is asked what C++ is good for, he'll name many concrete applications that don't feed back into systems programming. Such as browsers, kernels, etc.

Haskell is mastubatory because it's a closed cycle with no output.
>>
>>57086395
Haskell is useful for literally everything except systems development and high-performance applications
>>
>>57086395
Just say you know nothing about Haskell and have never used and be done with it already. You're only embarrassing yourself.
>>
So I have a .obj file reader I wrote for my openGL project

It reads the text file and stores the vertices as a "vertex" type, which is just 3 floats with x y and z

I realized that it is probably I good idea to switch this to using GLM types because that's what OpenGL will use. Should I store 3d coords as vec3s in an array? maybe some type of matrix? or perhaps as vec4s with a zero w component?
>>
>>57086432
vec4s maybe, it depends
>>
>>57086432
scrap it beccause no one uses obj anyway
>>
File: flustered haskell programmer.png (313KB, 600x720px) Image search: [Google]
flustered haskell programmer.png
313KB, 600x720px
>>57086417
Haskell users get defensive very easily. When a C++ user is accused of his language being useless, he'll only laugh and point at the billion dollar industries built on C++ and the massive amounts of C++ code that every /dpt/ user is running each day.

But the only things a Haskell user can do is

a) mumble something about type theory
b) make vague statements such as "haskell is useful for literally everything".
>>
>>57086481
>b) make vague statements such as "haskell is useful for literally everything".
*true statements
>>
>>57086481
Take you're pedophilic cartoons back to /a/, dumb kyoukoposter.
>>
>>57085852
https://discord.gg/CHWne
>>
>>57086465

I don't care

>>57086445

on what?
>>
File: I feel the warp overtaking me.jpg (392KB, 1200x1159px) Image search: [Google]
I feel the warp overtaking me.jpg
392KB, 1200x1159px
>>57086395
>>57086406
>>57086417

I can feel it. Someday a year or two from now I'll realize, like some migratory bird, that the time has come to learn Haskell. It happened with Linux, then with vim, then Emacs. Haskell is so inane and cryptic that it's guaranteed I'll have to learn it some day, and then I'll return here just to shitpost some more.
>>
>>57085925
i will never post my repo again. /dpt/ is full of evil and dangerous people who will take on any occasion to bully and ostracize.
>>
Making a shit c# program for a uni project, using WPF, I need the user to be able to select multiple items (seats for a play).

I'm thinking the best way to implement it would be with a listbox, but if I understand correctly, the user would have to use shift click to select multiple items, which isn't the easiest for new users to know, unless I label it I guess.

Is there any other better way? I found a tutorial on a checkbox combobox by some pajeet which was like 500 lines of code kek
>>
What are some good /dpt/ memes?
>>
>>57086481
/thread
>>
File: 1424320557372.jpg (410KB, 876x2350px) Image search: [Google]
1424320557372.jpg
410KB, 876x2350px
>>57086579
>>
File: idris.jpg (21KB, 900x548px) Image search: [Google]
idris.jpg
21KB, 900x548px
>>57086556
If Haskell is your hand, then Idris is a tenga hole.
>>
>>57084888
yacy?
>>
>>57086579
>studio.h
is my favourite
>>
>>57084400
Is there a way to do the resolution of strings to already existing variables in Python?
Something like reflection in c#?
I want do change the values of variables during runtime with use input and testing everything with if-statements both would produce way too much code and wouldnt a flexible solution.
>>
>>57086634
learn haskell, then come back, scum
>>
File: 1383150601993.png (330KB, 730x962px) Image search: [Google]
1383150601993.png
330KB, 730x962px
>>57086593
I wish Idris wasn't so buggy.

>>57086579
pic related
>>
>>57086622
Why is this so ugly
>>
File: the-challenge-of-effects.jpg (63KB, 500x376px) Image search: [Google]
the-challenge-of-effects.jpg
63KB, 500x376px
>>57086481
>>57086395
Haskell is a safe and flexible language trying to become more practical.

C++ is a practical language trying to become more safe and flexible.

I think both want the same thing in the end.
>>
>>57086665
I, too, saw that talk thing.
>>
>>57086651
this just made me realize that I think of haskell what I thing of vegetables: they taste good and are good. But at the same time, I think of haskellers what I think of vegans: they will not waste a chance to tell you about it. Also, assholes.
>>
>>57086665
But Haskell has already been deprecated by the next FP meme language which even the Haskell people admit is better at FP than Haskell: Idris.

When you've 0% adoption, then nothing stops another meme from taking your users.
>>
>>57086692
I bet you $100 that guy doesn't even know Haskell.
>>
>>57086665
If I read that graph correctly, it says that Haskell is useless.
>>
>>57086651
faggotTest :: String -> Bool
faggotTest "you" = True
faggotTest _ = False
>>
Learning scheme at the moment, it's pretty comfy.
>>
>>57086634
it's not clear to me what you want. python has reflection, sure. be more specific about how you would do this in c#. you can run around executing arbitrary strings with exec() but i would try to avoid this as much as possible
>>
>>57086719
It is. That's why it's so surprising that it's used anyway.
>>
>>57086728
Me too, what resource are you using? just started half hour ago, trying to understand the difference of the different implementations.
>>
Calling all Pajeets / Enterprise bros / Java professionals...

I'm creating my own data mapping layer. I'm NOT using any frameworks such as Hibernate, etc... or ORMs / other abstractions.

My problem is I have a bidirectional many to many relationship in my domain model. Loading into memory seems simple enough - load the object, then load all of it's corresponding objects (while checking that they're not already in memory). The brain twister comes when I am inserting an object...obviously I'll want to also insert all of it's corresponding objects...which will then try to insert all of it's corresponding objects...and so on...

How do I structure this in a nice way? Could I keep track of what has already been inserted? Would a "unit of work" help out here?

Again, inb4 "use hibernate bro", I'm doing this all by hand.
>>
>>57086770
SICP
>>
>>57086701
>But Haskell has already been deprecated by the next FP meme language which even the Haskell people admit is better at FP than Haskell: Idris.
that's bullshit though
GHC has a ton of features Idris doesn't
Idris is supposed to be performant but has less optimisations than GHC
>>
>>57086801
Users of real time haskell will be shocked. Shocked.
>>
>>57086791
But why not use JPA/Hibernate?
In those frameworks there is a concept of a proxy.
Each object you get from a database is actually a dynamically created subclass of your object, and they use the mechanism of so called lazy fetching, other objects are fetched from the database only when you want to use them.
So basically when you get Person object from the database, then the Address object contained in it is not actually there, until you use it.
>>
>>57086729
I want do something like, "variablename value" as input and then change the variable to that given value.
I need to do this as i cant hardcode the values and the python script will only run as subprocess controlled by another program.
Exec seems to be pretty close to what i am looking for.
>>
>>57086770
I'm currently spread over a few things at the moment, the book "The Little Schemer" is supposed to be good but its format is quite confusing to me. I'm currently working though this though: http://web-artanis.com/scheme.html, "Learn Scheme in 15 minutes" it's just a big program to show the syntax off.
>>
>>57086770
Oh also, the Scheme website has its own book freely available on the website http://www.scheme.com/tspl4/.
>>
>>57086921
great, thanks you
>>
>>57086770
https://ds26gte.github.io/tyscheme/
>>
D.A.K 16.10.16
>>
>>57086854
I'm not sure how lazy loading with virtual proxies would solve my problem here. That's definitely something I would like to implement in the near future tho.

but for now, I would like some way to keep track of what has been inserted already, so I don't get locked into some sort of cycle between the dependencies.

currently my saves look like :

protected void save(DomainObject obj) {
// update row with specific domain object state
// call save method for all objects in it's list of objects that it is related with
// map relationship to association table
}
>>
>>57086592
Is there a cat version?
>>
>>57086728
i prefer racket
>>
more like ratchet
>>
>>57087041
No you faggot
https://www.theguardian.com/lifeandstyle/2016/aug/08/cat-people-versus-dog-people-facebook-study
>>
>>57087083
>implying there's intrinsic value in being popular
Fucking normies get out. OUT.
>>
File: 1460411329490.jpg (230KB, 640x960px) Image search: [Google]
1460411329490.jpg
230KB, 640x960px
>>57087114
>>friends
>don't need em
>>
>>57087033
I have no idea how to solve this without proxy objects. Normaly proxies could easily keep track of such info.
Hibernate is a well developed technology, meaining the approaches and solutions in it are pretty much the best they can be.
So I don't think you're gonna do it well, wuthout actually copying everything hibernate has done.
This just seems like a terrible reinventing of the wheel, and I don't know why would you even wanna do this...
>>
>>57087083
by the mere fact that you are bowsing 4chan, I assume you have a dog to fuck it (or being fucked by it, one never knows)
>>
>>57087083
>"dog people" are dumb normies with shit taste and hundreds of """"friends""""
>"cat people" are intelligent, but depressed and don't indulge in activities that are perceived as "cool" among their peers solely for the cred
Seem about right to me.
>>
>>57087160
If this was for a job, or a personal application, I would definitely learn Hibernate / JPA / whatever. But this is for a college course on building enterprise systems. There's no way in hell any hand rolled solution would even be 1/1000th as good as what goes on underneath the abstraction of a framework like Hibernate, but I need something that works for a small system, and is sufficient clean and not overly complicated and messy.
>>
>>57087083
>the guardian
>facebook
I ain't clicking that shit, nigga
>>
File: according to reality.png (12KB, 621x105px) Image search: [Google]
according to reality.png
12KB, 621x105px
>>57087262
>>
>>57087229
>too intelligent to have a dog
>>
File: (You).png (403KB, 521x520px) Image search: [Google]
(You).png
403KB, 521x520px
>>57087229
>>"dog people" are dumb normies with shit taste and hundreds of """"friends""""
>>"cat people" are intelligent, but depressed and don't indulge in activities that are perceived as "cool" among their peers solely for the cred
>Seem about right to me.
>>
>>57087275
That's what Kikebook says.
>>
>>57087275
>>57087287
Salty doggies detected ;^)
>>
these posts are not about crossdressing
>>
>>57087233
Oh, I see...
I don't think there is a clean way to do this without some kind of proxies though.
>>
>>57087287
>>57087275
Between dogs and cats my degree of choice is so great that it would never occur to me to compare the two. I have no active dislike for dogs, any more than I have for monkeys, human beings, negroes, cows, sheep, or pterodactyls; but for the cat I have entertained a particular respect and affection ever since the earliest days of my infancy. In its flawless grace and superior self-sufficiency I have seen a symbol of the perfect beauty and bland impersonality of the universe itself, objectively considered; and in its air of silent mystery there resides for me all the wonder and fascination of the unknown. The dog appeals to cheap and facile emotions; the cat to the deepest founts of imagination and cosmic perception in the human mind. It is no accident that the contemplative Egyptians, together with such later poetic spirits as Poe, Gautier, Baudelaire, and Swinburne, were all sincere worshippers of the supple grimalkin.

Naturally, one’s preference in the matter of cats and dogs depends wholly upon one’s temperament and point of view. The dog would appear to me to be the favourite of superficial, sentimental, emotional, and democratic people—people who feel rather than think, who attach importance to mankind and the popular conventional emotions of the simple, and who find their greatest consolation in the fawning and dependent attachments of a gregarious society. Such people live in a limited world of imagination; accepting uncritically the values of common folklore, and always preferring to have their naive beliefs, feelings, and prejudices tickled, rather than to enjoy a purely aesthetic and philosophic pleasure arising from discrimination, contemplation, and the recognition of austere absolute beauty. This is not to say that the cheaper emotions do not also reside in the average cat-lover’s love of cats, but merely to point out that in ailurophily there exists a basis of true aestheticism which kynophily does not possess.
>>
File: H._P._Lovecraft,_June_1934.jpg (8KB, 220x272px) Image search: [Google]
H._P._Lovecraft,_June_1934.jpg
8KB, 220x272px
>>57087360
The real lover of cats is one who demands a clearer adjustment to the universe than ordinary household platitudes provide; one who refuses to swallow the sentimental notion that all good people love dogs, children, and horses while all bad people dislike and are disliked by such. He is unwilling to set up himself and his cruder feelings as a measure of universal values, or to allow shallow ethical notions to warp his judgment. In a word, he had rather admire and respect than effuse and dote; and does not fall into the fallacy that pointless sociability and friendliness, or slavering devotion and obedience, constitute anything intrinsically admirable or exalted. Dog-lovers base their whole case on these commonplace, servile, and plebeian qualities, and amusingly judge the intelligence of a pet by its degree of conformity to their own wishes. Catlovers escape this delusion, repudiate the idea that cringing subservience and sidling companionship to man are supreme merits, and stand free to worship aristocratic independence, self-respect, and individual personality joined to extreme grace and beauty as typified by the cool, lithe, cynical, and unconquered lord of the housetops.
>>
File: Howard_Phillips_Lovecraft.jpg (19KB, 250x369px) Image search: [Google]
Howard_Phillips_Lovecraft.jpg
19KB, 250x369px
>>57087372
Persons of commonplace ideas—unimaginative worthy burghers who are satisfied with the daily round of things and who subscribe to the popular credo of sentimental values—will always be dog-lovers. To them nothing will ever be more important than themselves and their own more primitive feelings, and they will never cease to esteem and glorify the fellow-animal who best typifies these. Such persons are submerged in the vortex of Oriental idealism and abasement which ruined classic civilisation in the Dark Ages, and live in a bleak world of abstract sentimental values wherein the mawkish illusions of meekness, devotion, gentleness, brotherhood, and whining humility are magnified into supreme virtues, and a whole false ethic and philosophy erected on the timid reactions of the flexor system of muscles. This heritage, ironically foisted on us when Roman politics raised the faith of a whipped and broken people to supremacy in the later empire, has naturally kept a strong hold over the weak and the sentimentally thoughtless; and perhaps reached its culmination in the insipid nineteenth century, when people were wont to praise dogs “because they are so human” (as if humanity were any valid standard of merit!), and honest Edwin Landseer painted hundreds of smug Fidoes and Carlos and Rovers with all the anthropoid triviality, pettiness, and “cuteness” of eminent Victorians.
>>
>>57087360
>>57087372
>>57087384

stupid catfag
get a life
>>
File: 1KjjvNo.jpg (199KB, 1962x1332px) Image search: [Google]
1KjjvNo.jpg
199KB, 1962x1332px
>>57087360
>negroes
>>
new thread when
>>
In firebase is it possible to only have certain emails to log in?

Like no user creating and only log in from a list of emails that i select from
>>
>>57087444
Yes, just disable creating accounts and add them manually.
>>>/wdg/
>>
NEW THREAD!!

>>57087452
>>
>>57086366
>>57086387
I would love to know more about this, does anyone know anything more?
>>
File: ywontitwerk.png (29KB, 889x238px) Image search: [Google]
ywontitwerk.png
29KB, 889x238px
I have source code which includes a Makefile (.mk)

I'm trying to run it in VS cmd, but I can't get it to work

Link is the file, pic related is my error
>https://github.com/finnstr/gdx-liquidfun-extension/blob/master/jni/Android.mk

What am I doing wrong, and how do I fix this? Pls help
>>
File: Untitled.png (63KB, 1920x1080px) Image search: [Google]
Untitled.png
63KB, 1920x1080px
Need to make a christmas tree using this triangle sub in Visual Basic for a college assignment but not sure how to do it.. Any help would be appreciated
>>
>>57087987
*
* *
* * *
* * * *
* * * * *
>new fags can't christmas tree
>>
>>57088031
correct, I can't.. doesn't help my teacher is shit though
>>
>>57084481
Learn rust instead.
Thread posts: 326
Thread images: 38


[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.