Previous Thread: What are you working on, Sup Forums?
/dpt/ - Daily Programming Thread
Other urls found in this thread:
acm.timus.ru
pastebin.com
play.google.com
twitter.com
Integrating relational parametricity with observational equality.
So useless junk which won't help you at all then. Have fun.
so what is your acm.timus.ru
Never fucking reply to me again unless you are contributing to the thread.
rate my fizzbuzz, guys
Never heard of it
>.js
its like codefights.com but for "real programmers" who can implements algorithms and data structures and such. Like some of /dpt/ claims to be.
>it's like codefights.com but for "real programmers"
Can't wait until we get the website that's like acm.timus but for "real programmers"
spoj?
>useless 'code challenges' which aren't really challenges at all and would be considered the most trivial parts of any project
Lame. If you attach any sort of value to a score on these sites please submit your resume to my trashbin so I can search for you if you ever send an application.
Never reply to me or my son ever again
trying to get visual studio 2015 enterprise installed on windows 10. this isn't pulling teeth it's trying to jerk off a bull after it threw it's rider. microsoft should spend some money on not sucking.
>microsoft should spend some money on not sucking.
But that means hiring good programmers and saving money on firing the bad programmers.
That's a net positive. They can't spend money on that.
>download vs_community_ENG.exe
>run
>press next
>visual studio is installed
whew laddy what an adventure
Aahahahaha
Literally web-dev tier.
...
you like cheap android smartphones and tablets
What?
wat
Same thing. Unless 2015 dramatically changed the enterprise installer. Which based on the fact people have been bullshitting about how hard it is to install vs since at least 2010 despite being ridiculously simple to install, I'm going to assume it hasn't.
and 30GB of diskspace being wasted.
for references, my devtools folder, which including git, cmder, sublime text, mingw, ruby, python2/3, elixir, erlang, postgresql, nodejs and some other random stuff still doesn't reach 2GB in size.
So I'm taking intro to programming, total novice pleb. Regular on /fit/ so obviously I made this plate calculator thing. Please tell me how I can optimize/improve it or what to do next. Idk how you guys treat newfags but programming and I are in some sort of a honeymoon phase so I thought I'd post, I'm having a lot of fun.
Link to code: pastebin.com
you like crappy versions of good things. no, people don't bullshit about installation problems. i can get vs installed, but i had to download the sdk and a bunch of components then install by hand.
>15 then 3 then 5
>The e
>The close tab button over the text
>The 9 instead of (
Wow, how long did you work on this
Visual studio includes dozens of programs, languages, the .net framework, multiple compilers, multiple languages, git, team foundation server, unit teasting libraries, debugging tools, analysis tools, several enterprise specific features, multiple web development tools, mobile app tools, a gui builder, intellisense, sql and god only knows what else. It's the entire windows development ecosystem in a single package. Plenty of people appreciate that because it suits the manner you write .net code. If all that's too much, use an older version with a newer compiler, or install the relevant compilers and hook them up to visual studio code.
Before the >java shitposts flood in, I just wanted to say well done, user. You're off to a better start than many of the novice plebs who appear here.
looks fine to me user. keep up with good indentation.
From your post I assume people don't like java around here, mind explaining why?
thanks dude!
you can unselect most of those things if you don't want them and you should see what the analysis tools can do. event tracing in windows 7+ is slick especially in windows components.
>Set up C++ to automate calculus homework finding averages
I know it's absolutely in impressive and nothing special but I still feel cool
Some strange indentation there. Better than when I started though
not the same user, but people dont like java here because it's object oriented, and in my personal opinion the syntax is god awful. there are other reasons but im sure youll get plenty of replies
>Visual studio includes dozens of programs
which you don't use, and don't have the right to uncheck.
I didn't even install VS, just C++ build tools, and lol they installed load of database tool craps.
Haven't really been taught what is and what isn't proper indentation (yet). If anyone got a link or whatever I'd eat that shit up
Trying to optimize my mbox parser for no real reason, it's already pretty fast, it can parse a ~280MB mbox with ~51k emails in less than a second on my machine, in comparison mutt takes 5 seconds to load the same mbox.
Ya they are top notch.
As the above user pointed out you can uncheck plenty of them.
>how dare a thing do the thing it sets out to do.
Visual Studio makes no bones about what it is, it's a massive total ecosystem development tool targetted at windows. But again, the finstall size CAN be reduced. Just not to eclipse levels or whatever.
Look up k&r and allman indentation styles.
In general only indent things further when they are inside curly braces.
fuck loonix
>tfw finally found a programming language that I really like
>tfw there are 0 jobs that require it
Why do everyone bully Prolog
Anyone familiar with Visual Studio?
I'm writing a small utility library for myself, but how do i use it in my other projects?
I could just copy the source files into every project that wants to use the lib, but there's got to be a better way of doing it.
Prolog is pretty domain specific if my memory is well
>Prolog
Honestly, it's a goddamned mindfuck and nobody can understand how to use it.
>feelings
That's SJW fuel. Have you at least learned something?
Why does everyone hate on C++?
It's like best language desu
Because everyone who's smart enough to use it without tying their brain into a knot goes directly to C.
Not really but then again I might not have touched on the mindfucky bits, right now I am trying to identify the mastermind that controls a spy ring from a set of persons that have relationships with each other. It's pretty comfy if you have had a rigouros course in mathematical knowledge desu
Bloated as fuck and age related problems, I would like a new C++ with much of the old shit removed
Depends on if both the library and the projects are in the same solution or not.
If they are, simple right click the project, add->reference>fromsolution->youLib
If not, compile the library with the release flag (where it says debug up top, select release). Then go to libraryDir/bin find the .dll of your library then add a reference to it(it doesn't have to be in the project directory as far as I know but it's nice to have everything in one place)
>Then go to libraryDir/bin find the .dll of your library then add a reference to it
I'm sorry, i don't know what this means.
The utility library is in it's own solution.
>age related problems
Please elaborate.
>.dll
Haram
>age related problems
Programming languages don't really have those. You're thinking of backwards compatibility baggage, which can happen to any language no matter how old it is. Scheme, for example, is older than C++ but a million times more pleasant to reason about.
After you build you library, go to its folder in windows explorer so you know where it is. The library file will be in a folder called release, which will be inside a folder called bin. While you're here, click on the url bar of windows explorer and copy the path.
On the project name in visual studio, right click and hover over "add", then select "reference", a window will pop up of libraries you can use. At the bottom will be a "browse" button. Click on that and now you can either naivgate to your file, or paste that path you copied into the url bar again, then select your .dll file
Thanks.
Anyone know of a site like repl.it that runs code client side instead of server side? I was trying to play Dwemthy's Array, but it lags really bad when printing a ton of lines.
NP. Good luck with your devving user.
Yeah, Scheme is great and a real pleasure to write code with but I still feel that C++ feels old and clunky, can't really point to one thing desu. It's probably have to do with the mess that is headerfiles, compilation of large programs, no modules etc
a...compiler?
You could try ideone. It's not a repl but it sets up the boilerplate and creates it's output before it sends you the result rather than on the fly
What I'm trying to say is, it has nothing to do with being old. Go, for example, is very new, but in many ways it's still clunky and "outdated."
Well, for Dwemthy's Array, you play the game using a repl, so it's not an option. I guess I'll have to wait until I get home. I'm on a school computer, so I usually program using online interpreters and such. Maybe I should make one that does what I want.
Let's say I have variables a, b, c, d and x.
From a, b, c and d I know they are all positive integers, and exactly two match each other. This is their pivot point. Any combination of two can be a pivot point.
How can I most elegantly get the pivot point and determine if x is between the minimum and pivot or maximum and pivot?
I'm cooking something up like compairing the four pairs, putting the pivot there but then I'm making a mess figuring out the minimum and maximum, functions everywhere. Can't I just do this in 5 lines?
i get what your saying is that you need a big fat cock to fill up your guts so your constant faggot lust for novelty stops getting in the way
Sometimes I feel bad about shitposting on Sup Forums.
Then I see posts like yours.
I see. Never heard of it before. No good to you now, but you could possibly set up a repl on your home computer and ssh into it
Hey guys, I haven't paid attention the last year, what are the best github alternitives?
Finished my android game and am desperate for downloads.
FYI it's free of charge, ad free and no micro transactions either. I made it purely because I liked making it.
im just telling you that you are paying unwarranted attention to irrelevant things, like your feels about a language being 'clunky', and i said it in a creative and fun way
i would have never guessed you were an actual homosexual, didnt mean to be a jerk
gitgud for the extra meme factor
Oh, right. I forgot about the obvious solution.
Link it.
>inb4 requests permission to use camera, phone, microphone, messages, my anal cavity and any women I may be about to have sex with in future
>tfw univalence still doesn't have a decent computational interpretation
Is it a bad idea to store 5mb worth of images in a git repo?
Will my repo grow 5mb in size on every commit?
It doesnt ask for any permissions either.
play.google.com
It DOES, however have an agenda some people won't like
GitLab
>Enrich the west
lel
>Sorry! This content is not available in your country yet.
Your agenda is xenophobic to my country
thanks.
how hard is it to make these phone apps
seems like pretty easy
Nope my bad, just the web link. Downloads fine from my phone
I take that back, I was trying to read the virtual memory of a process starting at offset 0x00 instead of 0x08048000.
I dont know why it's like that. I set the distribution to world wide
Oh, cool
So Smuggle Truck for boats?
What text editors do you fa/g/s use?
unless you change image content, then no it won't increase 5mb after every commit.
git commits are like c pointers, its mostly just references.
I was using atom, but it's performance was so bad, I switched to VS Code and it's pretty awesome.
vim
nano, geddit, or worse case netbeans
I love code. I like atom too. But code is slicker.
For those who don't know, ctrl-' brings up the inline terminal, which was a pretty nice surprise.
Looks like Emma with crows feet.
I just got it yesterday, so I still need to figure it out, but that sounds nifty.
What do you guys think of Scala?
As verbose as Java
Holy fuck, I knew C had a reputation for being hard but I didn't think it would be *this* hard. I'm struggling on the most basic K&R exercises.
>enrich the west
kek
What's the best way to learn vim?
C++ pleb here
what's wrong here?
if (argc == 3 && argv[2] == "-g") {
booleanvalue = true;
}
even if the second argument is -g it doesn't seem to trigger the if
>C is hard
Everyone back in the day built shit in C so it's not hard if you are a normal functioning human being
>second argument
>argv[2]
That is the third argument
Print out argc and see if it is 3
Does == string work like than in cpp? I don't know to be honest
Also that's the third argument, index starts at 0
Here's a quick way to check: print out EVERYTHING in argv, and see what you get. (you have an off by one error, btw)