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

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

Thread replies: 255
Thread images: 36
File: barbie.png (893 KB, 975x732) Image search: [Google]
barbie.png
893 KB, 975x732
women in coding edition

Old: >>52184052
>>
What's the best way for a girl like me to learn C?
>>
>>52188117

if theyre hooking up Skipper's hard drive why does Barbie got a CD-ROM casette?
>>
Daily reminder that if your language of choice is not on this list you should probably give up and kill yourself:
- C++
- C#
- Lua
- Python
- Elixir
- Haskell
- Bash
- Clojure
- D
>>
>>52188133
I hear crossdressing makes you a better programmer
>>
>>52188284
Only works if you're a guy desu
>>
How should I handle API keys and github?

I don't want my application to be dependent on any external resources, so the API-Keys are hard coded.
But it's a pain in the butt to remove them every time before committing.
>>
File: 1451704434903.jpg (213 KB, 1386x1385) Image search: [Google]
1451704434903.jpg
213 KB, 1386x1385
>>52188133
>girl

Cosplaying as a girl doesn't make you one.
>>
>>52188394
Did you even read the code of conduct?
>>
>>52188393
You kinda answered your own question, you either keep adding and removing or use a config file (or even a shell variable).
>>
>>52188408
Stating the facts is not a crime.
>>
>>52188425
And that's where you're wrong.
>>
First 100 Fibonacci numbers... in Rust.

extern crate gmp;
use gmp::mpz::*;

fn main() {
let mut a = Mpz::new();
let mut b = Mpz::new();

a.set_from_str_radix("0", 10);
b.set_from_str_radix("1", 10);

for _ in 0..100 {
println!("{}", b);
let c = &a + &b;
a.set(&b);
b.set(&c);
}
}
>>
>>52188117

https://play.google.com/store/apps/details?id=com.terminaltwofourty.rmgsoftware
>>
>>52188269
>2016
>not using ocaml
>>
>>52188529

go home inria
>>
Question about C#/Visual Studio/Entity Framework. Anyone more information if any update fixed the use of "(localdb)\v11.0" in the connectionstring? It suddenly works in VS2015...
>>
>>52188498
Rate:
let rec fib = mem <| function
| x when x < 2I -> x
| x -> [|1I; 2I|] |> Array.sumBy (fib << (-) x)

mem is a memoizer
>>
>>52188615

This is hard to read.
>>
>>52188639
I know lol, the last line is just this:
| x -> fib (x - 1) + fib (x - 2)
>>
>>52188651

In all seriousness, why do functional programming languages try to compete for who has the most illegible syntax?
>>
>>52188615
>>52188651

(-) x is the function a -> x - a
(because x is the first operand, it's left of the infix)

fib << (-) x is the function
a -> fib (x - a)
sumBy applies the given function to each element then add the results

I've since changed 1;2 to 1..2 (slightly more generic)
>>
>>52188690
| x -> fib (x - 1) + fib (x - 2) would be more sensible, I just felt like fucking around

If I wanted, I could just change the 2I to 3I and the 1I..2I to 1I..3I and I'd have the equivalent of fibs for the last 3 elements
>>
File: h.jpg (98 KB, 317x299) Image search: [Google]
h.jpg
98 KB, 317x299
/g/ can't even write a program that outputs a perfect circle

/g/ can't even write a program that outputs 4 dimensions
>>
>>52188269
>no assembler, alternate shells, scala, any lisp besides clojure
there's a reason ESR recommends learning a set of 5 languages
>>
>>52188738
I wrote a program that renders perfect circles to a 4d canvas represented on 3d geometry represented in a 2d bmp file.
>>
>>52188744
This desu senpai
>>
Why do people still respond to that bait?
No hate, it's just interesting how you never need to modify it but you get responses every time.
>>
>>52188738

Nor can anyone else. A perfect circle is a theoretical concept that cannot exist in reality.
>>
Begun, the thread wars have.

>>52188738
>/g/ can't even write a program that outputs a perfect circle
*ahem* >>52187878

>/g/ can't even write a program that outputs 4 dimensions
Anyone who has written a gl program with video output displayed on a 3d television monitor has done that.
>>
Threadly reminder
>>52184052
>>
File: ug.gif (489 KB, 458x260) Image search: [Google]
ug.gif
489 KB, 458x260
>>52188738
>He forgot a quotation mark.

/g/ can't even write a program that counts to infinity
>>
>>52188393
#include "/path/to/api_keys.h"

Just don't add api_keys.h to the repository.
>>
File: 1451666507526.jpg (56 KB, 930x794) Image search: [Google]
1451666507526.jpg
56 KB, 930x794
>>52188805
Apparently, /g/ can't backlink either.
>>
>>52188785
Deleting your post doesn't cause the embarrassment to go away, anon.
>>
>>52188785

/dpt/ can't even output a string
>>
Let's stop shitposting for a second lads
>>
>>52188690
> why do functional programming languages try to compete for who has the most illegible syntax?
They don't "compete". But given that their target audience (i.e. people with a background in math or theoretical CS) tends to be familiar with algebraic notation, there isn't the same incentive to spell everything out in words as there is in languages designed for MBAs or arts/humanities majors.
>>
>>52188875
What's your /favou?rite/ anime senpai?
>>
>>52188805
var i = 0;
while(i < Infinity){
console.log(i);
i++;
}


Wahey.
>>
>>52188887
I don't really watch anime, but I loved Attack on Titan, Tokyo Ghoul, Shaman King, Card Captors and I used to watch a cheeky bit of Sailor Moon

Anyways lads, I've uploaded my image download script and thread regex searcher script on github. It should all be pretty self-explanatory, it's pruned of bugs other than wrong function inputs and looks nicer now
https://github.com/vinheim3/chan-tools
>>
File: sds.png (210 KB, 640x360) Image search: [Google]
sds.png
210 KB, 640x360
>>52188916
>Infinity is actually a thing in memescript

smdh
>>
>>52188959
You should really be /optimi[sz]ing/ it by making it in a non-meme language.

A GUI would be nice too.
>>
>>52188887
opm
>>
>>52189023
I'd love to try a non-meme language, I'm learning C and asm on the side, but I'd like to just practice making products more complete, so I can push something sellable quickly

GUI is now on my to-do list, if you check my github again, it has all the full details in the readme
>>
>>52189023
>python
>meme

it's good for scripts babe.
easy and quick for that purpose too.

>GUI
>quick and easy script ^ but I agree, gui on most things would be nice.
>>
Python isn't a meme, it's just shit.
>>
>>52189121
nice meme
>>
What kind of cheeky app can I make using the transport for london unified api lads? All I can think of is getting train times
https://api.tfl.gov.uk/
>>
>>52188117
I hope Skipper shoves Steven's face up Barbie's vagina and dumps both of them into the trash before reformatting his hard drive.
>>
>>52189336
realtime road disruption alerts would be nice m8
>>
>>52188738
>/g/ can't even write a program that outputs 4 dimensions
return [[[[]]]]
>>
>>52189374
Well I'm somewhat new to this concept in general, but does the 5 minutes underneath GET mean you can only request that information every 5 minutes? If so, would that even be good enough?
>>
>>52189390
>[[[[]]]]
what syntactic hell of a language would do something so horrible?
do you mean [][][][]?
>>
>>52189390
>put three boxes inside a larger box

It's a 4D box!
>>
>>52189390
>using a shit language
in any decent language this is just
[[[[]]]]
>>
>>52189448
The difference between his statement and yours is that [[[[]]]] is a list in a list in a list in a list, and [][][][] accesses the inner element in [[[[]]]]
>>
>>52189462
So what, Ruby and Lisp? Most languages don't allow implicit returns.
>>
>>52188498
why are you using that fad sjw language
>>
>>52189462
>ambiguous returns
yeah, enjoy trying to follow the flow of that to debug
I'm sure it's a good idea to encourage dozens of return statements

what happens when someone writes i++?
>>
>>52189473
no, ocaml or F#

>>52189496
Everything is an expression
There are no returns
>>
>>52189401
I would assume so, but yeah I think it could be since you can specify the bounding box in longitude and lattitude
>>
https://codeshare.io/XJm89

Let's make programming great again, /dpt/!
>>
I'm a CS student, final year, so I have to make a degree project. I decided to develop a social network for travellers with free time on their hands, sort of. It's gonna be for iOS, Android as well as a desktop web application and I was thinking about writing it in nodejs + ionic + phonegap. What do you think, is that a good idea? Inb4 someone says so, yes, I'm a noob programmer. I just started getting into it, actually and I have a lot to learn (especially JS and NodeJS).
>>
>>52189903
social network is a pretty nebulous way to define a final project
what's everyone else doing?
>>
>>52189940
shit and a half out of pen
>>
>>52189940
i haven't played mc in ages senpai, what's it like nowadays?
>>
>>52189955
exactly the fucking same
>>
>>52189940
build an x86_84 processor with redstone, create enough storage space to fit a C compiler then let /g/ code fizzbuzz on it
>>
File: pP66N2C.webm (2 MB, 720x404) Image search: [Google]
pP66N2C.webm
2 MB, 720x404
Ask your beloved programming literate anything.
>>
>>52189922
Irrelevant what others are doing. I spoke to my project coordinating teacher and he says that it's a good enough idea.

To elaborate, it will have an event system - for instance, if you are traveling to a foreign city and you need someone to show you the sights, you can use.this app to make an event, which can be found in the event list by people from that city.>>52189922
>>
>>52190000
>>52189999
>>52189977
>>52189966
>>52189955
Is anyone else seeing this?
>>
>>52190029
And you fucking ruined it.

Get out.
>>
>>52190036
I was part of it m8
>>
>>52188269
You forgot java

Question for Android devs : android studio on Linux or Windows? I use Windows because it's a pain in the ass to connect smartphones to AS in linux
>>
>>52190080
>You forgot java
lmao
>>
>>52190080
>You forgot java
xd
>>
>>52189940
why are you playing that stupid game
>>
>>52190080
>java
You're a funny guy
>>
>>52190089
>>52190104
>>52190116
meme extreme

the list has
>C#
>- Lua
>- Python
>- Elixir
>- Haskell
>- Bash
>- Clojure
and you think it shouldn't have java lmao kill yourselves
>>
>>52190127
>java topping any of those
pajeet pls
>>
>>52190127
Java isn't a good language, though. The list has good languages.
>>
>>52190136
>>52190140
kill yourselves
>>
File: what the fuck is this.png (414 KB, 403x587) Image search: [Google]
what the fuck is this.png
414 KB, 403x587
>tfw he uses the Python meme
>>
>>52190158
>java is a good language
kill your family
>>
>>52190178
>python is a good language
>haskell is a good language
>C# which is the closest language to java without actually being java is a good language
>>
File: lol.jpg (9 KB, 289x175) Image search: [Google]
lol.jpg
9 KB, 289x175
>>52190174
>he thinks python is a competitive language
>>
>>52190174
What a racist little cunt. Why does she have a problem with a black baby?
>>
File: 1451683583776.gif (2 MB, 400x600) Image search: [Google]
1451683583776.gif
2 MB, 400x600
>>52190174
>he doesn't use Python for quick scripts so he actually achieve things
>>
>>52190198
>almost 2017
>using the snake language
>>
>>52190203
>he uses pre-built libraries which have already solved what he is "working" on so he doesn't actually achieve things
>>
>>52190203
>using python instead of zsh
>>
>>52190196
>>java is shit
>lol u think haskell sharp python is good
>>
File: 1451148605227.png (303 KB, 405x692) Image search: [Google]
1451148605227.png
303 KB, 405x692
>he doesn't like pythons
>he doesn't FizzBuzz of the Christ
>he greentexts memes excessively
>>
>>52190230
>year of the boomerang
>still being a snakefag
>>
File: CONDUCTOR.gif (301 KB, 136x240) Image search: [Google]
CONDUCTOR.gif
301 KB, 136x240
>tfw you find out your project has to be done in python
>>
>>52190225
nigga some reading comprehension pls
>The list has good languages.
>>java topping any of those
>>
File: 1451668270021.jpg (31 KB, 552x370) Image search: [Google]
1451668270021.jpg
31 KB, 552x370
>>52190223
>pre-built libraries have already solved virtual machine implementation
>>
>>52190244
>when you realise that anonymous is more than one person
>>
File: 1451672890437.jpg (3 KB, 83x125) Image search: [Google]
1451672890437.jpg
3 KB, 83x125
>when anti-snakefags have posted nothing of worth in the past god knows how many threads
>>
>>52190245
>he makes shitty ass """"""""virtual machines"""""""" in fucking python
>>
>>52190261
i don't need to reveal what i'm working on because i'm not an attention whore
>>
File: python.jpg (435 KB, 2000x1334) Image search: [Google]
python.jpg
435 KB, 2000x1334
>pls guys python is perfectly fine other languages are shit too python isnt not that bad pls dont bully me k
>>
So, I have to write a program who needs to check very frequently if a series of strings (fixed size: 24) are in a certainly set or not.
Delete operations are very rare.
So, which data structure fits well my needs?
>>
>>52188117
Anyone interested?

>https://www.ocf.berkeley.edu/~wwu/riddles/cs.shtml
>>
File: vm.jpg (79 KB, 949x450) Image search: [Google]
vm.jpg
79 KB, 949x450
>>52190270
>he doesn't make cool ass virtual machines in python
>>
>>52190286
Don't bring politics into it senpai, Libertarianism is an acceptable political view, using Python is not an acceptable programming language to use.
>>
File: 1451614672881.jpg (19 KB, 217x320) Image search: [Google]
1451614672881.jpg
19 KB, 217x320
>>52190285
>he posts on a general where people talk about programming projects
>his excuse for not showing anything is "I'm not a show off"
>>
>>52190293
is the set one big string? then an array

is the set made up of size 24 strings? then a hash map
>>
>>52190316
Technically, everything is one big string.
>>
>>52190295
looks sweet
>>
File: dear god why.png (342 KB, 604x566) Image search: [Google]
dear god why.png
342 KB, 604x566
Daily reminder that Bernie would use Python

Why aren't you using Python? Do you hate the working class?
>>
File: 1451683513443.gif (2 MB, 400x225) Image search: [Google]
1451683513443.gif
2 MB, 400x225
>>52190340
Alexis Ren would use Python too

Do you hate cute grills /dpt/?
>>
>>52190295
>ASCII to Integer
int atoi(char c)
{
return (int)c;
}


that was easy
>>
>>52190325
well it depends on how big your data is and how much you want/can process things in advance
>>
>>52190316
Why hash maps?
I don't need to store key/value types.
>>
>>52190340
/pol/ was trying to use meme magic to kill Bernie because of this.
>>
>>52190295
def atoi(n): return org(n)
>>
File: ;D.png (57 KB, 800x334) Image search: [Google]
;D.png
57 KB, 800x334
Fizzbuzz gogogo
No python fags.
>>
>>52190376
I mean ord
>>
>>52190370
so you don't have to compare the entire string, just the hash (a number) of it
>>
File: 1451551029327.png (402 KB, 1024x768) Image search: [Google]
1451551029327.png
402 KB, 1024x768
>>52190390
>D in charge of competing against FizzBuzz of the Christ
>>
>>52190410
D wins by virtue of performance
>>
>>52190434
D loses to C and asm lmao, your meme language still has nothing on it
>>
>>52190451
>D loses to C and asm
nope
>>
>>52190390
for (int i = 1; i < 101; ++i)
{
char * c = i % 3 == 0 ? i % 5 == 0 ? "fizzbuzz" : "fizz" : i % 5 == 0 ? "buzz" : i;
puts(c);
}
>>
>>52190196
C# > Java, that's why C# is on the list while Java is not.
>>
>>52190295
>tfw can probably only solve a quarter of those quickly
>tfw still paid well

I want to stop and be an good programmer but the money is just too good. :(
>>
>>52190390
let (|Factor|_|) y = function
| x when (x % y = GenericZero) -> Some (x/y)
| _ -> None

let fizzbuzz = function | Factor 15 _ -> "FizzBuzz"
| Factor 3 _ -> "Fizz"
| Factor 5 _ -> "Buzz"
| x -> x.ToString()

[|1..100|] |> Array.iter (fizzbuzz >> System.Console.WriteLine)
>>
>>52190295
>Design a poly-time program to solve SAT.
u wot
>>
>>52190465
>D is better than C/Asm and pure Asm

Man I know your new year parties rocked hard but you need to sleep sometime.
>>
File: 1449250641741.jpg (3 MB, 3634x2569) Image search: [Google]
1449250641741.jpg
3 MB, 3634x2569
Hello, /dpt/.
I want to pick up a programming language for fun, but I'm a complete ignorant on the subject.
I would like to get familiar with C++ before moving on to something (or just focus on C++) else and some guy on /wsr/ just directed me to "C++ for Dummies". Do you have other suggestions for manuals and links for complete C++ beginners?
Before you point it out, yes, I'm aware C++ isn't the perfect beginner's choice, but luckily I have time to spare.
>>
>>52190503
>F#
my nigga
>>
>>52190527
C++ for Dummies is shit.

C++ is actually a really good beginner's choice.

There's online tutorials you can follow, such as learncplusplus.com or something like that.
>>
File: 1451683650441.gif (1 MB, 500x281) Image search: [Google]
1451683650441.gif
1 MB, 500x281
>>52190527
Python
>>
>>52190512
It might be hard for a python programmer to understand

But compiled languages doing the same things statically, on decent compilers tend to get the same performance.
>>
>>52190551
>year of the dog
>being a snakefag
>>
>>52190529
F# is god tier

but they really need to get higher kinded types
also visual f# -> native when
>>
>>52190503
The name "Factor" confuses me here. You aren't factoring anything, you're checking if x is a factor of y.
>>
>>52190527
- for anime, but + for the pic theme so I'll reply:

Book:
http://www.stroustrup.com/4th.html

Also use cppreference, it's great documentation online:
http://en.cppreference.com/w/

Once you start feeling comfortable with C++:
2005. Effective C++, Third Edition: 55 Specific Ways to Improve Your Programs and Designs. ISBN 0-321-33487-6[9]
2014. Effective Modern C++: 42 Specific Ways to Improve Your Use of C++11 and C++14. ISBN 1-491-90399-6
>>
>>52190295
>Multiply by 8 without using multiplication or addition. Now do the same with 7.
def mult8(n): return n << 3
def mult7(n): return mult8(n)-n
>>
>>52190527
look at python
>>
>>52190527
cppreference.com

stick to C++

absolutely don't learn python or haskell
>>
>Despite the well-established need to replace strcat[10] and strcpy[6] with functions that do not allow buffer overflows, no accepted standard has arisen. This is partly due to the mistaken belief by many C programmers that strncat and strncpy have the desired behavior; however, neither function was designed for this (they were intended to manipulate null-padded fixed-size string buffers, a data format less commonly used in modern software), and the behavior and arguments are non-intuitive and often written incorrectly even by expert programmers.[84]

>https://en.wikipedia.org/wiki/C_string_handling#Replacements

Which one of you faggots wrote this? There is literally nothing wrong with strcopy.
>>
File: opti-o.png (661 KB, 568x800) Image search: [Google]
opti-o.png
661 KB, 568x800
Still makin' a PNG steganography program, added a graphical steganography method.

https://github.com/AlphaDelta/PNG-Mask
>>
>>52190527
Start by reading the tutorial, which will get you started.
Then pick up a library with good documentation and try learning that.
You learn a lot by making projects.

When you have a grasp of syntax pick up a book which will teach you good practices and a book on algorithms so you can do more.
>>
>>52190567
It's an active pattern, (I guess the name is technically |Pattern|) the idea is that it matches the pattern of Factor 15 (it has a factor of 15)

It could've been named better desu

One time I did this I just had fizz/buzz/fizzbuzz/other as the patterns so I literally just had
function
| Fizzbuzz ->
| Fizz ->
| Buzz ->
which I thought fitted the problem
>>
How many promotions will I get if I show FizzBuzz of the Christ to my employer?
>>
File: 1371152111400.jpg (45 KB, 320x300) Image search: [Google]
1371152111400.jpg
45 KB, 320x300
>>52190000
>>
File: ew.png (272 KB, 470x624) Image search: [Google]
ew.png
272 KB, 470x624
how do i learn javascript anon senpai?
>>
>>52190354
>(e.g. if its "123A", then return 123)
Your shit's all wrong as expected of dpt.
>>
>>52190646
See here
>>52190029
>>
>>52190649
Do you have a soul? That's the first thing that needs to go.
>>
>>52190395
So, the key would be the hash and the value the string itself?
Wouldn't be better to store only the hashes?
>>
>>52190649
Eloquent JavaScript
JavaScript: The Good Parts

Run it in Chrome/Firefox and use the dev tools console for interactivity.

Eloquent Javascript will run snippets as you read through.
>>
>>52190649
Could you stop?
>>
>>52188133
better learn your place with my D first
>>
File: D.jpg (42 KB, 512x512) Image search: [Google]
D.jpg
42 KB, 512x512
>>52190689
Pic related
>>
>>52190633
That's an active pattern?
Then OCaml also supports active patterns.
>>
>>52190665
souls don't exist, just like infinity and perfect circles.

>>52190675
thanks senpai, i'll give 'em a go.

>>52190681
not until i've learnt javascript
>>
>>52190468
Garbage language
for i in 1...100
{
println((i % 3 == 0 ? (i % 5 == 0 ? "FizzBuzz" : "Fizz") : (i % 5 == 0 ? "Buzz" : String(i))))
}
>>
>>52190720
Perfect circles exist mathematically don't they?
>>
>>52190720
>not until i've learnt javascript
Then why don't you learn? You spent a week spamming the same picture asking the same question, a week that could have been spent learning, you could have been writing basic JS programs by now.
>>
File: barely 9000.gif (2 MB, 500x281) Image search: [Google]
barely 9000.gif
2 MB, 500x281
>>52190707
ok
>>
>>52190565
What do you mean native?
>>
>>52189999
Are pandas dangerous to human ?
>>
>>52190749
Native code.
>>
>>52188269
Wew lad. I thought bash wasn't going to make the list.
>>
This thread is full of programmers so I'll ask here instead of making a new one.

I just graduated with a degree in physics but it contained little programming. Since graduating i've been teaching myself C++ quite intensely, been about 4 months now. Every graduate developer position I've applied for has sent me problems to solved, and i'm by no means an expert but i've been able to solve them quite comfortably, but that's as far as it goes. I never get invited for an interview.

How much programming do I need to know before I can land a job? I'm desperate for a job at this point. I thought my degree would at least get me an interview. Do I just need to keep trying? I'm 28 now, is it too late to compete with all these kids who have been programming since they were 10?
>>
File: well.jpg (70 KB, 753x477) Image search: [Google]
well.jpg
70 KB, 753x477
well?
>>
>>52190762
You can do that today.
>>
>>52190749
https://www.google.co.uk/search?q=f%23+native
>>
>>52190785
If you mean compiling to naive code, mono can do that. If you mean ".NET native". It's being worked on apparently: https://wpdev.uservoice.com/forums/110705-universal-windows-platform/suggestions/9110134-f-support-in-net-native-for-uwp
>>
>>52190565
F# compiles to .NET bytecode, and Mono can compile .NET bytecode to native code.
>>
>>52190768
What positions are you applying for?
>>
>>52188988
>smdh
(checked)
Shake my dickhead?
>>
Who here has tried F# for a bit and really hates it?
>>
>>52190769
Hey look, he's using the goes-to operator.
>>
>>52190769
>C
>Executing a function before it's defined
I wasn't aware this was possible.
>>
>>52190840
not me. Why do you ask?
>>
>>52190729
it exists as an idea, just like souls and unicorns.

you can't show me a perfect circle because it is physically impossible to make a perfect circle, even out of atoms.
>>
>>52190842
It's undefined behavior, but there's actually tons of undefined behavior that works anyway.

You'd be surprised how many functions in stdlib.h can technically be used without actually including stdlib.h.
>>
File: 547568.png (25 KB, 650x450) Image search: [Google]
547568.png
25 KB, 650x450
Which programming language would lend itself best to creating interactive, dynamic stock and candlestick charts for visualizing financial data?
>>
>>52188425
I can't believe what I just read, it's CURRENT_YEAR, you need to being so ignorant.
>>
>>52190860
I want to know how many
>>
>>52190873
python
>>
>>52190829
>What positions are you applying for?
The most basic ones I can find that aren't for any specific area. They generally ask for graduates of computer science or related degrees with experience in things like C, Java, C++ etc. The job descriptions themselves don't go into any real detail about the role or what it involves, so I thought I'd have a better chance applying for those vague ones rather than a specific role with loads of requirements.
>>
>>52190864
>You'd be surprised how many functions in stdlib.h can technically be used without actually including stdlib.h.

Isn't that just the compiler including it for you?
>>
>>52190873
Haskell
>>
>>52190873
F#
Not even memeing

Grab FSharp.Data and maybe that charting library too
>>
>>52190873
Playing stockfighter are you?
>>
>>52190899
Not him, but I thought we were all playing stockfighter

Who here playing microcorruption?
>>
>>52190861
So what's the MAX_INT of real life, anon.

MAX_INT = The number of countable things in the universe

What would that even be?
>>
>>52190887
Kinda. The compiler implicitly links every library on your machine (so you can just say #include <stdio.h> instead of #include </usr/include/stdio.h>). The C compiler will link your code as if you were calling prototypes (as you were technically calling undefined functions). Then when the program is actually compiled, the prototype points back to the implicit inclusion and the whole function gets called.

It's weird that it works, and it throws all kinds of warnings, but it does work.
>>
>>52190861
It's possible to make one, it's just impossible to portray one.
>>
>>52190941
>It's possible to make one
Go on then. How?
>>
>>52190920
Read an article recently that said the lifetime of an electron is 66,000 yottayears or 6.6e28 years.

That's a big fucking number.
>>
What was the best 2015 dpt meme?
>>
>>52190972
C++ being relevant again
>>
>>52190920
>>
>>52190972
The calling everything a meme meme is my favourite meme tbqh.
>>
>>52190994
same here, but it's a meme that permeates all boards
>>
>>52190962
y^2=1-x^2

The equation above is a perfect circle. Given an infinitely precise method of portrayal, the portrayal of this equation would be an infinitely precise perfect circle.
>>
>>52190972
debian guy's suicide by cops
>>
>>52190992
There isn't an infinite number of countable things in the universe, baka.

There has to be a maximum, it can't just go on forever, that defies common sense.
>>
hey /b/
i'm learning c++ and i'm totally done with these stupid ass easy console thingies
what do i do next?
>inb4 java
>>
>>52191004
that's really stretching the definition of "make".
>>
>>52191013
time is infinite.
>>
>>52191025
Python
>>
>>52191025
Qt
>>
>>52191004
>Given an infinitely precise method of portrayal
given an ideal medium you could portray infinity
in reality you cannot
>>
>>52191030
you mean the editor or the gui stuff?
also, im sorry for saying /b/ instead of /g/, im just a faggot from the other board and i also read dpt
>>
>>52191043
Both. The easiest way to make a Qt-based application is to use Qt's IDE.
>>
>>52191054
thanks anon
>>
>>52191013
calculate the square of the number of things in the universe.
>>
>>52191063
>>52191054
also, what kind of learning applications should i make in it? i'm not very creative myself
>>
>>52191064
calculate the square of the number of cum filled socks under my bed
just because it seems infinite...
>>
>>52191076
My first big Qt app was a text editor with a status bar. You could try that.
>>
>>52191028
Time is an abstract concept too, anon.
>>
>>52191090
ty, what is a status bar?
>>
>>52191096
not really, you can see the effects of time on thing and measure it
>>
>>52191117
Like, a little bar on the bottom of your UI that gives the user messages about what's going on.
For example when my text editor saved a file, it would count the number of lines in the file and then write "Saved {the number of lines} lines to {the path of the file}."
>>
>>52191064
>calculate the square of the number of things in the universe
A number that would not be usable in real life so it throws a compile error.
>>
>>52191134
but java has infinnite length integers
>>
>>52191133
nice, thank you
have a good year and stuff
>>
What if you took the number of things in the universe and factorial'd it?
>>
>>52191155
>java
>>
>>52191155
They needed it to weigh your mom.
>>
>>52191173
Compile error.

Can't be used IRL senpai.
>>
>>52191173
Why the fuck would you want to do that?
>>
>>52191134
>A number that would not be usable in real life so it throws a compile error.
of course it would
>>
>>52191224
You have a list of 5 things.

What would you need the number 6 for?
>>
>>52191134
They need it to quantify the size of my dick.
>>
>>52190886
What probably happens:
>oh wow, someone with a physics degree? that's novel!
>let's see if he can solve these problems while we do a background check!
>wow, results look good...
>uh oh, he's 28?
>never worked in the industry?...
>no internships?
>he's not black?
>or a woman?
>gonna have to pass on this one
>>
>>52191221
Why would you factorial any number?

Maybe you want to know what the last digit is.
>>
>>52191271
The last digit would be zero. Any factorial >=5 ends in zero.
>>
File: record_000001 (2).webm (2 MB, 208x224) Image search: [Google]
record_000001 (2).webm
2 MB, 208x224
Rock paper scissors cellular automaton, makes crazy fucking spirals when the three intersect.Also goddamn I have no idea how to record shit, this looks terrible. 3MB limit doesn't help.
>>
>>52191261
the amount of cells a square grid would need to be able to fit all those things on a single row.
>>
File: blagh.png (18 KB, 200x200) Image search: [Google]
blagh.png
18 KB, 200x200
>>52191291
Eventually gets to be like this.
>>
>>52191173
>>
https://msdn.microsoft.com/library/hh297101(v=vs.100).aspx

guy asking about stock earlier
>>
>>52191293
Completely missed my point senpai.
>>
>>52191291
omg, source!
>>
>>52191291
Red escape by the skin of its teeth.
>>
>>52191346
You didn't make it very well then. You asked a question and I answered it.
>>
using System;
using System.Numerics;
public class Gee
{
static void Main(string[] args)
{
BigInteger i = 0;
while (true)
{
try
{
i++;
} catch(Exception ex)
{
Console.WriteLine(ex.Message);
} finally
{
Console.WriteLine(i);
}
}
}
}
>>
>>52191400
The universe might have an infinite amount of things but you have a finite amount of RAM.
>>
>>52191313
>observable
>estimated
>>
>>52191369
Ok, the maximum number of countable things in your room is 100,000.

You can't go outside your room and nothing can get in.

Why would you need to use a number greater than 100,000?

Now do you see what I'm trying to say, anon?
>>
File: 9002440920942.jpg (47 KB, 460x276) Image search: [Google]
9002440920942.jpg
47 KB, 460x276
>>52191418
Poorfag detected
>>
>>52191427
Let's suppose then I want to help understand the nature of my room, by thinking about what my room would be like if it had twice as many things in it.
>>
>>52191400
now all you need is a version of the CLR that runs on ∞-bit architecture.
>>
>>52191418
>The universe might have an infinite amount of things
>God might be real

>>52191457
Then you would be thinking about something that is literally impossible because you can't go outside your room and nothing can get in.
>>
>>52191481
>Then you would be thinking about something that is literally impossible
Most of the theories we've had about how the universe works turned out to be impossible. But we wouldn't have learned they were impossible without thinking about them.
>>
All this talk of infinity reminds me of coastline measuring.
>>
>>52191421
>killjoy
Thread replies: 255
Thread images: 36

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

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.