[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: 351
Thread images: 22

Deprecated: >>56736691

What are you working o-
Oh who am I kidding, this is just SQT v2.0
>>
Finishing off chapter 7 of The D Programming Language.
>>
>>56742011
Kill yourself degenerate weaboo.
Next time wait for bump limit.
>>
File: Horrible.jpg (139KB, 1024x942px) Image search: [Google]
Horrible.jpg
139KB, 1024x942px
>>56742016
>learning obscure programming languages without being required to
>>
>>56742017
Why so butthurt?
>>
>>56742017
Learn to count anon.
>>
>>56742017
Pure autism
>>
>>56742026
feelsgoodman.webm
>>
File: 1469530600807.png (371KB, 479x468px) Image search: [Google]
1469530600807.png
371KB, 479x468px
Both threads are cool.
>>
I want to compile 64-bit C code with Emacs.

Does this look like the correct file to download?
emacs-25.1-x86_64-w64-mingw32.zip

It has "mingw32" and "w64" which seems like mixed signals.
>>
>>56742063
you need a compiler
emacs is can integate into your build system
>>
File: skilled.webm (3MB, 720x404px) Image search: [Google]
skilled.webm
3MB, 720x404px
/dpt/-chan, daisuki~

Ask your much beloved programming literate anything (IAMA).

>>56742063
Emacs is not a C compiler.

>>56742017
Please, don't bully.

>>56742011
Thank you for using an anime image.
>>
>>56742090
>>56742111
Mingw is a compiler though.
Clearly, having Mingw in the name implies that Mingw is inbuilt, I just don't know which architecture because I'm shit at interpreting filenames.
>>
>>56742126
or it does mean that it has been compiled with mingw.
>>
>>56742126
MinGW isn't a compiler. MinGW stands for "minimalist GNU on Windows". GNU also isn't a compiler.
>>
>>56742011
first for c++

%:include <iostream>
int main(){
int bar<::><%1,2,3,4,5,6,7,8,9,10%>;
int foo, baz;
bar[2:> > bar <:3] ? baz : foo = 100;
std::cout<<bar<:3]<<" "<<foo<<std::endl;
return 0;
}
>>
>>56742031
the bump limit is 310 kill yourself
>>
>>56742159
>k-kill yourself
Cry some more, subhuman autist
>>
>/dpt/ - Daily Programming Thread
>let's tell each other to kill their respective selves and cry about bump limits
is this /kindergarten/?
>>
>>56742182
It's a great reflection of both Silicon Valley and Flyover programmers.
>>
>>56742168
kill yourself
>>
is there any class or language resource in GHC to get the name of a data type, kinda like
 maxBound :: Bounded a => a 

doesn't need a variable, just the data type, I'm looking for something of the kind
 show' :: Show' a => String 


to instantiate Show (IO a) like
 Show (IO a) where 
show _ = "IO " ++ show'
>>
sure is reddit in here fuck off and die pathetic sperglords
>>
File: makiii.jpg (40KB, 235x309px) Image search: [Google]
makiii.jpg
40KB, 235x309px
>All this whining not related to programming
This is now maki thread!
>>
File: 1470372819364.gif (20KB, 452x329px) Image search: [Google]
1470372819364.gif
20KB, 452x329px
>>56742243
You want to see whining?
Well I don't know why since no one's ever told me, but everyone hates me when I post this image.
Apparently it has something to do with ponies.
>>
File: Screenshot_20160923_210304.png (32KB, 540x431px) Image search: [Google]
Screenshot_20160923_210304.png
32KB, 540x431px
lmao
>>
what is the <stdio.h> generally good for? random stuff generators?
>>
>>56742357
YOU GOT THE MOTHERFUCKING SHELLS
>>
>>56742385
IT'S GOOD FOR STANDARD I/O
>>
> tfw you get stuck on something very silly because you're a newbie
> get help from IRC/Stack Overflow/...
> feel like a idiot for a short while, but learn something new

programming 20+ years ago, when you were pretty much stuck with a book for help, must have been awful.
>>
>>56742442
most people who were into programming back then weren't sub-110 IQ normies
>>
>>56742442
> tfw you get stuck on something very silly because you're a newbie
> try to get help from IRC/Stack Overflow/g...
> get called idiot because you're a newbie
> feel like an idiot for a short time, but then find it out by yourself

FTFY
>>
>>56742463
>tfw you're a 116 IQ moron
phew I'm safe
>>
how can I test only sections of my program in C++?
>>
is there a way to create a template for an three-dimensional [9][9][9] array, so i do not have to create the syntax all by myself?
>>
Y'all have got to stop using commas it fucks up my JSON parser big time
>>
>>56742511
https://www.youtube.com/watch?v=wKl6umkwKfU
>>
>>56742511
JSON without comas?
wut?
>>
>>56742521
I organize the JSON the 4chan api sends me by saving it as String then splitting by comma
If one of you uses a comma in their post it fucks up myline system big time
>>
>>56742533
ooh that makes sense haha.
Why not be lazy and use some JSON parsing library instead?
>>
>>56742011
Are Eastern European (including Russian) programmes better in the long run?
>>
>>56742550
what makes you think so?
>>
>>56742541
I'm a big boy that doesnt need libraries
I guess I'm going to need to revamp the system and split by { or something
Why the hell does the 4chan api include commas like that anyway seems pretty stupid to not just replace them with some code
>>
>>56742533
wow, what shit language are you using that doesn't even have a JSON parsing library?
>>
>>56742557
It's mainly because of Pajeets dominating the programming industry, and me having a distrust for them.
>>
>>56742559
> doesn't need libraries
> splitting by commas instead of writing a parser
>>
>>56742511
>>56742533
shot in the dark here but maybe try actually parsing json instead of splitting by comma
>>
>>56742560
Java to be honest
Didnt know there was a JSON lib in the standard lib xDDD
Iguess I'm retarded
>>
>>56742566
dunno. here in central europe, programmers are mostly local, as few are bothering to learn dutch or french to work here.
>>
is there a way to create a multi-dimensional vector?
what would be a multi-dimensional iterator?
>>
>>56742608
vector < vector < vector < vector <int>>>> foo;
>>
>>56742629
Testing what?

,{,},{foo,};;{,:
>>
who came up with foo and bar as default placeholders?
>>
>>56742639
>>56742635
>>56742511
I got the comma thing to work..somewhat
but it's pretty wacky
>>
>>56742639
https://en.wikipedia.org/wiki/Foobar
>>
ayy lmao'); TRUNCATE TABLE threads; --
>>
>>56742639
http://catb.org/jargon/html/F/foobar.html
>>
>>56742648
Use a JSON parsing library, you dumb faggot.
>>
>>56742669
parsing json is fun exercise why would you prevent poor anon from learning?
>>
>>56742662
kek, don't think 4chan would have made it this far if they didn't sanitize their inputs fampai
>>
>>56742676
It wasn't for 4chan; it was for potential dumb anons that are storing information from the APIs.
>>
>>56742669
>be a Pajeet and use libraries although you could learn how to do it yourself
thanks no
>>
why is JSON used again? all my string operations worked fine out of a normal .txt file.
>>
>>56742695
How on earth do you parse formless text?
>>
>>56742695
It's an structured data standard that easily maps to objects or data structures in most languages.

What would your alternative be? Computers need "hints" as to what they are looking at, and JSON provides structure to tag objects, store ordered data, and nest concepts within other concepts in a hierarchical manner.
>>
>>56742679
ah yeah haha. but who would use a sql database for their autistic single-purpose 4chan browser app?
>>
r8 my /pol/ namefag name generator

[data]#include <iostream>
using namespace std;
#include <string>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>


int main()
{
srand(time(NULL));
int first = rand() % 9;
int second = rand() % 9;
int third = rand () % 9;

cout << first + second + third;

string nameparts [3][9] = {
{ "Overweight ", "Retarded ", "Delusional ", "Transsexual ", "Brainwashed ", "Confused ", "Fanatical ", "Neurotic ", "Psychotic "},
{ "American ", "Canadian ", "Australian ", "German ", "French ", "Swedish ", "Afro-American ", "Asian ", "British ", },
{ "Trump supporter", "Hillary shill", "Shitposter", "Neo-Nazi", "Communist", "NEET", "Libertardian", "School shooter", "BLM protester" }
};

cout << nameparts[1][first] << nameparts[2][second] << nameparts[3][third];

return 0;
}
[/data]
>>
>>56742684
The last full-featured JSON library I used was well over 100,000 lines.

Good luck.
>>
>>56742726
great formatting skills
>>
fuck

r8 my /pol/ namefag name generator

#include <iostream>
using namespace std;
#include <string>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>


int main()
{
srand(time(NULL));
int first = rand() % 9;
int second = rand() % 9;
int third = rand () % 9;

cout << first + second + third;

string nameparts [3][9] = {
{ "Overweight ", "Retarded ", "Delusional ", "Transsexual ", "Brainwashed ", "Confused ", "Fanatical ", "Neurotic ", "Psychotic "},
{ "American ", "Canadian ", "Australian ", "German ", "French ", "Swedish ", "Afro-American ", "Asian ", "British ", },
{ "Trump supporter", "Hillary shill", "Shitposter", "Neo-Nazi", "Communist", "NEET", "Libertardian", "School shooter", "BLM protester" }
};

cout << nameparts[1][first] << nameparts[2][second] << nameparts[3][third];

return 0;
}
>>
>>56742735
its worthy of pol
>>
>>56742726
>>56742735
>not using a list of current countries from a public academic API
>that anemic adjective and noun list

1/10, at least put some effort into it.
>>
>>56742731
jesus christ, you sure you don't mean 10,000? if not, you're confusing "full-featured" with "bloated as fuck"
>>
File: pic.jpg (103KB, 1572x792px) Image search: [Google]
pic.jpg
103KB, 1572x792px
>>56742731
When I said JSON parser i didnt mean that I was going to write a whole new one, just one that can deal with what the 4chan api, which wasnt all that hard pic related
>>
>>56742744
you too :3
>>56742751
that list of countries list is a good idea. i need demonyms, though.

its difficult to find suited nouns, unless someone makes a list of /pol/ memes
>>
you know what i fucking hate?
dumb shits parsing context free languages like regular ones.
>>
whats the difference between compiling and parsing?
>>
Ok guys, tell me, why doesnt my script get terminated after i get exit status 1 after certain command?
Basically, it should not echo "hello world". Yet it does.
#!/bin/sh

set -e
set -o pipefail

$((1/0))

echo "Hello world"
>>
>>56742763
that's not a json parser, or even a parser. also there's a lot of ways the content of a post can break that
>>
>>56742828
>that's not a json parser, or even a parser
Really? It takes a (albeit specific) json input and gives me usable data

>there's a lot of ways the content of a post can break that
You have a example? I tested it on several threads and atleast didnt get any errors
>>
>>56742731
I've written a JSON implementation, including a hashmap in C with only a few hundred SLOCs.
There is no possible way that it could be 100000 lines long.
>>
File: anal beads.png (8KB, 655x179px) Image search: [Google]
anal beads.png
8KB, 655x179px
>>56742771
Ain't that hard, friend.

As for the nouns, you could just parse various /pol/ threads and use a natural language library to pick noun parts of speech, and then determine the meme-iest of them.
>>
"com" : "com", "com" :
\"com\" ,"\"com"""\" :
>>
>>56742827

Well, found a reason:
if you "bash a.sh", then set -e gets ignored
If you "./a.sh", then it exits with 1 properly and terminates immediately after encountering first exit status 1
>>
>>56742910
Here's an example of the natural language analysis I've used.
>>
>>56742145
This is getting deprecated.
>>
Why do shared_ptrs not work w arrays?
>>
>>56742992
what the fuck is this even?
>>
>>56742992
trigraphs are like ??) (?? but not digraphs
>>56743032
Thats perfectly valid c++ (for now), google digraphs and trigraphs
>>
Does this break 4chan's tag parser?
#define code 12

int myfunc(void) {
int arr
 = { 0 };
return arr[24/code];
}
>>
>>56743032
http://en.cppreference.com/w/cpp/language/operator_alternative

>>56743001
They do though?
>>
>>56743061
How do you get them to work then
>>
Best C++ IDE? Preferably something lightweight
>>
>>56743071
Well what did you try and what's your problem?
>>
>>56743071
They do by default. Just copy paste code
>>56742145
and try it

i think for msvc you need to include cs616 or something
>>
>>56743080
>>56743078
I dont mean the array container
Maybe theres something wrong w my code brb
>>
>>56743111
Something like what was posted in this thread:
http://stackoverflow.com/questions/13061979/shared-ptr-to-an-array-should-it-be-used
>>
>>56743111
dont forget to mix and match for added confusion

int arr[];
int arr<::>;
int arr<:];
int arr [:>;
>>
>>56743130
why not use std::array instead?
>>
How does one authenticate a user by HWID in a way that's not crackable in 5 minutes?

The way I'm doing it right now is making a libcurl http request to a php script on my server with the useragent equal to the encrypted HWID. The script then checks if that HWID is valid and if it is, gives a response of a pseudorandom base64 number that returns true when passed through a function in the program.
Is this even safe?

Help.
>>
is there a fast way to print out my stack and free stack size?
>>
>>56743150
>How does one authenticate a user by HWID in a way that's not crackable in 5 minutes?
you don't
>>
File: IMG_20160916_202438.jpg (191KB, 1231x1295px) Image search: [Google]
IMG_20160916_202438.jpg
191KB, 1231x1295px
>>56743136
No idea what this is
>>
>>56742815
When you read the cookbook, you parse it.
When you cook, you compile it.
>>
File: anal beads.png (18KB, 223x473px) Image search: [Google]
anal beads.png
18KB, 223x473px
Based on that anon who was writing that shitty /pol/ name generator, I took 10 minutes and wrote a racial slur generator in her honor.

Uses an API of current country demonyms, and scrapes the Racial Slur database's slur table, and pairs random countrymen with random slurs.

Need to iron out a few kinks. Or chinks.
>>
So the main purpose of creating objects on the heap is having large, globally accessible objects?

If I close my program without clearing the stack, the objects created will still rot on my RAM?
>>
Is Qt difficult? I don't want to make anything super fancy but want to make some gui stuff in C++
>>
>>56743239
>*clearing the stack
clearing the heap
>>
>>56743239
no, when you close the program, all memory your program was using is reclaimed by the OS.
>>
Anyone us TypeScript here?

2.0 is just out. I might start fooling around with some TS based projects..
>>
>>56743245
It's not, if you're not already familiar with Qt I suggest you learn QML for UI instead (It's part of Qt, but it's much nicer to create interfaces with QML becaue it's much more powerful and less annoying to work with than UI forms although Qt Designer is somewhat good too).
>>
>>56743218
i would say, when you cook you run it
>>
File: anal beads.png (49KB, 311x1269px) Image search: [Google]
anal beads.png
49KB, 311x1269px
>>56743221
>American Whopper
kek

Going to wrap this in a GUI and open source it.

I wonder if GitHub will ban me for it.
>>
>>56743257
Then how can a memory leak appear?
>>
how do anti virus scanners recognize new viruses?

do they run an algorithm for similarity in code?
>>
>>56743290
by not closing the program. memory leaks refer to your program using more any more memory unessesarily the longer it runs
>>
>>56743290
memory leaks occur during program execution. Like when older versions of firefox ate 4GBs of ram..
>>
>>56743289
>Zimbabwian Pipe Blower
Also yes, github is SJW central. I'm sure they will ban you.
>>
>>56743294
they have virus definition files they update all the time. Some Windows Update updates are virus definition files
>>
>>56743290
memory leaks are easily avoidable especially in java but what happens in a memory-leaking program it keeps using more and more memory while it's running but once you shut it down the memory gets reclaimed by the OS
>>
>>56743294
they compare a file's hash with their database
>>
>>56743290
Also, there's the issue that your operating system may not necessarily reuse the memory; most modern ones do, but the one you're developing for may not (or, also, if you're designing an operating system itself, I assume)
>>
>>56743301
>>56743309
>>56743317
ah, okay. and the purpose of the heap is still to create globally accessible variables.

and why doesnt c++ manage the memory as well? it is not difficult to integrate an automatic garbage collector, given how memory management can be summarized by a single line

delete(stuff)
>>
Crosscompiling with cygwin on Bangdows
>>
should i learn Scala if i want to get a job?
I'd say I'm average skilled.

Im just in it for the $
>>
>>56743342
its much more complex than that. Also garbage collector has big overhead
>>
>>56743342
you should email bjarne
>>
>>56743342
Please stop suggesting garbage collected C++. It triggers me. You might be interested in smart pointers though.
>>
>>56743342
Garbage collection involves a lot of over head. Worst of all, it causes the entire program to pause every now and again while the GC runs. This is not good for a lot of applications.
>>
>>56743359
scala is for data engineering afaik, and you need extra education for that
>>
>>56743359
Do companies use Scala? Scala is a shit language anyways. If you just want a job learn Java. If you want a job with a good language, learn C#.
>>
File: EINFACh.jpg (31KB, 456x320px) Image search: [Google]
EINFACh.jpg
31KB, 456x320px
>>56743379
>If you just want a job learn Java.

>tfw this is the sad truth and all the beautiful languages out there are for enthusiasts only
>>
File: 1452051370152.png (1MB, 1280x720px) Image search: [Google]
1452051370152.png
1MB, 1280x720px
>>56743342
>GC in sepples
>>
>>56743342
>it is not difficult to integrate an automatic garbage collector, given how memory management can be summarized by a single line
>delete(stuff)
you're sorely mistaken, the entire point of using a garbage collector or your own custom allocator is so you don't have to delete stuff all the time, you do a cleanup all at once at appropriate times
>>
>>56743390
I thought JAVA jobs are way saturated by rashid and habeeeb though
>>
>>56743390
It's true.

Though C# is pretty employable and actually one of the better langugaes all things considered.
>>
>>56743372
http://insightdataengineering.com
>>
>>56743404
Yeah, but sadly, Rashid and Pajeet creating Java garbage apps creates an incentive for even more Java garbage usage, leading to more Java garbage jobs.
>>
>>56743409
but as a C# dev you will probably start out making $40k if you're lucky.
>>
>>56743419
40k euro (44$k dollars) is a normal junior wage for programmers in Europe.
>>
>>56742579
Look up GSON
>>
>>56743427
>mfw last job was €25k a year
>fired two years ago, unemployed since
fuck my life
>>
>>56743272
No, when you eat you run it.
>>
>>56742684
God dammit you kids are insufferable. And it's a Java shitter on top of it all.
>>
>>56743419
>you will probably start out making $40k
Depending on where you live, that's quite nice for an entry-level position.

That same position would probably pay $70k+ if you're in a metro shithole like San Fran or New York.

Really, there's no point in even mentioning your's or anyone else's salary without specifying location.
>>
>>56743427
thats so little $ though.

i want more $$
>>
>>56743454
stupid sluts in HR make that much and they don't know shit about anything.
>>
>>56743455
there are to ways to get lots of $$ in programming:

1. learn something hard, rare and needed
2. become more of a manager or sales executive than a codemonkey

otherwise, you will be stuck with an acceptable, but not phenomenal wage.
>>
>>56743477
but i have no people skills. I could barely hold a conversation with random people because I dont actually care about most of the normie stuff.

I need help.
>>
>>56743455
>i want more $$
Then you need to move into data warehousing and business intelligence.

It's an extremely unsaturated field, and it's growing rapidly in the mid-market right now.
>>
>>56743493
in europe, business intelligence is mostly a quasi-monopolist company (SAP), which hands out certificates sparsely, so that sucks
>>
>>56743489
Either learn to fake it or you're fucked.

I'm borderline psychopathic, but I've at least learned to reciprocate social cues that are expected, and act friendly and interested.

The #1 most important skill for getting money (reliably) is the ability to communicate and work with other people.
>>
>>56743508
howd you do it?

please tell me, for the sake of those around me.
>>
>>56743518
just don't be fucking retarded
>>
>>56743533
people keep telling me that but I don't know what it means
>>
>>56743518
Honestly? Working a shitty fast food job while I was in college.

I was able to figure out what the average customer appreciated as far as 20-second conversation goes, and listen to lots of interactions. I also had to learn to soothe and persuade basketball-americans to do their fucking job after I became a manager in my last years.

If you treat everyone like a "customer", whether a co-worker, family member, or boss, you can go quite a long way.

The following is not a meme: read How to Win Friends and Influence People by Dale Carnegie.

The biggest takeaway is to always put things in terms of what the other party wants.
>>
>>56742763
I hope you aren't using windows you
>>
>>56743554
wow, i could never work fast food. specially where i live, some people are fucking asses just because.

I'll check out those books. thanks.
>>
>>56743599
It's one book.
>>
>>56743599
just observe and try to mim8c. It worked for me, kinda...
>>
Fucking religion, reeeee

CREATE FUNCTION dbo.GetEasterHolidays(@year INT) 
RETURNS TABLE
WITH SCHEMABINDING
AS
RETURN
(
WITH x AS
(
SELECT [Date] = CONVERT(DATE, RTRIM(@year) + '0' + RTRIM([Month])
+ RIGHT('0' + RTRIM([Day]),2))
FROM (SELECT [Month], [Day] = DaysToSunday + 28 - (31 * ([Month] / 4))
FROM (SELECT [Month] = 3 + (DaysToSunday + 40) / 44, DaysToSunday
FROM (SELECT DaysToSunday = paschal - ((@year + @year / 4 + paschal - 13) % 7)
FROM (SELECT paschal = epact - (epact / 28)
FROM (SELECT epact = (24 + 19 * (@year % 19)) % 30)
AS epact) AS paschal) AS dts) AS m) AS d
)
SELECT [Date], HolidayName = 'Easter Sunday' FROM x
UNION ALL SELECT DATEADD(DAY,-2,[Date]), 'Good Friday' FROM x
UNION ALL SELECT DATEADD(DAY, 1,[Date]), 'Easter Monday' FROM x
);
>>
>>56742477
Unit tests
>>
>>56743617
SQL has such horrible syntax. Is there no decent alternatives?
>>
>>56743707
mongodb
>>
>>56743617
damn thats gross.
I feel sorry for you anon, may god save your soul from that horror.
>>
need a OCR cloud based api. Free or OS if possible.

I want to scan in documents and have read handwritten text into my program
>>
>>56742570
this.
>>
>>56743707
Tutorial D
>>
>>56743748
>cloud based api
what
>>
>>56743782
CDN
>>
>>56743792
???
>>
>>56743806
buzzwords anon, buzzwords
>>
>>56743748
Google Cloud Vision
>>
>>56743782
>>56743792
>>56743806
>>56743815

you need to upgrade your buzz word packages.
>>
what is "cloud based development", anyways?

the cloud is just a way to store data on accessible servers, isnt it? most of the data is stored this way nowadays,
>>
>>56743830
yeah put your OCR on a CDN and SQL it to the cloud
>>
>>56743823

wow thats pretty nice

but too much for my small project

know of any free alternatives?
>>
>>56743848
any """"free"""" cloud-based service is a trap
>>
>>56743841
what?
>>
>>56743858
>>56743815
>>
>>56743858
CDN

that's all he said to try to explain himself

>>56743792
>>
>>56742026
>only doing things because you have to
>>
>>56743884
>learning worthless meme languages when you could be out there getting experience developing real useful software in languages that matter
>>
>>56743841
>>56743857
>>56743866
>>56743871

why cant you all be more like this guy? >>56743823 this guy saw past the buzz words and actually answered the questions. we could all learn from him
>>
>>56743897
sadly, this actually means "use nothing but java"
>>
>>56743848
how small is your project? Google offers 1000 queries per month
>>
>>56743897
>only doing stuff that can bring $$, what sad life you lead...

>>56743904
How can you reply anything constructive to CDN? It could be 100 things... We have language for a reason
>>
>>56743897
> learning to reinvent the wheel
>>
>>56743915
>only doing stuff that can bring $$
thats the life of most americans tbqh
we dont even have paid vacation
>>
>>56743913
very small, probably a few hundred of pages with about 100-200 characters per page
>>
>>56743707
SQL is the industry standard for interfacing with relational databases, but you can do nearly everything in any language you want and only use SQL for menial tasks.

>>56743717
>using non-relational shit for anything but caching and other side components

http://www.sarahmei.com/blog/2013/11/11/why-you-should-never-use-mongodb/
>>
>>56743904
why does it have to be cloud based? how do you expect it to be free, who's going to pay for the servers? do you know what a CDN is?
>>
>>56742385
I think its good for input/output as the name and standard would lead one to believe
>>
>>56743930
> female programmers

>>56743932
CDN content delivery network
>>
>>56743927
Yeah, if you work for a shitty company.

I spend 3 weeks in Germany, and 2 weeks in Vegas and got paid the whole time. This doesn't include all the days I take off for personal things and other mini-vacations.
>>
>>56743944
>CDN content delivery network
yes and how do you expect it to help with OCR?
>>
>>56742442
I used to use purely the turing reference book in highschool, no google
>>
>>56743945
not everyones as talented as you.

>>56743951
the same way Google geolocation works
>>
>>56743930
>SQL is the industry standard for interfacing with relational databases
I know but.. something else would be nice...
>>
so why is Access DB bad?
>>
>>56743968
I'm not even that skilled yet.

I've only been out of school for a year, and am just now getting some experience.

You just have to find the right company.

PROTIP: Small companies don't have as many rules
>>
>>56742477
Catch - it's really simple and you'll be able to tell if it's isn't good enough because of how easy it is to get going
>>
>>56743968
a CDN delivers cached "static" information like a webpage or a youtube video. a CDN is not something you upload an image to and have it read the text for you.
>>
>>56743897
Do you have a learning disability that you can't learn multiple languages? Once you know how to program it's really just syntax you have to learn.
>>
>>56744000
if you had an attention span to learn even a single language properly you'd know that languages are more than just syntax
>>
>>56744005
you should a compiler design class first, much more useful, learn about lambdas, data structures, algorithms, etc... . then learning languages are just syntax really.
>>
>>56744039
you're a fucking joke dude
>>
File: 1470673121891.gif (3MB, 359x202px) Image search: [Google]
1470673121891.gif
3MB, 359x202px
>>56744000
O.
>>
>>56744047
isnt he right though?
>>
>>56743980
Do you want specific examples?

The better question is "Why would you use Access DB over all of the other alternatives?"
>>
>>56744047
get an education in CS. It's worth it in the long run.

You won't have to play catch up every time something new comes out.
>>
>>56744056
Depends on what you mean by "he" and "right".
>>
File: 12___cu_spear_pts2.jpg (25KB, 467x250px) Image search: [Google]
12___cu_spear_pts2.jpg
25KB, 467x250px
>>56743897
>learning metallurgy when you could be perfecting your stone working skill
copper is a meme, just use flint
>>
>>56744056
no. for example someone who knows C, lisp, python, haskell isn't going to write GOOD java or C++ any time soon.
>>
>>56742489
Why can't you just do 3D array or 3D vector?
>>56742608
>>56742620
The >'s should separated on the right side, otherwise your invoking the output stream operator
>>
File: akari.jpg (11KB, 231x218px) Image search: [Google]
akari.jpg
11KB, 231x218px
>>56744047
bait?
>>
>>56744065
nice dunning kruger kid
>>
>>56744073
what does that have to do with what he said?

read again.
>>
>>56744039
Kek
So I should try to convert my Java facades or adapters in C? How about writing actual multithreaded code in python?
>>
>>56744089
kill yourself retard
>>
>>56744073
>you should a compiler design class first, much more useful, learn about lambdas, data structures, algorithms,


he said nothing about C, lisp etc.Idea is that programming != knowing java syntax and libraries. Former is much more difficult than latter
>>
noob here

what does multi-threaded even mean?
>>
>>56744085
buzz words

>>56744096
>>56744101
uneducated code monkeys.
>>
>>56744108
More than one thread.
>>
>>56744108
Bing it.
>>
>>56742145
God C++ is such a hideous abomination of a language. Just stick with C anon. Or some other language if you really must OOP
>>
>>56744108
Concurrency
>>
>>56744103
>i've "learned" a dozen shitlangs and it doesn't matter that i can't use any of them particularly good because i'm "really good" at the "programming concepts"

jackass
>>
>>56744108
Running several pieces of code simultaneously.
>>
>>56744130
>not Yahooieing it
>>
>>56744131
>God C++ is such a hideous abomination of a language

i heard that about every langauge in existence by now, lel
>>
>>56744117
Talk to me family. Teach me. How does syntax teach you all the nuances of a language? Or even it's broad goals as to why it was developed?
>>
>>56744148
Bing points.
>>
File: retard.jpg (3KB, 160x160px) Image search: [Google]
retard.jpg
3KB, 160x160px
>>56744140
>>
>>56744108
A normal program flow is that instructions get executed one after another until you reach the end of the program. With mult-threading, you can leverage the multiple cores of your CPU to execute some things at the same time. Like a road that forks then merges later on. This can speed up performance or be used as a nice way to structure your program when it has several independent parts that could happen at the same time. For example an online multiplayer server could create one fork in the road per player and handle them independently.
>>
>>56744171
>i'm not very proficient in any particular programming language but i swear i'm a great programmer you guys!
stay delusional
>>
>>56744140
I actually agree with this anon.

Just because I understand the basic concepts of programming, doesn't mean you can quickly learn any language.
>>
>>56744184
oh, an actual answer, thanks a lot.
>>
File: 1470366634624.jpg (20KB, 424x308px) Image search: [Google]
1470366634624.jpg
20KB, 424x308px
>tfw i can't even do some of the easy level programming challenges
Being a programming newfag sucks. They seem easy enough reading them and then writing out what I have to do but I don't know how to implement what I want to do. My google-fu sucks, on top of it; lots of tangentially related articles and crappy "its ez just write this and it werkz" tutorials but nothing that actually teaches implementation.

How do you get past this? Is it syntax memorization?
>>
>>56744196
How can you not see he's being baited? No shit you agree with him
>>
>>56744164
what?
no ones talking about syntax.
learning syntax is easy. its just googling and practice, memorization.

My point is ONCE you understand the lower level abstractions that most languages, say functional, imperative, etc... languages use then in comparison, Syntax is kids play.
Yes that includes, parallel programming, lambdas etc..
>>
>>56744196
Well if original anon claimed that i would agree too but naah. He is just baiting
>>
>>56744198
you're one of the lucky ones. Post tits?
>>
>>56744198
It's a well understood, well documented, and often used topic.
Any amount of research you put in would have been incredibly more useful than anything posted on here.
>>
>>56744208
as us, anon

generally, you have to apply taylorism to everything as a newbie, e. g. break everything down to parts everyone can do.
>>
>>56744211
>>56744218
i'm not even sure who you're referring to

if you know a dozen shitlangs and the "general programming concepts", you will still not become an expert in C++ any time soon, you will not get a C++ game engine dev job or anything like that any time soon
>>
If I'm building a GUI in C++, i need to have one function that does all the work, and then one function that actually updates the screen, yes? Say I want the screen to update at 60fps, would I have two threads running, and in the work thread, have that running Infinitely while the display thread only kicks in every 1/60 seconds and updates then waits/locks until the next 1/60 seconds?
Or is this a retarded design?
>>
Why is JQuery so shitty? I know it's not programming but there's no scripting general.
>>
>>56744250
Exactly no one claimed that, im not sure what is >>56744140 going about, he is attacking claim noone made... bait or misunderstanding
>>
>>56744208
look at the language reference before you even go to stack overflow or look at tutorials, especially youtube tutorials, they are fucking cancer
>>
>>56744259
No that sounds about right. The UI thread needs to be separate so that it doesn't lock up while other things are being processed. Most UI libraries will have some intended design pattern that covers this though.
>>
>>56744259
Just use Qt5
>>
>>56744264
>>/wdg/
>>
>>56744266
anons claimed in several posts that you could easily learn any language, that once you have the general concepts then you just need the syntax and then you've learned the language
>>
>>56744216
But that's still broad strokes

Are all functional languages created the same? You're making wild assumptions.

No one is going to reinvent the wheel with each new language but learning the difference between Scala and prolog in your junior year CS class isn't going to make every language as trivial as learning syntax.
>>
>>56744299

this >>56744000 is original post, i dont see that claim...
>>
>>56744301
ok.

but having that knowledge points you in the right direction because you start to assume, test and try your previous knowledge on a new language.

Its certainly much better than learning each language as if they were completely different from each other.
>>
>>56744208
What helped me when I was starting out was thinking "okay what do I know how to do and what can I do with it". Let's say you've just learned some basic things about variables and control flow (loops, ifs, etc). Then pick something you think you can do given those tools, for example "make a prime factorization program". Then do that. Most of the time you will have missed some detail that you need to figure out and learn. In this case maybe it would be the modulo operator.
>>
>>56744313
fucking read
>Do you have a learning disability that you can't learn multiple languages? Once you know how to program it's really just syntax you have to learn.
how else do you interpret this post?

you don't TRULY LEARN the language if you skip to a new meme language each week. compare it with learning a natural language, at best you will still have an accent after years of learning it.
>>
>>56744340
some people can't help having accents, it doesnt correlate with how well you know the language.
>>
>>56744259
Right idea but in practice not viable.
You should only redraw if something changes, or else your application would consume resources for nothing while idle.
>>
>>56744355
it's an analogy, a C programmer will take quite some time before they can write C++ or java PROPERLY, if they can ever learn it at all.
>>
>>56743929
Sorry, fucked that >>56743913 up.
*Google offers 1000 queries per month for free.
>>
>>56744325
From my experience, the knowledge feels like trivia more than anything else. Core concepts sure, but trying to generalize much further leads you down a deep rabbit hole and all you'll have to show for it is some dick waving "neato" history facts.

Also my original post was for the anon claiming "if you learn how to program then it's just syntax to switch". This is a far more nuanced/pointless argument.
>>
>>56744287
>The UI thread needs to be separate so that it doesn't lock up while other things are being processed.
Sorry, the do work/update_program() thread or the display/update_display() thread? Also, presumably I'd need to pass through a class or struct so the two threads could actually work together, yeah?
>>56744362
So in the update_display() thread, check if an update (via a mutex/semaphore) has occured every 1/framerate seconds and THEN update?
>>
>>56744376
Nice!!
I think i will go with them after all.
>>
>>56744364
So how much does it take to learn to do Java PROPERLY after specializing on C++?
>>
>>56744393
The thread that's in charge of updating the display/UI should do only that, nothing else.

I'm not sure exactly how threads communicate with each other in C++. I am sure there are many ways of doing it, like shared memory, events... I don't know anything specific to C++ so I can't help you further.
>>
>>56744404
> inb4 you never stop learning meme
>>
>>56744404
you NEVER stop learning, anon
>>
>>56744404
there are many things besides the syntax that you'd have to learn, such as how inheritance works in java, reflection, the java memory model etc, and most importantly you have to get a "feel" for the language before you can consider yourself as an expert or something, they are different languages plain and simple
>>
>>56744404

You never stop learning.
>>
>>56744404
this >>56744458
But if you have learned c++ well java shouldnt be difficult. Syntax is very similiar you only have to learn libraries and some other things.
>>
whats the point of using floats?
cant we just use integers and add commas afterwards?
>>
>>56744472
performance
>>
>>56744472
thats like saying why do we have strings? cant we just concatenate characters together?

also precision.
>>
>>56744393
That sounds incredibly slow.

Why not pass the gui class some sort of object you want updated and then update?

Or if that's too unruly or messes with your current threaded model, make a method solely for updating gui objects and lock that.
>>
>>56744472
Ease of use and performance. For anything where precision matters you would use specialized libraries.
>>
awooo~
>>
>>56744512
poo~
>>
Memes aside, is it even possible to learn all the industry-relevant stuff in programming "by doing"?

Every time I hear actually employed developers talking with each other, they mention tons of stuff I never heard about.

If I never knew that JSON existed, for example, I would have never bothered to read about it.
>>
>>56744523
You dont learn by reading. You take up a project and do it. And you research what you need to do that specific thing. E.g i want to make modable game, i research rendering stuff, imbeding scripting with c++ etc... Add multiplayer to it, you learn networking and so on...
>>
do you really always have to have a thread running that updates the screen 60 times a second?

isnt there a more elegant solution to make UIs?
>>
>>56744523
you can certainly learn a lot of stuff "by doing" however you would certainly learn bad practices and habits along the way, making your journey a whole longer than it needs to be.

Formal education has its place. Dont fall for the CS meme is a waste of time.
>>
>>56744523
>all the industry-relevant stuff
that's very broad

you might never have to deal with neural networks or networking, and you don't need to

but you'll pick things up here and there so you at least have an idea of what they are
>>
>>56744550
yes, event driven UIs.
you only update when you need to update, or better yet update in batches if possible.
>>
>>56744550
Its dirt cheap to do that... It takes no cpu at all

>>56744557
I went to cs uni, and i dont really agree. I learned lots of usable stuff, from math to algortihms, networks and so on. Did i master any specific language? No, but i got very good backround others lack
>>
>>56744549
Lots of wisdom in a short post.

Almost all significant learning comes from having to learn how to do all the little things in a big project.
>>
>>56744523
Follow examples and learn how to learn.
JSON is pretty popular but there are tons of things you'll never even touch and you shouldn't try to learn everything now.

Pick up what's considered "core" and develop on your own a bit. Make a game or a chat server too
>>
>>56744572
exactly, CS is magical that way. I see programming in a different way now than i did when i fresh out of high school.
>>
>>56744550
>do you really always have to have a thread running that updates the screen 60 times a second?
no
>>
>>56744572
whoops i though question was is it expensive to listen for events, ignore first part
>>
if i do a big project in c++, does it make sense do declare every relevant object with a pointer?
>>
>>56744648
Why not? Make that unique_ptr and its even safe...
>>
>>56744648

if you mean allocating everything in heap instead of stack, no.
>>
>>56744648
Why not? Pass by reference is great
>>
>>56744672
to expand, it depends. Its better to avoid allocating large objects on stack. If its small yea stack allocate it. Rule of thumb is to use stack when memory used is limited to scope you are creating it in. So heap allocate when data is to be used outside of scope of a function...

It all depends...
>>
if you are doing performance critical stuff and using only heap allocation, you'll have a lot of cpu cache misses.
>>
>>56744688
pass by reference doesn't need (explicit) pointers
>>
>>56744499
>That sounds incredibly slow.
In terms of performance, as in the design is inefficient?
>>
code::blocks is really good, wish it would support languages other than c++ and c
>>
>>56745103
did you use anything else?
I find code blocks on level with sublime text with couple of plugins. Which is not saying much
>>
Is it generally a good method to learn programming by doing the 100 projects suggested here and asking questions whenever they arise?

https://better-dpt-roll.github.io/

Or shut I quit the memes and join a proper course?
>>
>>56745115
i used eclipse, albeit an older version.
was extremely dissatisfied with almost everything.

now i downloaded netbeans and it looks a bit bloated, but i might try it out.

many people i know use emacs, but i really dont wanna delve into 100 plug-ins, just to achieve the functionality an IDE already has.
>>
>>56745124
Yes. Some are too hard to be worth it imo.
Combination of course and projects would be even better
>>
>>56745144
for c++ i like in order: Visual studio, QtCreator, CLion. QtCreator is pretty lightweight and its even good for non qt projects.
>>
>>56745144
>i used eclipse, albeit an older version.
>was extremely dissatisfied with almost everything.
there's literally nothing wrong with the latest version of eclipse
>>
>>56745158
+1 for intellij products.
>>
>>56745221
I dont know if there is open source free version of it so i put in on last place. I do have licence and its really good, had some problems with c++1z and template heavy libraries... Its not fully supported yet.
>>
File: fhex5.webm (705KB, 736x412px) Image search: [Google]
fhex5.webm
705KB, 736x412px
Added an 'inspector' (for lack of a better term) to my hex editor.
>>
c++ and java are both object-oriented ...
is there any need to learn a non object-oriented language for generic dev jobs?
>>
>>56745276
Thats pretty cool. Is there source somewhere?

>>56745288
generic? probably not.
Also c++ is multi paradigm not OOP
>>
>>56742009
>>56742009
>>56742009
>>
>>56745308
Thank you but that's an old thread actually.
>>
>>56742827
>>56742938
Oh boy. No friend, set -e only guards against failed commands, and $((1/0)) is a failed substitution which results in an empty and therefore successful command.

You then proceed to run it with two different shells, sh and bash.

In sh, the pipefail command failed because this is not a sh feature. It therefore aborts the program.

Just use true and false to test these things instead.
>>
>>56745206
If having a debugger that isn't as good as VS isn't. a flaw, sure.
>>
>>56745301
>Thats pretty cool. Is there source somewhere?
Not yet, I'm still fixing some of the issues revolving around the undo/redo functions but I plan on uploading it.
I'll keep posting to update you.
>>
>>56745361
n-no one will notice
>>
>>56745407
Great! What language are you using?
>>
>>56745158
different poster here, qt creator is great. i prefer it even to visual studio because of its first-class cmake support and because honestly it's more responsive at this point (it somehow runs better on my $180 chromebook running arch than visual studio does on my gaming machine kek). been meaning to check out clion but i put it off because last i checked it used an integrated but pretty outdated version of cmake, which was a dealbreaker for me at the time. ought to check it out again though
>>
>>56745481
On windows im actually using emacs for smaller project currently, having problems with visual studio as well. But i remember it being great. On linux i use CLion since i cant be bothered with qt dependencies on gentoo and i usually do bigger stuff there. About cmake its actually newer than one in stable portage tree, so thats a plus.
>>
>>56745401
>this monkey has to use a debugger
lol
>>
>>56745528
are you serious?
>>
>>56745612
yes?
>>
>>56745612
just ignore he is baiting you. Even pajeets and code monkeys understand importance of debugger
>>
>>56745651
you're the one who's baiting or you're seriously a shart in mart codemonkey

http://linuxmafia.com/faq/Kernel/linus-im-a-bastard-speech.html
>>
>>56745669
argument from authority, read up and try again
>>
>>56745692
you're the one not arguing the facts, fucking retard
>>
>>56745707
ad hominem and tu quoqe, read up and try again
>>
>>56745727
enjoy using your debugger to try to fix your retarded sloppy shit code
>>
>>56745515
yeah, the big chunk of qt dependencies is my only real gripe with qt creator since it's the only qt application i use and i'm not using it to make qt applications myself (and my chromebook only has 16gb storage so i actually have to watch my package count), but i suppose there's no avoiding that. and yeah, checking again, it looks like clion supports much more a up-to-date cmake version now. i was used to the version in the arch repos (just the latest stable release), and depended on a couple features from 3.x, and when i first checked out clion (admittedly very early on, soon after its initial release), it only supported something like 2.6. i'll definitely have to check it out now
>>
>>56745766
you made a claim burden of proof is on you, read up and try again also ad hominem
>>
>>56745780
very interesting post my fine gentleman, here's your (You)
>>
>>56745775
Its pretty good be warned tho, c++14 and c++1z are not fully supported (but its good enough support) so it might not be good for that.
>>
>>56745780
>>56745727
It's only Ad hominem if the whole substance of the argument is only an insult
>>
>>56745423
plain old C
>>
>>56745858
Great! I might even contribute if you ever open source it.
>>
>>56745830
Are you sure? I just googled cant find that...
>>
>>56745858
On a scale from 0 to WinAPI, how would you rate your experience with ncurses?
>>
>>56745907
0 being the best?
>>
>>56745920
Yes, as in 0 pain.
>>
>>56745775
yeah, not too surprising, i'll live. i already deal with that with qt creator; i get red squiggly lines sometimes because the integrated parser doesn't recognize the syntax but it builds just fine. kek at least gcc actually supports the features i want, msvc is really lagging behind on some stuff i wanna use but can't in cross-platform projects yet. you'd think that'd be a higher priority for microsoft
>>
>>56745966
msvc doesnt fully implement even older stuff...
>>
>>56745823
oops
>>56745966
>>
>>56745993

For cross builds i have to use mingw... I would love to use g++/clang on linux and msvc on windows and thats it. But naah you have to ship extra .dlls for mingw...
>>
>>56745983
haha yeah, it's getting pretty ridiculous at this point. makes me wonder just how long it's gonna be until they get to the stuff i wanna use. generalized constexpr/auto, generic lambdas, and variable templates have big implications for c++ metaprogramming (among other things of course), and microsoft is holding things back. there's a great new boost library called hana i wanna use that just says "fuck it, i'm using these features, if your compiler doesn't support them, sorry". clearly i'm not the only one losing my patience

>>56746060
yeah, better than nothing. but i really wish microsoft would get it together. they axed or spun off a bunch of their .net technologies because they were convinced that there was gonna be a "native renaissance" as they called it. sounds good to me but how's there supposed to be a native renaissance if they can't keep their standards compliance on par with the compilers for other platforms? kek
>>
>>56745907
It's bliss compared to WinAPI.
There are some weird things, like the ESC key having a 1000ms delay for no real reason.
>>
>>56746682
>like the ESC key having a 1000ms delay for no real reason
Did you dream of that?
>>
>>56746825
no
http://en.chys.info/2009/09/esdelay-ncurses/
>>
>>56746880
>(Such a delay is necessary to differentiate the ESC key from function keys.)
WHAT THE FUCK IS THIS SHIT FUCKING RETARDED LUNIX TARDS
>>
>>56746910
you shell not fear the linux my son.
Thread posts: 351
Thread images: 22


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