[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: 315
Thread images: 46

File: dpt.jpg (223KB, 775x775px) Image search: [Google]
dpt.jpg
223KB, 775x775px
What are you working on, /g/?

Old thread: >>61263402
>>
>>61268823
D a best
>>
File: old_hag_langs.png (173KB, 600x355px) Image search: [Google]
old_hag_langs.png
173KB, 600x355px
>>61268823
First for C.
>>
>>61268823
fuck off terrorist scumbag.
>>
File: Refk2Ni.png (362KB, 837x390px) Image search: [Google]
Refk2Ni.png
362KB, 837x390px
Nobody ever talks about SQL here. Why is this?
>>
File: 1499395872138.webm (598KB, 480x360px) Image search: [Google]
1499395872138.webm
598KB, 480x360px
>>61268872
Thanks for your concern, shlomo
>>
File: eureka.png (187KB, 830x620px) Image search: [Google]
eureka.png
187KB, 830x620px
>>61268823
Eureka! Perlin noise terrain generation in my minecraft clone.

Anyone remember me posting about this about a year ago? I haven't worked on it until a week or so ago.

The terrain generator runs like dogshit right now because I coded it as lazily as possible and I'm also running it in interpreted mode but whatever. I can add memoization and not recompute the same values over and over again pretty easily.

here's the code: https://pastebin.com/ah9MTspA

The actual render loop runs really well.

FPS: 59.999999
Frametime: 16666667
OpenGL "FPS": 1657.577616
OpenGL Frametime: 603290
>>
>>61268872
But she has the quoran on her hands. Why so mad.
>>
File: govnocode.webm (924KB, 600x336px) Image search: [Google]
govnocode.webm
924KB, 600x336px
Python Power
>>
>>61268920
Please stop making minecraft clones its the year 2017.
>>
>>61268974
>yfw Knuth wrote the Quran
>>
>>61268895
It's not a general purpose language and is only technically Turing complete after a recent release, or so I read. But it seems like a well rounded programmer should be versed in SQL beyond the basics. I'd like to get gud with it but currently lack the motivation.
>>
So this is a question from ignorance on my part. Trying to figure out proper memory management in C. Below is some code I wrote up to illustrate a point.

char* TestFunction(int Length){
char *PointerZero = malloc(Length*sizeof(char));
char *PointerOne = malloc(Length*sizeof(char));
/*
Do something with Pointers
*/
free(PointerZero);
return PointerOne;
}


So long story short, provide a value to this function and it'll fuck around with to char pointers. This function must return PointerOne. When this function exists, what happens to PointerOne memory wise? It bothers me that there is no free(PointerOne) here to match the malloc. However, doing so before PointerOne can be returned sounds like a good way to fuck up results. On the other hand, won't TestFunction just eat memory if it is constantly called since PointerOne is never being freed?

Uh, so what is the best way to handle this??
>>
Making some stuff with golang to learn it.
>>
>>61269112
When you call free you've given up your rights to the memory. The system reclaims it. It's like selling your house then coming back a month after the new owners move in and trying to take a shower.

When you call TestFunction you have to remember to free the result of it yourself. Welcome to non garbage collected languages. Memory management is a bitch.
>>
>>61269112
I seems like you've run into the issue that is "pointer ownership". Which is basically to say, who is responsible for calling free()/whatever on this.
There are many ways to do this, and some make more sense than others in certain situations.
If you're expecting the caller to free the pointer, you should document that.
>>
>>61269112
A common thing people do is:

void testfunction(char * result, int len) {
char * ptr = malloc(length * sizeof(char));
// do something with the two pointers
free(ptr);
}


This way you can make non pointer globals, locals, and struct values so you don't have to remember to free them. And when you need a real dynamic malloc'd pointer, you can malloc it yourself.
>>
>>61268982
At least he's doing something
Not like you, lazy fuck
>>
File: 1471140732223.jpg (28KB, 394x391px) Image search: [Google]
1471140732223.jpg
28KB, 394x391px
C is the best breast size and programming language.
>>
>>61268895
Because SQL is dead?

Seriously, if you still use a relational database in 2017, you should neck yourself.
>>
>>61269219
Are you suggesting everyone to continue to spam mongo everywhere when it's clearly not necessary?
>>
/dpt/
in C, is it bad practice to write an ADT like this?
int create_greeter(char const *);
void destroy_greeter(int);
char const *greeter_message(int);

The implementation file would then have static pointers for each member of the ADT, pointing to dynamic arrays all the same lengths, and creating and destroying would both work by realloc'ing the pointers.
>>
File: 1497988968405.jpg (25KB, 572x720px) Image search: [Google]
1497988968405.jpg
25KB, 572x720px
>
when isMainModule:
# test the new ``*`` operator for sequences:
assert(@[1, 2, 3] * @[1, 2, 3] == @[1, 4, 9])

Absolutely dropped. I should have known when I saw top level functions
>>
>>61269272
C doesn't have ADTs. Own up to it and upgrade to a language that requires higher level of IQ
>>
>>61269272
I don't really see the advantage of that over just handing the struct itself back.
>>
>>61269283
You are not civilized. Learn some manner.
>>
@61269284
(You)
>>
>>61269284
>C doesn't have ADTs.
>he said, regarding an implementation of ADTs in C
>while also managing to not answer the question
>>
>>61269283
>safe space
You were the one on the verge of tears because the girl on OP's is (presumably) a Muslim.

Also, hate speech is against the rules, you dipshit.
>>
>>61269296
Not him but why don't you fuck off to your containment board then?
>>
>>61269296
>Only board that matters on 4chan is /sp/. Get over it.
FTFY
>>
>>61269291
The advantage is it wouldn't be an array of structs, it would be arrays of fields, thus saving padding space
As advantages go, it's pretty retarded
>>
>>61269320
If you're trying to be funny, it's not working.
>>
>>61269316
>thus saving padding space
Not necessarily, if you pack your structs correctly.
I don't really know how this data is going to be used, though.
I'll list some disadvantages that come to mind
- It's non thread safe
- It's not type safe
>>
File: 1468738260180.jpg (3KB, 252x44px) Image search: [Google]
1468738260180.jpg
3KB, 252x44px
>>61269320
/r/ is not a containment board, you should immediately fuck off to your daycare board, autist
>>
>>61269296
Fucking redditor, piss off.
>>
How do I into IO in Scala (or Java)?
>>
I have an idea, how about SJWs stop creating new threads 100 posts early with trannies and muslims so we can actually discuss programming for once.
>>
>>61269358
>/dpt/
>programming
>>
>>61269357
Don't use Scala
>>
>>61269358
>100 posts early
The other thread was autosaging already, faggot.

>trannies and muslims
Stop sperging out about minor details.
>>
>>61269371
Make me.
>>
>>61269370
>subhuman race that thrives on destroying western society by fucking your daughters and make rape babies with them
>minor detail
Go back to /r/marchagainsttrump already
>>
>>61269371
You don't come to someone's home and tell him to get out
>>
>>61269370
/g/ is slow as fuck, you don't create new threads until it's page 10. You know that, but you do it anyways because you're either a paid shill or a retard who gets off on ruining threads.
>>
File: 1340433133397.jpg (103KB, 384x313px) Image search: [Google]
1340433133397.jpg
103KB, 384x313px
>>61269378
>islam
>race
>>
>>61269386
Hi, newfriend. How's your first day on /g/ going?
>>
>>61269400
Enjoy your ban, shill.
>>
>>61269368
Why not
>>
>>61269418
It's awful.
If you want to use Scala, use Haskell instead.
>>
>>61269318
I am certain that most of your hatred towards mudslimes are created by *ews, in which case I am not surprised.
>>
>>61269390
It says muslim in >>61269370 you fucking nigger learn to read.
>>
>>61268823
Posting in Rust thread.
>>
File: 1498966480903.png (87KB, 975x522px) Image search: [Google]
1498966480903.png
87KB, 975x522px
>>61269429
>>
File: wiktionary_to_the_rescue!.png (7KB, 420x53px) Image search: [Google]
wiktionary_to_the_rescue!.png
7KB, 420x53px
>>61269424
W E W
E
W
>>
File: 1499009531810.png (116KB, 694x801px) Image search: [Google]
1499009531810.png
116KB, 694x801px
>Come to the new thread
>It's an episode of a /pol/ autist having autistic meltdown because of the OP picture
Considering the fact that most of 4chan users are school girls, they sure are quite edgy.
>>
is reading sicp a meme like boku no pico and hipoints?

I have zero programming experience
>>
>>61269464
>is reading sicp a meme
No, but it's definitely useless unless for academic purposes.

>I have zero programming experience
Then you surely won't be able to appreciate the reading.
>>
>>61269456
I think you have to go back.
>>
>>61269439
>wikitionary
Nice try, shariablue
>>
>>61269464
You have zero chance to take a gf. End your life.
>>
>>61269480
I wish I could go back to the time when 4chan was not mainstream because of fucking cancerous phoneposters
>>
>>61269478
wasn't it written to teach programming? if it's for academic purposes wouldn't that be perfect for someone learning?

>>61269489
take a gf? what does that mean my indian friend?
>>
>>61269492
>cancerous phoneposters
Like you?
Also, that time was a time when you didn't even exists. Even in your parents' plans.
>>
>>61269419
Why is it awful
>>
>>61269494
>wasn't it written to teach programming?
Yes, but it failed at that and is now used to teach symbolic systems.

>if it's for academic purposes wouldn't that be perfect for someone learning?
Oh it's great for learning. Doesn't mean what you learn is going to be useful.
>>
File: generdsdfdsfate.png (139KB, 500x700px) Image search: [Google]
generdsdfdsfate.png
139KB, 500x700px
>>61268823
>be me
>be playing a game called hackmud
>in hackmud you code in javascript and use other people's code
>compete over monopoly money using le code
>in hackmud you have limited char count
>but ininite read and write access to a database
>pfft
>write bytecode interpreter
>write program that converts whitespace into strings so it doesn't count against char count
>now writing a forth to convert strings into bytecode
>forth has full macros
>can achieve the syntax of any language
>shit will be so cache
>>
>>61269514
here is the common link
https://www.youtube.com/watch?v=uiJycy6dFSQ
>>
#include <stdio.h>
main(){
char *p = 0;
while(p++) *p = 127;
}

>run this code
>pc crashes

nice language c tards
>>
File: 1484043983756.png (64KB, 1229x417px) Image search: [Google]
1484043983756.png
64KB, 1229x417px
>>61269508
Why would I want to go back to the time that sets me up in a condition that I am not already familiar with?

I know your type is typically "slow" but you have to sacrifice all your brain cells to reach this level of retardation.
>>
>>61269547
Not an argument.
And you're not funny at all.
>>
>>61269535
Clearly a fault of your OS anon.
But if a language couldn't produce this same issue i don't think it's worth using.
>>
>>61268823
Why do you keep posting muslim females?
Can't you understand you are not welcome here?
We don't want diversity and more strong womyn in tech.
So go back to your gender and intersectionality studies and leave us alone.
>>
>>61269523
interesting, I will have to do more research. should I select another book for lisp or pick a language with a large learning community like python?
>>
>>61269624
He doesn't know what he's talking about. Scheme is great and wonderful. He probably just used the barebones interpreter that was recommended by the book.

>>61268920 was written in a mix of Scheme and C.
>>
>>61269622
to be very honest.
All I want is competent people who are not dysfunctional fuckwads.
>>
>>61269622
So why doesn't someone else make a thread, before OP?
>>
When does it make sense to start to split up my C project into multiple .c source files? Right now I have a single .c with a few structs defined before the main function and 7 functions. Should I put the struct definitions in a separate .h? Should I leave the functions in my main .c?
>>
>>61269722
There is no right answer to that question. It's up to your judgement.
However, 7 really isn't that many. You'll be fine leaving it as it is.
>>
Functional programming, despite having advantages, too often serves as a vessel for the aggrandizement of vapid establishment pablum.
>>
main = print (the first (number `besides` 1 `such_that` (it_is_odd `and` it_is_square))))

the = id
first = head
number = [1..]
such_that = flip filter
it_is_odd x = x `mod` 2 == 1
it_is_square n = sq * sq == n
where sq = floor $ sqrt $ (fromIntegral n::Double)
and f y x = (f x) && (y x)
besides list x = (filter (/= x)) list
>>
How do I get a feel for OOP?

I understand the basic concepts, but when it comes to integrating them into a larger project I'm hopeless. I just wrote the world's shittest game of pong with only one class and the code is filthy.
>>
>>61269783
post code
>>
>>61269739
I see, thanks. Is it bad form to leave struct definitions before my main function as opposed to in a separate .h file?
>>
File: GOF.jpg (284KB, 1352x1701px) Image search: [Google]
GOF.jpg
284KB, 1352x1701px
>>61269783
Read pic related.
>>
>>61268823
Can we not have pictures of whores in the op, please?
>>
File: EO.png (30KB, 512x774px) Image search: [Google]
EO.png
30KB, 512x774px
>>61269783
And then read this.
>>
I want to become more proficient in automation and writing scripts on Linux. Should I start with bash scripting or Python?
>>
http://www.washingtontimes.com/news/2017/mar/7/berkeley-removing-20k-free-educational-videos-afte/

>was going to watch the brian harvey lectures while reading sicp
>all the videos have been removed

wow
>>
>>61269813
Bash
>>
>>61269813
bash
>>
>>61269783

http://www.oodesign.com/

http://www.vincehuston.org/dp/

https://lostechies.com/wp-content/uploads/2011/03/pablos_solid_ebook.pdf
>>
>>61269807
There's literally nothing wrong with static methods, as long as they don't operate on global variables.
>>
>>61269819
>the videos did not have closed captioning
>so now no one can seem them
thanks, disabled people
>>
>>61269830
static methods are difficult to mock
static anything is basically global
>>
>>61269813
I learned Python first, then wanted to automate some backups, and realized it was easier to learn bash and use it. So that's what I did. Python is pretty shit.
>>
>>61269830

Yes, there is. That is procedural programming. It leads to unmaintainable dogshit.

http://www.yegor256.com/2014/05/05/oop-alternative-to-utility-classes.html
>>
>>61269852
Python's great faggot
>>
Should I read How to Design Programs (htdp) before sicp?
>>
>>61269864
>dynamically typed
trash
>>
File: 1496381938796.jpg (23KB, 385x386px) Image search: [Google]
1496381938796.jpg
23KB, 385x386px
>>61269820
>>61269824
>>61269852
Wow I almost jumped straight into Python. Glad I asked.

Looking forward to getting stuck into it.
>>
File: Screenshot_2017-07-08_00-10-31.png (134KB, 923x1163px) Image search: [Google]
Screenshot_2017-07-08_00-10-31.png
134KB, 923x1163px
>>61269864
"no"
>>
>>61269917
Stop screncapping your own posts and reposting them later.
>>
>>61269932
But I have a script to screencap each and every post I make.
>>
>>61269953
Consider suicide.
>>
>>61269807
>static methods, NULL references, setters, setters, mutable classes are called evil
I like this guy already.

>Do I believe that gender equality is about making men and women fully equal in all aspects of life? Not at all.
>We must not be equal, because we are different.
BASED
http://www.yegor256.com/2017/07/04/sexism.html
>>
>>61269798
No. If the struct is only being used by the one file, you may as well just leave it in the file.
>>
>>61269854
>That is procedural programming. It leads to unmaintainable dogshit
Confirmed for being retarded.
>>
>>61270001
honeypot
>>
>>61270083
The link shortener functionality appears to be working. It don't think it's a honeypot.
http://frommobile.cnn.com/2qBePS
>>
>>61270110
Of course it works, otherwise it wouldn't be a honeypot. That's the whole point.
>>
>>61270164
Honeypots are supposed to look like they work, not give actual access to your systems.
>>
>>61269917
Shit like this is why I'm pretty sure half of /g/ is unemployed. No one cares that C is 1000 times faster than Python. The difference between those two scripts growing an array is 20 ms. Who fucking cares? Python is fast enough where it will still feel instantaneous for a huge chunk of use cases. And on top of that, you have an incredibly easy language to work with and can develop applications incredibly quickly. No one is proposing that everything should be written in python, just like how no one sane is going to propose that everything should be written in C or a .sh file. I'm convinced that people who shit on python so vehemently are the same people who spend hours rewriting fizzbuzz and prime number generators in C to save 1 clock cycle over their previous attempts.
>>
>>61269622
fuck off back to your containment board >>>/pol/ is that way faggot.

>>61268823
I want a kute hijabi waifu desu
>>
accidentally posted in old thread, reposting here:

Hey /dpt/. How much does anyone know about Vector Clustering algorithms? I'm looking to design an algorithm to group elements of arbitrary vector spaces with respect to a metric. Was looking to implement it on an n-dimensional space of doubles in C then also see if I can modify it to compare arbitrary length mp3s using some convolving technique. Anyone have good reading on this type of thing?
>>
>>61269296
Neo-pol is literally cancer, all it is about now is orange dick sucking and boy oh boy don't even start an argument there you will be immediately labeled as SJW. Also, only +18 adults allowed here, you have to go back.
>>
If I want to write quick script in C which library should I install so I can just include one header to have directory + file handling, basic data strucures(hashmap, vector, ...) and stuff?
The library needs to work on x86,x64,arm and on Windows and POSIX-compliant systems.
>>
>>61270020
Gotcha, thanks
>>
>>61270279
lol funny
>>
>>61270279
>quick script
>library with a lot of functionality
>C

these things are almost mutually exclusive. C is used much more for writing highly optimized code which does a lot of mathematical computation. (graphics, compilers, physics simulations, etc.)
>>
>>61270279
node.js
>>
>>61270275
Sure showed him his true color, me fellow Shariablue comrade!
>>
>>61270279
oh yeah, and to add on to >>61270307 there is no fucking chance you will get good cross platform code.

>>61270315
>leftist politics is also politics
please also stop these shitposts too. thanks.
>>
>>61270307
t. non-programmer
>>
>>61270307
One of those does not belong
>>
>>61269722
>when
I generally split files based on some higher level notion of what's being done like a specific system has its own h and c file(s).
But it's pointless to split these things really unless for editing/referential convenience.

People will tell you what they think is right but there's really no such thing as a right way to do it.
>>
>>61268823
Let's say I have a hash table. Not a big one. Maybe 100 key/value pairs in total.

And I have a function that modifies it statefully. Usually one key/value pair, but maybe more depending upon cascading side-effects (it's a puzzle solver) but probably never more than 5 modifications in one function call.

But maybe that function might be an incorrect puzzle move and I want to undo it and restore the state of the table back to what it was before the function was called on it. Is it more efficient to:

1. Keep a running tally of state modifications during a function call and statefully remodify them in the event of an undo

or

2. copy the entire hash table before the function call and revert to that copy in the event of an undo
>>
>>61270279
Stb libraries are great.

Also for writing quick scripts in C you can get the program to run more like other scripts if you use https://bellard.org/tcc/ and -run

Optionally if you'd like your own compiler you can set up an #if 0 #endif and include a small bash script in your C file to compile and run the program.

It's pretty neat but I prefer the tcc.
Most small scripts you write don't actually need the full optimizations of something like GCC.
>>
>>61270349
t. scripting babby who thinks C can do what he wants
>>
File: IMG_0844.png (54KB, 750x1334px) Image search: [Google]
IMG_0844.png
54KB, 750x1334px
>>61268823
I'm on a trip with my family so I'm sitting in the car a lot of time. I want to do something productive while I'm doing this so I've decided to try programming on my phone. I just implemented bubblesort, anyone have some other stuff I can try or problems I can solve? Preferably something not too complex as I have to type it all on my phone.
>>
>>61270597
Respect for typing on a such a small keyboard
>>
File: 1478012490213.png (160KB, 463x179px) Image search: [Google]
1478012490213.png
160KB, 463x179px
>>61270279
>quick script in C
>>
>>61270480
>1. Keep a running tally of state modifications during a function call and statefully remodify them in the event of an undo
this, likely
>>
>>61270279
>If I want to write quick script in C which library should I install so I can just include one header to have directory + file handling, basic data strucures(hashmap, vector, ...) and stuff?
C++
>>
>>61270597
>vpn
b&
>>
>>61270597
>3%
Why the fuck do all the iPhags I see are all on something like 1% battery?
Fucking charge your phones you retarded morons.
>>
>>61270694
Fuck off Bjarne, your joke was not funny 30 years ago and it is still not funny today.
>>
File: NANI4.png (897KB, 918x724px) Image search: [Google]
NANI4.png
897KB, 918x724px
Ruby please respond if you are reading this

What do I do with my life now? I am 1 semester off graduating with my computer science degree but I feel as if I haven't actually learned anything thats particularly hard or real. I don't know what type of job im supposed to look into or what the fuck im supposed to do help me please.

I feel like my degree is a meme so im trying to learn some finance on my own, but fuck what am I supposed to expect to do as a fresh cs graduate?

Im scared
>>
>>61270738
Here you go friendo.
<Insert any tech company here>
https://www.amazon.jobs/
>>
>>61270748
>https://www.amazon.jobs/
All the jobs there require 5+ years experience for New Zealand

WtF?
>>
>>61270720
iphone users have social lives unlike lagdroid pajeets so they don't have access to their charger 24/7
>>
>>61268823
What C++ Library can i use to get a transparent window on top of everything in windows.
For that matter is there a way to give c++ the control over the mouse/keyboard input in windows in general for the sake of interaction with other programs?
>>
>>61270738
If you haven't learned anything hard, what the fuck kind of university were you even attending? Comp.sci is often one of the hardest degrees to get even for STEM.

But well, you obviously try get a job or internship with a company in the field. You can program well (plus do a lot of thinking about program performance, algorithms etc.), right?

[You could also do other things than program of course, I'm sure you learned more.]
>>
>>61270738
The CS course at my school does 'industry placement' in the third year.

Is this uncommon?
>>
>>61270781
I dont know man, can you provide a checklist of what im supposed to know or something? Just a general idea

>You can program well (plus do a lot of thinking about program performance, algorithms etc.), right?

I think so, I haven't actually needed to make a program thats scalable and sustainable (well obviously since university assignments dont require this) but even when im doing my assignments I try to keep things as optimal as possible.

Is it uncommon to just apply for a job without any sort of professional experience whatsoever? Never had a job in my life btw (there was no need to)

>>61270789
Uhh I dont know, dont think so, but there are lots of random "events" that go on, however one of my lecturers told me its a waste of time (a lot of people have said they thought they were getting good experience till they found out the microsoft event was a recruitment for slave labor and didnt even pay interns rofl)

NZ btw.
>>
>>61270738
Read books on statistics, combanitorial optimization, etc, it is all the rage nowadays. Combining that with a language like Python, R, SAS or even C and you have secured yourself a very comfy job with nice pay.
>>
>>61270812
Damn, that's rough. I'm Australian and my local uni puts a lot of emphasis on how employable their graduates are (they base their curriculum off of the local industry).

I thought NZ education was actually pretty decent. Like they wouldn't just kick you out the door and tell you to deal with it.
>>
>>61270812
Microsoft interns are getting around $8kusd/mo here in Seattle.
>>
File: mmm.png (38KB, 188x125px) Image search: [Google]
mmm.png
38KB, 188x125px
In C++, is it possible to start a thread with a non-static member function as the target? (without using any libraries)
>>
>>61270789
It's less common, but my institute of applied sciences also demanded one full year of experience - though you had to place *yourself* somewhere in the industry.

>>61270812
> I dont know man, can you provide a checklist of what im supposed to know or something?
Not really, maybe just look and see if you mostly understand what MIT (one of the best on the USA) or EPFL (one of the best in Europe) do. Employers aren't really getting anything better than that.

> Is it uncommon to just apply for a job without any sort of professional experience whatsoever?
Nope, it's the norm. Of course employers always ask for x years of job experience, but they're often confronted with most if not all candidates not meeting their wish lists.

Be "bold" and apply to any job you think you could do.
Or do an internship, but if your university was srs don't do it unpaid. At least let yourself be compensated a bit more than a burger flipper would be, plus relocation expenses.
>>
>>61270855
class blub {
void non_static_member_function() {}
public:
std::thread spawn() {
return std::thread( [=] { non_static_member_function(); } )
}
};
>>
>>61270821
to be honest i'm not particularly talented at maths and it gets tiresome dealing with theoretical work (literally my whole uni life has been theoretical shit), so I want to do something different for a change, or is it the fact that CS jobs are all about theory (optimizations and such like you mentioned)

>>61270835
Yea I had thought that theyd spoonfeed me into life but I guess thats not the case (university of auckland)

>>61270858
If I manage to get an interview or my application passes for a job, should I try be patrick bateman and negotiate my salary and get the highest deal possible or will they look at me in disgust the moment I try anything because they will tell me to gtfo and hire the next monkey?

Im not exactly sure how expendable my degree is or what Im worth, what should I be looking around as a start full paying job in terms of $NZD?
>>
>>61270244
+1
I was like that too in my late teens, scoffed at everything not written in C or Assembly.
Then I got my first real software development job.
>>
https://lists.debian.org/debian-devel/2017/06/msg00308.html
LOL Ocaml is so bad it broke intels hyperthreading.
>>
>>61270835
> I thought NZ education was actually pretty decent. Like they wouldn't just kick you out the door and tell you to deal with it.
Switzerland's education system is good and yet you still essentially get to look for a job or jobs yourself, regardless if you go the academic or vocational training way of our dual-tracked education system.

But of course we are employable. I was able to score a paid internship with a relatively big name in sillicon valley before even finishing university (took a break for a year), and I didn't even attend one of the very best of our universities. And many tech companies move their European operations here, despite us being a very expensive country overall.

>>61270905
> should I try be patrick bateman and negotiate my salary and get the highest deal possible
Probably just keep with low to average market rates even if you are okay at what you do, unless you just know you're better than most programmers etc. "seen in the wild".

> Im not exactly sure how expendable my degree is
If they consider your university serious, you're in good shape. Well-educated comp.sci staff are in demand with a great many companies, needed to handle anything non-trivial with computers.

You actually knowing your comp.sci shit is a *massive* cost-saving factor, and they'll pay for skilled people (of which there aren't actually enough).

If you are from a diploma mill, hiring some random Indian is almost better unless you demonstrate individual skills.
>>
>>61270855
I thought I was being clever:
std::thread RemoveThread = std::thread(&Remover::remove_files, this, files);


didn't work...

>>61270897
Doesn't compile.
>>
>>61271000
>Doesn't compile.
C++11
>>
>>61271005
Oh, it does compile. I just had other code produce unreadable errors and thought it was caused by your code.

I'll check if it works in a minute, but it looks quite hacky. Any resources I can read to figure out what that code actually does?
>>
>>61270905
Then your best bet is too look into startups, they don't ask for much experience (if any). The pay will be shit though.
>>
>>61271107
This is not necessarily good advice, startups can be extremely unreasonable.

Older companies are generally just as interested in hiring comp.sci graduates (again condition on the respective institution not being shit).

They do quite often need more people who can learn just about anything software related quick and use it well.
>>
>>61271140
I have to agree with that anon, startups are a hit or miss but if the NZ anon is lucky enough to find a good startup then he will be able to learn an awful lot.
>>
>>61271160
You can learn a lot at any employer that is reasonably flexible, plus if it's an ordinary job you should be able to learn even more in your free time after the job if you feel like putting in that effort.

Good startups are relatively rare. Many are some idiot gamblers trying to saddle you (and the other engineer/scientist types) with the burden of making their relatively silly ideas work, for cheap. They often either have an excessive workload for you or not enough work that is actually in your field.

For financial reasons, I'd suggest doing that later in your career if you really feel like doing it.
>>
Working on a special hardware project that will help teach programming, however I've decided no existing language quite fits the product. After much research, I've decided I'll base the language on Object Pascal because the language is the closest to meeting my needs.

However, before diving deep into this, I need a month or two of real Object Pascal experience to better understand how to adopt the language to my needs.

So my question is, what's an open source Object Pascal project with very high code quality that I can read through and hack a bit to get a feel for the language?
>>
>>61270260
I do, I am not sure if you really mean design or implement but there are libraries already available for this kind of thing. The most easily usable are probably python's. If its a practice project go for it, its pretty cool.
>>
>>61269219
>Seriously, if you still don't use a relational database in 2017, you should neck yourself.
FTFY
>>
File: aa2.gif (3MB, 640x480px) Image search: [Google]
aa2.gif
3MB, 640x480px
I just finished this mini project
it changes the window focus to hover instant without moving the window to the foreground
pls r8

https://github.com/alex47/MouseFocus
https://github.com/alex47/MouseFocus/releases
>>
>>61271282
Maybe one of these is fun for you to look at:
https://github.com/Fr0sT-Brutal/awesome-delphi

> very high code quality
You know, Delphi is mostly about "making shit work" on primarily Windows. Ultimately more about hacks (even some nice ones) than beautiful "high code quality" code.

If you want demonstrably very high quality code where you can argue why it is high quality code, go for a purely functional language.
>>
My own struggle against vast technical debt and willful ignorance.

Also a Raspberry Pi torrent box.
>>
>>61268895
What is there to talk about with SQL?

>>61269219
Most people aren't using Scala or another language where you can write high performance noSQL actually very fluently, and it's still mostly about saving programmer time.

As such, probably well over >90% of problems are still best kept on SQL, even if the other solutions are fancy they'll just cost more programmer time and most problems just don't need more extreme performance than typical SQL can offer.
>>
>>61271365

It, uh, changes the registry?
>>
>>61271419
yeah
it's a glorified .reg file
pls r8
>>
Its not complicated.

Some tasks are better suited to SQL, others to NoSQL. A competent developer will use whatever fits best, often a mix of both. Anyone who exclusively uses one and rules out the other is a fucking spastic.
>>
>>61271430

Impressive and innovative. I'd like to use it in my project. What license is it released under? Is there a fee? Can I pay in bitcoin?
>>
>>61271454
I just added GNU General Public License v3.0
anything goes I guess
>>
trying to combine D3.js (make an SVG chart) and fucking putting it inside a PDF using jsPDF.

WHY IS IT SO DIFFICULT TO GET THE SVG IN THE PDF FUCKING CLOSE TO ZERO DOCUMENTATION
>>
>>61271487
Is it compatible with windows xp? I use it for surfing the web cause its safer.
>>
>>61271504
you tell me :^)
>>
>>61271489
PDF's are a dark art in most cases. Even when you get it to work the lines won't be straight or some bullshit. Maybe try doing it server side, might be easier as it opens up a few more options than just the browser.
>>
I am absolutely retarded
ask me anything
>>
>>61271521
Why yellow?
>>
>>61271521
Do you feel that ignorance is bliss?
>>
>>61271513
I ran it and it said something about fatal error. I think it gave me cancer. Is there a fix?
>>
>>61271523
I don't know

>>61271525
no
>>
>>61271520
problem is I need to make it in the browser. However I might have found a workaround.
I generate a chart template with D3, get the fuck huge code from it and figure it out.
I managed to add HTML SVG's with jsPDF, so if I can figure out the fuck huge D3 output (it compiles into a HTML SVG) then I can technically do it without D3.
>>
>>61271521
How many times do you jack off a week?
>>
>>61271542
I don't
sexual activity pollutes the soul
>>
>>61271539
Why? curious.
>>
File: genius.png (198KB, 358x387px) Image search: [Google]
genius.png
198KB, 358x387px
>>61271000
Wait, that code snippet worked.
Maybe I am a genius after all.
>>
>>61271550
Polluting the soul is what makes life fun
>>
>>61271558
its a freelance gig I got, and looks pretty doable desu
>>
>>61271570
Fair enough just wondering if its a real restriction or a faux one. If its doable do it brah.

Personally I'd do it server side but I'm very bad at JS and therefore hate it and never use it.
>>
>>61271529
post screenshot
>>
File: h2EANkC[1].png (9KB, 482x620px) Image search: [Google]
h2EANkC[1].png
9KB, 482x620px
>>61271593
I did it sever in .NET before with ReportViewer (not SVG tho) and worked well


I got it to work, but its so tiny for some reason in the PDF lol
>>
I'm new to makefiles. My current one works, but it builds the object files automatically, without their own rule, feels a bit suboptimal.

My directory structure looks something like this:
├── bin
│ ├── pattern
│ └── physics
├── Makefile
├── src
│ ├── pattern
│ │ └── pattern.c
│ └── physics
│ ├── motion.c
│ ├── motion.h
│ ├── physics.c
└── test
├── ...

Each directory in src contains all files that belong to the binary named like the directory.

And here's my current makefile:
CC      = gcc
CFLAGS = -Wall -std=c11 -O3
BINS = $(addprefix bin/, $(notdir $(wildcard src/*)))
SRCDIRS = $(wildcard src/*)

.SECONDEXPANSION:

all: $(BINS)

bin/%: $$(subst .c,.o,$$(wildcard src/%/*.[ch]))
$(CC) $(CFLAGS) -o $@ $^

clean:
rm -f bin/*
rm -f src/*/*.o

test:
$(MAKE) clean
$(MAKE)
./test/runall.sh

.PHONY: all clean test


How would the rule for the object files look like?
>>
>>61271550
>I am absolutely retarded
>sexual activity pollutes the soul
checks out
>>
>>61271615
>it builds the object files automatically, without their own rule
GNU Make several "in-built" rules, and .o from .c is one of them.
%.o: %.c
$(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $<

I think. I can't be bothered to test it.
>>
>>61271601
I dont allow images on my PC for security reasons. This is close enough. Its not quite the same detail and some bits are exaggerated but it should be enough for you to debug

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;▄▀▀▀▀▄;;;;;;
;;;;;;;;;;;;;;;;;;;;â–„â–€;;;;@;;@;;â–ˆ;;;;
;;â–„â–„;;;;;;;;;;â–„â–€;;;;;;;;â–„â–„â–„â–„â–ˆ;;;;
█;;;;▀▄;;▄▀;;;;;;;;;;;;;;;;;;;;█;;;;
;;▀▄;;;;▀▄;;;;;;;;█;;;;;;;;;;;;█;;;;
;;;;;;▀▄;;;;▀;;;;;;█;;;;;;;;;;;;█;;;;
;;;;;;â–„â–€;;;;;;;;;;;;â–ˆ;;;;;;;;â–„â–€;;;;;;
;;;;;;▀▄▀▄▄▀;;;;█▀;;▄▀;;;;;;;;;;
;;;;;;;;;;;;;;;;█▀▀█▀▀;;;;;;;;;;;;;;
;;;;▀▀;;▀▀;;;;
>>
Makefile syntax sucks! What's the best transpiler for Makefiles?
>>
File: superiorMind.png (279KB, 898x790px) Image search: [Google]
superiorMind.png
279KB, 898x790px
Why aren't you live coding, anon?

https://medium.freecodecamp.org/lessons-from-my-first-year-of-live-coding-on-twitch-41a32e2f41c1
>>
>>61271614
Experienced in this. Use report designer on SSRS server, set your report to print mode, adjust til satisfied. Then it'll look the same on PDF.
>>
>>61269201
>tfw my wife's got B
Still fun to play with, though...
>>
>butthurt SJW got banned for tranny posting so now he's muslim posting

Such low energy
>>
>>61271648
Wew, that was easy. I thought it needed the the directory in the rule target and dependency. Thanks!
>>
Guys can someone point me to a good complete C# tutorial?

I have an internship coming up at a major company and I need to land this one.

Mosh Hamedani has some neat tutorials on udemy, but everything above beginner is paid, can someone provide me a torrent or something to a intermediate/advanced part of his course, because I'm really really really short on money, like I barely have for food at this moment.
>>
>>61271666
Managed to make it the size I want. Will try to make it so that its not hard coded, if someone wants to add another bar to the chart etc...damn
>>
>>61271708
Ah sorry I was talking about Reporting services haha. Sounds like you're on top of it, sure you'll nail it brah. Always remember the difference between PDF files (what your working on) and Paedophiles (OP).
>>
>>61271706
Go to your library, lend a book on C#.
>>
>>61271706
Whats your current level with other programming languages?

don't know any tutorials as I don't use them but try setting yourself tasks. Implement and algo, ie quicksort. Implement a data structure, ie Linked list. Implement an app that reads & writes data to local files. Implement an app that reads data from the web somewhere. etc.

I've got 8 years experience with C#, could give you some pointers if you want but not able to teach from scratch.
>>
>>61271728
Books scare me.
>>
>>61271706
microsoft virual academy has everything for free

>>61271725
Hope so thanks
>>
>>61271759
all ook words are scary.

Took? what did you take from me?
Look? he's making eye contact, quick, run
Spook? A GHOST
Cook?

scary stuff
>>
I'm working on trying to decide which language I should learn
>>
>>61271791
depends on what you want to do, of course
>>
>>61271772
holy shit thanks, on to studying for me
>>
>>61270774
Having a social life seems pretty shitty.
>>
File: emulator2.jpg (875KB, 3309x1201px) Image search: [Google]
emulator2.jpg
875KB, 3309x1201px
Tinkering with my FFXIV emulator written in C# which supports the latest patch, anyone else interested in server emulation?
>>
>>61271365
Lmao, this is trivial to do in Linux, in fact it's often the default.
I fucking hate how Windows doesn't change the window focus when you hover over.
>>
>>61271653
I see the problem now
there is a frog in your computer
please remove it first and try running it again
>>
File: 1408721128577.png (70KB, 480x480px) Image search: [Google]
1408721128577.png
70KB, 480x480px
>>61271851
>Linux
>"lel you have to customize your settings to your liking if you don't like the default. BEST OS"

>Windows
>"HA you have to customize your settings to your liking if you don't like the default. WINDOWS SUCKS"
>>
>>61271851
>Uses Linux with a GUI
>Enjoys weekend
>Back to school on Monday to repeat 1st grade again
>>
File: 1374576513876.png (642KB, 726x1040px) Image search: [Google]
1374576513876.png
642KB, 726x1040px
>>61271932
>Linux
>HAHA you have to edit config files to make your programs act how you want them to

>Windows
>Just let me go deep into the registry and write an entire program to configure this one thing
>>
>>61271851
It's trivial to do in windows too.
I don't see why you're aping out about this.
>>61272006
Registry is just a glorified configuration file in some sense.
It has issues which does in fact make it worse than just configuration files. But I find the nature of something like the registry where it's giving you a nice interface to configuring the whole OS.
You could also configure it using powershell I'm sure but it's probably not as accessible as windows.

I'm sad that we have these crappy ass OSes as the most popular ones though.
>>
>>61272006
Creating a reg file takes no more time than editing a config file, the program is just an elaborate wrapper for it.
>>
>>61272026
>I'm sad that we have these crappy ass OSes as the most popular ones though
name ONE (1) modern OS that is not crappy and is not linux/unix related or windows related
I'll wait
>>
>>61272044
I even have problems naming one(1) OS that is not crappy including linux/unix related and windows related oses.
>>
Trolls trolling trolls.

My favourite OS is Windows Millenium Edition. That shit was awesome.
>>
Why did I learn C instead of C++?
>>
>>61272101
Now when you learn C++ you can be more critical about it. You can use the good stuff while avoiding the bad stuff. You have more insight than the average pajeet learning C++.
>>
>>61272101
You fucked up so bad you don't even know the right question. The real question is, why didn't I learn Java, C#, Python or any other modern object oriented language that is far more useful for the average joe developers career than C or C++.

C++ is barely used nowadays anyway. Games don't need optimizing, they are super quick already. GPU's are so powerful they use interpreted languages. Powershell4Nvidia is a good website to start off.
>>
>>61272110
The thing is the average pajeet learns c++ by getting thought with all the c shit instead of getting thought all the good parts of c++. So I don't really see it as a plus.
>>
>>61272216
I find that they jump right into OOP design bollocks as early as possible which is pretty damn dangerous in C++ if you don't understand what's really going on.
>>
I guess C++ is not really needed anymore except for gamedev. You can use C for system level programming and C#/Java for everything else instead of C++.

What do you need C++ for?
>>
>>61272235
>What do you need C++ for?

For writing safer code than C using C++ move semantics and RAII so you don't end up with the safety crisis that is C programming, because Rust isn't ready yet.
>>
>>61272280

But you can't write drivers and fancy stuff with high level C++ abstractions. There is no RTTI in kernel mode on Windows and Linux is written in C.

For high level software (Desktop for example) C# and Java do job perfectly. Why would i use C++? For what?

>except for gamedev
>>
>>61272280
Move semantics are nothing to do with safety, that's a speed thing. You can write perfectly safe code with copy and destruction semantics - move semantics are just an optimized alternative to that.
>>
>>61272234
A flaw in the teaching then. When you first start programming its not important to really know whats going on. Its important to learn how to apply logic, how to solve problems, etc. Its learning the thought process. Then later on, algorithms, data structures... then later on design patterns.. etc. The intricacies of the language are unimportant when teaching somebody how to be a programmer. IMO.
>>
>>61272234
not >>61272305 but I honestly think people just get thought c++ and all of its modern features instead of learning them c first with extra additions. This will only confuse people learning c++ and making them think wrongly.
>>
>>61272305
>When you first start programming its not important to really know whats going on. Its important to learn how to apply logic, how to solve problems, etc. Its learning the thought process. Then later on, algorithms, data structures... then later on design patterns..
I disagree, C++ is not a typical language. Most of its abstractions are just thin wrappers around C concepts. You're treading on eggshells if you try to jump right into the principles of software design because your primitives will very easily break.
>>
>>61272235
soft/hard real-time applications
>>
File: cs grad meme jpeg.png (13KB, 767x100px) Image search: [Google]
cs grad meme jpeg.png
13KB, 767x100px
when is the CS meme bubble gonna finally pop?
>>
File: 1499156478246.jpg (25KB, 480x480px) Image search: [Google]
1499156478246.jpg
25KB, 480x480px
>>61268823
how should i go about learning python?
>>
>>61272519
Read and experiment for a bunch of weeks.
>>
File: mathphd.jpg (40KB, 640x427px) Image search: [Google]
mathphd.jpg
40KB, 640x427px
>>61272235
high-frequency trading
>>
Macros are quite amazing.
// Cast &str to C string, while keeping the same variable name.
// Needed to make sure the string is not dropped before the C function returns.
macro_rules! to_C_string {
( $var:ident, $fn:expr ) => (
{
let $var = CString::new($var).unwrap();
{
let $var = $var.as_ptr();
$fn
}
}
)
}

// Define functions for writing to the DOM
macro_rules! define_writers {
( $( $id:ident ),* ) => (
$(
pub fn $id(id: &str, html: &str) {
to_C_string!(id, {
to_C_string!(html, {
unsafe { ffi::$id(id, html) };
})
})
}
)*
)
}
>>
>>61272704
>language in a language
great...
>>
I think its time for me to get my hands dirty by learning(and using) java, how do I remain non-pajeet?
>>
>>61272748

There is no way. If you touch Java you become shit
>>
>>61272725
Not good enough, Scala does it better:
https://github.com/epfldata/c-scala
https://github.com/fogus/baysick

>>61272748
Just do it well. Or use Scala / Kotlin / Clojure / Ceylon or whatever else instead as your JVM language of choice.
>>
>>61272748
Just make sure you know something else.
>>
>>61271819
How did you get started with this?
Is your project open source?
>>
>>61272783
>Not good enough, Scala does it better:
There's also this coming for Java: http://openjdk.java.net/projects/panama/
>>
>>61272044
I can't. They're all crap. But nobody interested in making good software does OSes anymore because it's a completely impenetrable market unless you're a unix derivative (usually only in industry) or a Linux derivative (anywhere).

What bothers me isn't why X isn't popular its that there aren't any good ones. Especially not popular ones. You could make a good OS now but it won't succeed.
>>
File: 1499482476701.jpg (72KB, 780x737px) Image search: [Google]
1499482476701.jpg
72KB, 780x737px
Starting with Haskell ^-^
>>
>>61272902
>unix derivative
I didn't mean that in a strict sense. Just saying, some domains do have OSes that are more unix than Linux. Which I do find odd but I'm sure there's reasons.
>>
>>61272918
Waste of time
>>
>>61272854
Feels like that might have some interesting consequences, but that seems far away.

Why are you interested in that?
>>
File: 1499384318829.png (871KB, 700x990px) Image search: [Google]
1499384318829.png
871KB, 700x990px
>>61272930
Why? I feel like it's the most sound language out there.
>>
>>61272956
>>61272918
neck yourself you homo
haskell a shit
>>
>>61272946
JNI is currently a nightmare to work with. Hopefully they'll fix it in Java10.
>>
>>61272956
I feel it's more like, reasearch in process.

Interesting research, but really not finished enough to handle most actual programs with reasonable performance and reasonable developer time to write them.

Still, you can gain some understanding of what's currently useful in FP, but pure FP is kind-of unworkable.
>>
>>61272965
r...rude ><
>>
>>61272956
Because you have to learn a lot of shit all of which has exactly zero to do with how computers work.
Unless you secretly want to learn category theory.
>>
File: wearing-many-hats.jpg (24KB, 379x480px) Image search: [Google]
wearing-many-hats.jpg
24KB, 379x480px
>>61271932
>use ubuntu gnome
>only have to do a small handful of customizations: uninstall cups, turn on the partner repository, install flash player extension
>everything else is already perfect because gnome is the best de and ubuntu is the friendliest distribution family
>compare to windows where to get a perfect environment you have to wait like half an hour for an update, restart, fix windows update because it's broken by that point, manually select the next update to install so you can use wsl, wait half an hour for the update, restart, turn on the obscure and well hidden developer features option, turn off literally at least a dozen different obnoxious botnet features, right click on different regions of the start menu at least two dozen times, bash cortana's skull in with a command line as she literally fights for her life by repeatedly starting back up while you try to delete her, install classic shell so you have more control over your interface and don't have to feel dirty for having the windows icon on your screen, install a different browser than edge while putting up with microsoft's garbage about how you're somehow morally obligated to use edge instead, uninstall kandy krush shitga, set up a script to uninstall all the garbage you don't use or want that windows considers """system""" programs, run it, put it somewhere safe, and configure it to start on a regular schedule because that shit's gonna keep trying to come back
>and THEN you've got a comfy windows setup and i will absolutely admit once you get to that point it's a great experience
>but it's just not worth it tbqfh, probably less fucking work to just install windows server as your desktop os and manually remove or disable all features that make using it for that purpose implausible or unsafe
>or literally just install ubuntu gnome and get very nearly as comfy an experience for a fraction of the work and at no cost
>>
>>61273001
Yea, JNI could be better, but I'm not actually yet convinced this is going to be much better in reality any time soon.
>>
>>61272725
>t. brainlet
>>
>>61272918
Fucking Nozomi.
I'd cum in her pussy 24 times a day
>>
>>61272783
but jvm languages are categorically garbage
>>
File: 1499419109419.jpg (304KB, 1102x1516px) Image search: [Google]
1499419109419.jpg
304KB, 1102x1516px
>>61273007
>Still, you can gain some understanding of what's currently useful in FP, but pure FP is kind-of unworkable.
Exactly. Pure FP isn't practical, but Haskell has interesting features like monads and immutable data structures. Those feature can also be useful in other languages.
>>61273015
If I wanted to learn how computers work, I would've picked up a book on electrical engineering.
>>
>>61273172
They're about the most useful ones if you want to parallel computations or async or a lot of other things, so no, they're pretty damn useful.

Going forward that's also what we mostly need.
>>
>>61273221
>They're about the most useful ones if you want to parallel computations or async or a lot of other things,
lisp
>>
>>61273209
>Those feature can also be useful in other languages.
Sure. but if you're learning them from Haskell's end you're getting 5 types that will never be useful in other languages to 1 that will be. It's ultimately very experimental, and people use / make up way more types than is sensible.

The point being, you might as well learn the useful types from what actually got adapted into other languages.
>>
>>61273221
On the contrary, practically any language is better for this than jvmlangs. Ruby. Python. Lisp/Scheme/etc (but not Clojure because it's a jvmlang). Even C++, or even vanilla C linked against third party multicore threading libraries, is a better choice than any piece of trash that runs on Currynigger: The VMâ„¢.
>>
>>61273235
Theoretically not bad, but the JVM and its languages are better for more than one reason.

And most of them not LISP derived, particularly most that get used for big data / big processing and all that.
>>
>>61273274
not him but
>Currynigger
do not be mean anon
We are an okay country
>inb4 poo in loo
not our fault, superior caste owns the loo
i am thinking you should do the complaining to them instead
>>
>>61273274
That's not how it actually works in the real world, but you're free to fantasize about "your" languages being the best.

Real world big data / big processing is extremely heavily on the JVM and just slipping over more with Apache Spark and Cassandra and many more actually doing much better for most software than decades of attempts at making something useful work with C or C++ or these other languages have done.
>>
>>61273259
Haskell enforces the functional programming paradigm. That's why I consider it a good language to learn true functional programming.
I could've picked Scala, but I would cheat myself by sneaking in imperative code.
>>
>>61271314
I meant to design. Like resources for how they work.
>>
>>61273322
>actually doing much better for most software than decades of attempts at making something useful work with C or C++ or these other languages have done.
Well, yeah, the hamster doesn't care what kind of wheel you give it, what decides how fast it turns the wheel is whether you dangle the food in its face.
>>
Just got interested in programming. Thought I could write a program for looking up certain types of reactions in chemistry using a small database that I'd make up. Basically, it would just ask for type of educt and type of product, maybe even more details about the reaction products but I'm not sure yet.
I guess, coding this in C would be the most convenient but I'm open for other suggestions or general advice.
Godspeed, fellow anons!
>>
File: 1475261809016.png (99KB, 288x405px) Image search: [Google]
1475261809016.png
99KB, 288x405px
>>61273129
>linux
>you have to tinker with it for days by editing config files
>downloading apps to change confs
>downloading packeges, extensions
>downloading necessary apps from github and having to MANUALLY COMPILE THEM and it just gives fucking BULLSHIT ERROR MESSAGES why it won't compile
>compiling drivers for the 3rd time because you forgot an argument and it just doesn't werk
>making it compatible for microsoft things like getting MS fonts and wine installed
>having to make it look like either mac os or something would look like from a bad movie with terminals and text everywhere
>configuring audio
>getting rid of screen tearing
>having to read a wiki for a different distro when something doesn't work for your distro and some things are named differently or are in different places
>making friends with choppy animations becuase no linux graphical desktop environment can into smooth animations
>and when you are done you realize nothing works and you go back to windows
>>
>>61273361
Forgot to add I learned the basics of Java back in High School, in case that affects your advice.
>>
File: 1493982553994.png (232KB, 457x406px) Image search: [Google]
1493982553994.png
232KB, 457x406px
>>61273315
>india
>okay country
Is this bait?
>>
>>61273345
Heh, no. The companies in question do care how much hardware they have to run 24/7 without interruption, and about how they do it on the software end.

The JVM is just a superior choice for this kind of stuff right now. Not due to a law of nature, but because the whole native stacks are garbage with regards to async, fp and so much more.
>>
>>61273362
are you telling me you didn't learn how to do all this as a kid though?

I learned most that shit like ten years ago as a teenager. It isn't like windows is better, just different in the bullshit you put up with. its fine if you don't like linux, those are just bad reasons to dislike it
>>
>>61273209
keep kidding yourself retard
>>
>>61273361
C is a fine language, but I wouldn't recommend it for building GUI programs. CLI programs are fine obviously.
If you want something that just works, use Python.
>>
i am a programming noob who has no money but i have an idea for an app. i know some basic stuff like variables and some functions but my app will definitely need some sort of database.

does anyone know of a good online crash-course or guide to start learning this shit?

i dont think i will be making a polished app anytime soon but im hoping can atleast make a crude semi functional concept app to try and get an investor or partner up with people who can make this app happen.
>>
>>61273398
ok, kid
>>
File: 1498370543100.gif (982KB, 320x287px) Image search: [Google]
1498370543100.gif
982KB, 320x287px
>>61273362
>>you have to tinker with it for days by editing config files
>he doesn't use ubuntu
>>downloading apps to change confs
>he doesn't use ubuntu
>>downloading packeges, extensions
>he doesn't use a package manager (?!)
>>downloading necessary apps from github and having to MANUALLY COMPILE THEM and it just gives fucking BULLSHIT ERROR MESSAGES why it won't compile
>he... what the fuck are you doing
>>compiling drivers for the 3rd time because you forgot an argument and it just doesn't werk
>compiling drivers
>?!??!??!?!?!?
>he DEFINITELY doesn't use ubuntu
>>making it compatible for microsoft things like getting MS fonts and wine installed
>he uses wine
>>having to make it look like either mac os or something would look like from a bad movie with terminals and text everywhere
>he doesn't use gnome
>>getting rid of screen tearing
>he doesn't use gnome
>>having to read a wiki for a different distro when something doesn't work for your distro and some things are named differently or are in different places
>he doesn't use ubuntu
>he doesn't use a package manager
>>making friends with choppy animations becuase no linux graphical desktop environment can into smooth animations
>he doesn't use gnome

>he doesn't use ubuntu
>he doesn't use gnome
>he complains about how hard linux is as a refutation of the suggestion to use ubuntu gnome
>he logic
>>
>>61273392
>wow you never experienced the same thing as I have in a different part of the world in a different environment in a different family and different possibilities lol look at this pleb xd
>>
>>61273427
>give reasonable dispute to post
>poster responds with whiny bullshit
classic. never change /g/
>>
>>61273361
C is never the most convenient.
For basic programs like the one you've suggested it's better to use a simple language like Python. It will get you going fast and you won't have to fight with the compiler over low-level stuff you most likely don't care about right now.

Python can do rapid prototyping through its REPL interface, which is key in the beginning of your programming adventures. When you get familiar enough with Python and crave more, then move on to C/C++.
>>
File: 1499195879680.png (106KB, 480x529px) Image search: [Google]
1499195879680.png
106KB, 480x529px
>>61271365
>Windows 10
>C$
>LINQ
>epic "mous hover script"
ehehehe
>>
>>61273382
you are needing to not be fucking rude friend we are doing best we can superior caste owns everything and its shit but we make do and yes okay that we are a bit dirty but its because THEY keep us dirty and they are to keeping us dirty and hungry and without material to buils better life because they already using it all for THEMSLEVES. not our fault superior caste is shity ok? please make your fun at them instead
>>
>>61273469
>Windows 10
just the most popular operating system in the world yes
>C$
I think you mean C#
there is nothing wrong with C#
>LINQ
???
>epic "mous hover script"
not a script
it just changes some registry keys to achieve this
>>
>>61273412
pfft just another monad mongoloid
>>
>>61273490
>muh "moan ads"
>muh "mongle lloyds"
>>
NEW THREAD:

>>61273495
>>61273495
>>61273495
>>61273495
>>61273495
>>
>>61273486
kek
>>
File: xsJuokb.png (466KB, 825x523px) Image search: [Google]
xsJuokb.png
466KB, 825x523px
>>61273504
>>
>>61273510
>;^)
>>
>>61273362
That's legit for arch sure, debian stuff is almost never that bad
>>
>>61273486
If you're using C# and don't know LINQ you should do yourself an education nigga that shit is useful if you're knocking together garbage for corporate
>>
>>61273510
>le edgy kys meme X----DDDDDD
TRULY EBYN
>>
>>61273563
Excuse me what the fuck
You've obviously never used either.
>>
>>61273651
You've obviously never used ubuntu gnome
>>
File: emotion_mad.jpg (22KB, 480x360px) Image search: [Google]
emotion_mad.jpg
22KB, 480x360px
STOP POSTING UGLY WAIFUS.
Onegaishimasu~~~
Also,
>>>/out/
>>
>>61272124
>Games don't need optimizing, they are super quick already. GPU's are so powerful they use interpreted languages
Confirmed fucking idiot.
>>
>>61271365
>windows
>>
>>61272299
>But you can't write drivers and fancy stuff with high level C++ abstractions
Yes you can. I'm writing an entire kernel in C++.
And no, I'm not just writing C with classes.
>>
>>61274234
linux can do this already
why not make the windows experience better?
>>
File: 1494342883495.gif (25KB, 200x200px) Image search: [Google]
1494342883495.gif
25KB, 200x200px
how to get a job, /dpt/?
>>
>>61274255
there's no need to lie on the internet
>>
>>61273510
Stupid faggot, this isn't /diy/
>>
>>61269971
women reeing in the coments of that are hilarious
Thread posts: 315
Thread images: 46


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