[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: 377
Thread images: 19

File: 1479106472849.jpg (25KB, 418x475px) Image search: [Google]
1479106472849.jpg
25KB, 418x475px
Previous thread: >>57625015

What are you working on, /g/?
>>
Reminder that C# is objectively the best langugae. If you disagree you are a poor programmer.
>>
File: 1457184653928.jpg (31KB, 638x540px) Image search: [Google]
1457184653928.jpg
31KB, 638x540px
>C#
>C++
>python
>java
>>
>>57631969
>i already explained that it's like a mix between java and python.
What's bad about having the best bits of both? Both Java and python have a lot of good things going for them
>>
pls delet dis thread. I'm at work and might be fired
>>
What is the most versatile and the best programming language and why is it C#?
>>
>>57632019
I like C# as my default language, but you also need to know other languages.

Gotta have C for the low-level stuff, because ASM is destitute-tier.

And you REALLY need to know Javascript in current year, regardless of your job role.

Pad skills with SQL and basic scripting language for common OS shells.
>>
>>57632019
C++ and java
>>
>>57632047
Is it really worth it to learn ASM? Considering it's architecture dependent. And what kind of low-level stuff are you talking about?
>>
>>57632019
> What is the most versatile and the best programming language
For getting shit done, it's usually whichever one has the most libraries applicable to the kind of programs you write.
>>
>>57632047
>And you REALLY need to know Javascript in current year, regardless of your job role.
lolno
>>
Ok faggots
Find the average of two signed ints in C
without using any other kind of data type
> Protip : You can't
>>
>>57632087
>C
Stopped reading there.
>>
>>57632075
> Is it really worth it to learn ASM?
How are you going to debug anything if you can't read asm?

Source-level debugging is a joke once you turn optimisation on (and turning optimisation on is usually when the bugs start to actually show up).
>>
>>57632087
> You can't
Well, duh. If their sum is odd, then their average isn't representable as an integer.
>>
>>57632104
Wait, so can turning on the optimisation change the semantics of my code? I mean, if my code works with optimisations off, will it not always work with optimisations on?
>>
>>57632104
>turning optimisation on is usually when the bugs start to actually show up
you're doing it wrong
>>
>>57632124
-O1 and -O2 are usually okay to run. >>57632104 is just an idiot.

-O3 is a bit shaky, though
>>
>>57632104
>turning optimisation on is usually when the bugs start to actually show up
The fuck are you smoking?

An optimization shouldn't actually effect your program in a way that could cause a "bug", beyond fucking up performance on a particular call.
>>
>>57632087
int avgC(int a, int b) {
if ((a < 0) == (b < 0)) {
return a/2 + b/2 + (a%2 + b%2)/2;
}
return (a+b)/2;
}
okay pajeet
>>
>>57632138
>-O3 is a bit shaky, though
it really isn't, you probably have UB if running at -O3 is "shaky" in the slightest
>>
>>57632087
>>57632087
return (1 + 2) / 2


I did what you asked :^)
>>
>>57632142
gotta admit, that pretty elegant
>>
>>57632259
Na. Requires a lot more assembly
https://godbolt.org/g/52f4UO
>>
>>57631945
>http://blog.edx.org/highest-paying-programming-languages-2016
>http://www.techworm.net/2016/06/15-highest-paying-programming-languages-2016.html
>http://www.business2community.com/tech-gadgets/15-highest-paying-programming-languages-2016-01559832#Vq80tqJf82MFzZQw.97
>http://www.codingdojo.com/blog/9-most-in-demand-programming-languages-of-2016/

Why are you still clinging to your hipster languages and not instead joining the Java master race /g/ ?
>>
>>57632545
If you change
 (a%2 + b%2)/2;
to
(a&b&1)
and set -O3 in the options, it actually becomes reasonable
>>
>>57632624
>>57632630
https://godbolt.org/g/rvjafd
>>
>>57632624
It's no secret that Java is the king of jobs.

However, I'd rather have plenty of jobs to choose from, but also a more enjoyable language, so I learned C#.

No regrets, I get paid a lot and barely work.
>>
>>57632716
>implying there's a difference between Java and C#
>>
>>57632733
They are vary different languages, particularly when you consider their ecosystems and compatible frameworks.
>>
>>57632753
>vary
heh, tough luck on that typo
>>
>>57631968

Greatest language.
>>
I am writing a small C++ terminal application.

What is the most correct way for handling optional parameters?

Iterate through arg array and check for different params with a whole bunch of nested if statements?
>>
>>57632828
Pretty sure there are libraries for handling such stuff. Just google it.
>>
why did people even try to program in assembly
>>
>>57631968
>objectively
cite your sources then
>>
>>57632828
I usually check for number of params and param type first.
>>
>>57632977
Because C did not exist or for some things C is too high level.
>>
>>57632977
A lot of instructions aren't effectively used by the compiler, and the generated code is guaranteed to work on all computers. It is entirely possible to check for the architecture/extensions on the fly and run specific versions of code that run faster.

>>57632828
I would just make a function that iterates over argv to check for a flag

>>57632138
What are some common "mistakes" made by the compiler that would make -O3 and -Ofast not work?
>>
idk brah

https://wiki.gentoo.org/wiki/GCC_optimization#-O

> -O3: the highest level of optimization possible. It enables optimizations that are expensive in terms of compile time and memory usage. Compiling with -O3 is not a guaranteed way to improve performance, and in fact, in many cases, can slow down a system due to larger binaries and increased memory usage. -O3 is also known to break several packages. Using -O3 is not recommended.
> -Ofast: New in GCC 4.7, consists of -O3 plus -ffast-math, -fno-protect-parens, and -fstack-arrays. This option breaks strict standards compliance, and is not recommended for use.
>>
C++ or C#?
>>
>>57633224
>>57633268
forgot to quote
>>
Why don't more people use clang instead of gcc?
>>
>>57633269
both
>>
>>57633331
sorry but there are only 2 options:
C++
C#
>>
>>57633281
I'm talking about specific bits of code in C that would "break several packages". I get that -Ofast is breaking standards, but there is no standards breaking in -O3, right?
>>
>>57633346
C
>>
Im just starting to learn programming in uni, whats the g approved c/c++ IDE for windows? beside VS thats too heavy for my shit laptop
>>
>>57633408
Emacs and Vim both have Windows ports. Personally, I would choose Emacs
>>
>>57633383
C isn't up for choice at this point it's already decided. now we need to determine this:
C++ or C#
>>
>>57630873
That's wrong. i needs to be multiplied by ten then added to the array.
>>
>>57633424
C++
>>
>>57633408
VSCODE
>>
File: le typo noticing lube.jpg (75KB, 720x529px) Image search: [Google]
le typo noticing lube.jpg
75KB, 720x529px
>>57632761
>>
>>57633370
man i don't know shit brah
>>
>>57633408
Code::Blocks
>>
>>57633442
why?
>>
>>57633408
Dev-C++
>>
>>57633424
C#
>>
>>57633492
Because I don't know C# and C# is a meme language.
>>
>>57633418
>>57633452
>IDE
>>
>>57631968
>tfw not all languages that have null have the ?. and ?? operators
>>
>>57633509
C++ is the meme language, can you not keep up?
>>
File: 1478891433834.jpg (149KB, 485x769px) Image search: [Google]
1478891433834.jpg
149KB, 485x769px
wxWidgets or Qt for cross-platform C++ GUI
>>
>>57633469
>>57633494
Theres a lot a whining about devc++ online, ill try out code::blocks ty
>>
>>57633269
guys please
>>
>>57633554
QT for sure.
>>
C is as shit as java
>>
>>57633599
>>57633269
I use C# for pretty much everything, but I've heard that modern C++ is much more user-friendly these days.

I recommend C#.

Easy to learn, easy to use, and you can program pretty much however you want.
>>
>>57633554
QT
>>
>>57633554
Gtk
>>
>>57633554
wxWidgets
>>
>>57633554
QT
>>
>>57631945
Can she program in Qt version 3.14?
>>
>>57633628
C++/CLI .Net can be used almost the same as C# now.
>>
>come to /dpt/
>shitty OP
>people are endlessly debating the strengths of programming languages

Why is dpt so shitty all of a sudden? Kiddies off for Thanksgiving?
>>
>>57631968
best language ,framework and managed code
>>
>>57633628
I'm almost in favor of choosing it now.
Anyone else wanna offer their input?
>>
>>57631976
>python over java
>poo poo over pee pee.
>>
>>57633657
>all of a sudden
It has been shit for many months now.
>>
>>57633653
I've seen C++ and Java catch up on language features, and they look pretty decent nowadays.

In my opinion, the biggest differentiation is ecosystem, frameworks, and tools.

For example, Xamarin is C# territory, and Xamarin is a wonderful way to make mobile apps. It's scarily easy to get something up and running, especially with some Azure hosting.
>>
>>57632047

> LEARN MEMESCRIPT BECAUSE IT'S CURRENT YEAR XDDDDDDDD

kys
>>
>>57633494
>Dev-C++
ok grandpa.
>not using codeblocks or QtCreator.
>>
>>57633657
>why is /dpt/ shit when americans are awake?
>>
>>57633692
this wasn't a rating though
>>
>>57633687
Just jump in and give it a try.

Do some C++, too, if you feel like it, so you can compare.

You can do pretty much anything with either of those languages, but the languages have different syntax and features, and (most importantly) frameworks that they work with.
>>
what font do you kiddos use to code
>>
>>57633762

Comic sans
>>
>>57633762
My own version of Cousine, which is slightly narrower.
>>
>>57633762
Consolas
>>
>>57633762
impact
>>
>>57633762
windings, so people won't be able to read my code for job security
>>
anime in OP
>>
Give me your opinion on this: >>57633290
>>
>>57633745
Is VS the only good IDE for it?
>>
>>57633516
What does an IDE do that Emacs doesn't?

>>57633762
fixed 80pt
>>
Code blocks or clion
>>
>>57633762
Deja vu mono
>>
>>57633830
VS is the proper dev experience, to be certain. Latest version of Roslyn with all associated IntelliSense features ready to go. Integration with Xamarin and other frameworks you might be interested in. And the new version has a much lighter-weight installer that only gives you what you want.

However, many people use VSCode, and Rider is now out, so it could be worth looking into: https://blog.jetbrains.com/dotnet/2016/11/21/jetbrains-rider-public-preview/
>>
>>57633843
>What does an IDE do that Emacs doesn't?
It depends on how many hundreds of addons and third-party tools you're willing to frankenstein onto Emacs.
>>
>>57633843
Be an IDE?
>>
>>57633870
So would you rather have a unitary conglomerate like Code::Blocks than a modular and utilitarian system like Emacs?
>>
>>57633922
I'd prefer not to fuck with and maintain 60+ addons and other tools when Visual Studio has those things ready to go out-of-the-box.
>>
>>57633952
What do you do in Visual Studio that you would need 60+ to do?
>>
>>57633867
By new version you mean the 2017 one?
>Rider
I'll try that as well.
>>
>>57633762
Inconsolata
>>
>>57633973
You can try out the 2017 RC now, but I'd use 2015 until it's actually released.

That being said, C#7 has some really REALLY hot things to work with, like tuples, inline functions, and some pattern matching. There's other super nice things like filterable IntelliSense, too.

To get those, you have to go ahead and use the 2017 RC.

>>57633967
Depends on what I'm working on that day. I'm not going to bother listing 60 things, and I'm sure you'd just dismiss anything I list as useless or something something pajeet.

Things like Paste Special, which allows you to copy JSON and paste a working C# class.

Lots of built-in code-snippets, like being able to type "prop", or "ctor" and hit tab twice to autogenerate properties and constructor, respectively.

"Add Service Reference..." which allows me to paste in a SOAP URI and it autogens a library with classes so I can easy consume that API.

Solution Templates of all kinds, Xamarin integration, drag-and-drop GUI creation, easy dialog-based creation of database connections with things like Entity Framework, GitHub/VSTS integration with work item assignment on version change control, Peek Definition, lots of debugging features, particularly with the Autos window and being able to drag and drop my breakpoint to rerun a block...

Some of these things may be available in something like Emacs without addons, but I could keep going.
>>
>>57633967
Snippets, quick replacing, intellisense, model/image viewer/editor, Nuget, debugging, profiling, 3rd party services, auto code source, server explorer, web dev tools, references, etc..
>>
>>57631945

What IDE should I use for Python 3 on Raspbian?
I'm teaching myself some basic skills, but IDLE really sucks. There are so many IDE choices that I don't know where to begin.

pls no vim or emacs
>>
>>57634118
Pycharm is good from what I heard.
But you should really learn how2vim.
>>
>>57634118
Sublime or Pycharm
>>
>>57634118
if you NEED an IDE for a language, it's a clusterfuck language. if you're new to programming, you shouldnt be using a clusterfuck language or an IDE if you don't need one for the language

switch to haskell and vim
>>
>>57633882
emacs is basically an operating system. it's easily an IDE
>>
>>57634163

I have no intention of becoming a software designer. I'm a mechanical engineer by trade and I'm learning Python for hobby projects.
A little bit of auto-complete and error checking would go a long way.

>>57634137
>>57634144
Thanks for the advice. I'll give those two a look, and I'll (begrudgingly) put more time into vim.
>>
http://scottmeyers.blogspot.com/2016/11/help-me-sort-out-meaning-of-as.html

defend this
>>
>>57634206
Vim has a strict learning curve and setting it up with autocompletion and error catching is a chore. Unless you are going to be a serious dev, you don't need to learn vim. It's just bragging rights in the programming community to be able to use it. But it's not elegant or helpful.
>>
>>57634207
>Not even a C++ expert can figure this out

C++ is a big fat mess.
>>
>>57634230
>. It's just bragging rights in the programming community to be able to use it. But it's not elegant or helpful.
This, using vim is nothing but an epeen growing exercise
>>
>>57634230
Vim is useful for me because I do all of my programming through my VPS, and so cannot use an IDE or text editor like sublime or atom. Also, on a computer with such little ram, a webkit-based text editor like atom actually takes up a lot of memory and slows my machine down. Vim really helps with that, and honestly you don't need to learn 90% of the commands and keystrokes. I haven't added any plugins either, just vanilla. Maybe I'll go install nerdtree though...
>>
>>57634230
Vim is useful if you use command line tools during development, which I do. It's a pain in the ass to switch from an IDE to gdb or perf.
>>
>>57634284
What is a good alternative manual memory management language? Rust or should I just stick to C?
>>
File: 1479147196842.jpg (26KB, 479x479px) Image search: [Google]
1479147196842.jpg
26KB, 479x479px
Why are there many Indians programming in Java?

Is it because they're closer to the Java Sea?
>>
had to do some final renditions on my resume robot. i giure i may as well make software so nwo i' mgoing to start building a bit torrent client.

  def find_email(self, response):
data = response.xpath('//body[@class="posting"]')
for i in data.xpath('.//li/p[@class="anonemail"]/text()'):
email_address.append(i.extract() + '\n')
os.chdir('/home/eedee')
email_file = open('email.txt', 'a')

if len(email_address) >= 1:
for i in email_address:
if i in l:
continue
else:
email_file.write(i)
l.append(i)


why do i feel like python isn't really programming? it just seems unfair taht you can do so much so easy and how readable it is. like it feels really newby just moving data around from files to lists etc.
>>
>>57634230
>t. Atom user
>>
>>57634384
>Manual memory management

Your choices are pretty much C, C++, Rust and Ada.
Personally i found Rust to be pleasant to use.
>>
>>57634402
Python is like psuedocode. I like that it's readable :)
>>
My college has a Java class and a Python class. Which should I do?
>>
>>57634426
are you indian? are you wearing a plaid shirt?
>>
>>57634420
Ada is not an option, because I want to compile it to asm.js/WASM and Rust has that compile target coming soonâ„¢.
>>
>>57634426
you'll hate the guts out of java, trust me.
>>
>>57634426
>a <PROGRAMMING LANGUAGE> class

wut
>>
>>57634456
Well then, you answered your own question.
>>
>>57634460
I've seen "Intro to Programming 101" classes offered in multiple languages.

But you have a point; after that, it was something like "Database Administration Programming" and they'd have a particular language like C# that the class is taught in, with the expectation that you know at least one similar language's basics already.
>>
>>57634477
Yup - C.
>>
>>57634442
Yes. No.
>>
>>57634442
>>57634460
Yeah, they have some computer classes and Java/Python is one of them. It's a small school, and I figured learning something like this would be good anyways.
>>
>>57634491
Then go with Python; you'll fit right in with the rest of the Nagarajan Shanmuganathans
>>
>>57634384
What you're talking about is a systems programming language.


https://en.wikipedia.org/wiki/Category:Systems_programming_languages

you can try Go
>>
>>57634426
Java is useful and fun.
Python is garbage.
>>
Am I retarded or what?
GHCi, version 8.0.1: http://www.haskell.org/ghc/  :? for help
Prelude> sum' :: (Num a) => [a] -> a

<interactive>:1:1: error:
• Variable not in scope: sum' :: [a1] -> a1
• Perhaps you meant ‘sum’ (imported from Prelude)
Prelude>
>>
>>57634534
>Haskell

Yes
>>
>>57634527
>Java
>fun
>>
Hey C++ people

class A
{
public:

static void (A::*whatever)();
};


You have 10 seconds to assign and call
whatever
.

Oh wait, you can't.
>>
>>57634545
It's simple and easy to read. Why don't you like the best language?
>>
>>57634562
>poo
>>
>>57634507
1) I specifically want a language with manual memory management, because compiling and entire garbage collector to asm.js is retarded.
2) Go has openly admitted, that what it meant by "systems PL" is actually "server infrastructure PL".
3) Go does not compile to ams.js.
4) I already use Go extensively and know full well it is a bad choice for most client applications.

>>57634527
Both are unfun garbage.
>>
File: GDC Vault.png (11KB, 590x140px) Image search: [Google]
GDC Vault.png
11KB, 590x140px
Anyone know where I can get access to the GDCVault talks videos without paying? Because I can't support the way they treat speakers but I really want to hear what the speakers say.

Also it's stupid pricey.
>>
>>57634582
But which one is more unfun garbage?
>>
>>57634588
Java, easily.
>>
>>57634556
A::whatever = nullptr;
A::whatever();

checkmate atheists
>>
>>57634556
Are you claiming this compiles?
>>
var wait = new WebDriverWait(driver, TimeSpan.FromSeconds(20));
wait.Until(d => d.Title.StartsWith("DOCUMENTO ELETRÔNICA"
, StringComparison.OrdinalIgnoreCase));

IWebElement nomeComercial = driver.FindElement(By.ClassName("txtTopo"));
IWebElement valorTotal = driver.FindElement(By.ClassName("txtMax"));

nota.Compra_Descricao = nomeComercial.Text.ToString();
nota.Valor_Total = valorTotal.Text.Replace(",",".").ToString();

IWebElement table = driver.FindElement(By.Id("tabResult"));
>>
>>57634596
So Python it is then.
>>
>>57634562
Because checked exceptions make it a pain in the ass and the standard library is overcomplicates everything.
>>
>>57634426
Probably take python.

Java classes will try and brainwash you into thinking the language is decent. Python knows where its bounds are and just teaches you some very basic programming.

Avoid OOP. Sadly both of the languages have a lot of support for OOP.

If you have Go/C/[insert functional language here] as options take that instead.
>>
>>57634582
You sound fun at parties
>>
>>57634632
You need to know OOP is you want a job. Just don't think it's the best thing ever and a solution to every problem like most programmers do.
>>
If an operation involves a single lock can it possibly be involved in a dead lock?
My intuition is no.
>>
>>57634632
I don't. I have some interest in programming, I tried to do SQL before, that went ok. If i can pass Python then I'll probably try and take a different language at a different school. Either C or C++ or something like that
>>
>>57634640
If you find Java "fun" it's probably one of the very few langugaes you know.
>>
>>57634652
no
>>
>>57634640
Why go to parties, when you could be at home refactoring code?
>>
>>57634648
>You need to know OOP is you want a job.
A bad job maybe.

If he's in school now when he gets out he might aswell start his own company if he steers clear of OOP. Because it's easy to compete when everyone else are hacks.
>>
>>57634670
this
>>
recompiling vim from github source because apt-get doesn't have the latest vim for some reason
>>
>>57634662
just do python because it's easier dude, it really doesn't matter what you choose for those kind of classes
>>
What do you guys think about functional programming in coffeescript?
>>
>>57634599
Yes, it compiles just fine.
>>
Can somebody show me code examples of differences between OOP and functional?
>>
>>57634534
Apparently you should put function into a separate file and invoke that from the REPL.
So, now I'm stuck with this;
example.hs
sum' :: (Num a) => [a] -> a
sum' [x:xs] = x + sum xs

ghci
Prelude> :l example
[1 of 1] Compiling Main ( example.hs, interpreted )

example.hs:2:7: error:
• Couldn't match expected type ‘a’ with actual type ‘[a]’
‘a’ is a rigid type variable bound by
the type signature for:
sum' :: forall a. Num a => [a] -> a
at example.hs:1:9
• In the pattern: x : xs
In the pattern: [x : xs]
In an equation for ‘sum'’: sum' [x : xs] = x + sum xs
• Relevant bindings include
sum' :: [a] -> a (bound at example.hs:2:1)
Failed, modules loaded: none.
Prelude>
>>
>>57634714
OOP:
 // TODO: Write bad code.


Functional:
 -- TODO: Write good code.
>>
>>57634701
because debian is fucking stable.

i love debian for this exact reason they make sure users are using software that works and is entirely debugged.

debian is literally gandalf with one wave of his staff all evil cancer is rid of.
>>
>>57634707
>functional programming
Great in some use cases.
>coffeescript
Shit readability, ambiguous syntax and compiles to slow undebuggable spaghetti.

Try functional TypeScript, if you really have to go that route.

>>57634739
>all evil cancer is rid of
Except for systemd.
>>
can you call yourself a programmer if you don't know how to write a compiler?

can you call yourself a programmer if you don't know how to write an OS?
>>
>>57634714
#Functional
def poo(shit):
if shit>100:
raise out_of_memory
if shit==1
return 1
return poo(shit-1) * shit

#OOP
class neuralnetwork:
def __init__(self):
pass
def really_amazing_function_that_does_stuff(self):
return 42

As you'll note: functional programming is shit, and OOP is amazing and lets to do complex stuff like neural networks.

Functional programming is a meme
>>
>>57634707
I used coffeescript for my last job. I really liked it. There's a couple of odd quirks, but it's largely pretty awesome.

It's as good at functional programming as normal javascript i guess
>>
>>57634781
Yes, and yes.
>>
>>57634714
OOP covers several pages to do the same thing functional or imperative programming does.

It's not as simple as code examples. It's abotu how you design software. Functional programming is focused on sharing as little state as possible. You have functions that work more like math functions, they take parameters and produces results, that's the goal anyway. Imperative programming says next to nothing about how to structure a program. OOP is a programming paradigm that's too difficult to explain effectively in the remainder of this comment.
Here's someone who's trying to compare:
https://www.youtube.com/watch?v=V6VP-2aIcSc
I don't think it's all that useful. He has other videos critiquing OOP which are more productive to look at.
>>
>>57634733
But what if i do:
 /* TODO: Write Code. */
>>
So, I'm writing a website which has profiles and stuff and I was wondering: what would be the best way of letting people code their profiles in HTML with added custom CSS, and not just simple BBCode? Any good articles on the subject?
>>
>>57634781
1. No
2. Yes
>>
>>57634781
If you create programs, you are a programmer.
>>
>>57634739
You're right, cause it turns out that newest vim is a POS
>>
>>57634781
>write a compiler?
Useless

>write an OS?
Useless

Do things that matter.
>>
File: anal beads.png (53KB, 741x699px) Image search: [Google]
anal beads.png
53KB, 741x699px
>getting fired FOUR TIMES because you're too good at programming

http://workplace.stackexchange.com/questions/79992/fired-because-your-skills-are-too-far-above-your-coworkers
>>
>>57634732
>>
>>57634842
>Node.js
>>
>>57634842
well i think it's the companies fault for hiring one person to make a piece of code that nobody else even understands.

like the team is dependent on this internal component that is entirely important, and massive, that was entirely written to be maintained by ONE person? that makes no fucking sense.
>>
File: 1426127759876.gif (102KB, 450x450px) Image search: [Google]
1426127759876.gif
102KB, 450x450px
>45 minute technical phone interview with yahoo
Anybody done this before?
>>
>>57634842
>trend methodologies
>Node.js
>>
>>57634847
Thanks senpai. This did the trick:
Prelude> let sum' :: (Num a) => [a] -> a; sum' (x:xs) = x + sum' xs; sum' [] = 0
Prelude> sum' [1,2,3,4,5]
15
Prelude>
>>
>>57634842
It's his own fault 2bh
>>
>>57634978
What version of GHCI are you on?

And you can do multiline input using :{ and :}
:{
multiple = 3
lines = 6
:}
>>
>>57634969
Why is it 45 minutes?
do they ask for a fizzbuzz?
>>
>>57634969
Good luck getting hired if you're not a woman
>>
>>57635010
Besides the part that says he was hired to write an internal component that none of the other team understood - which is why he was hired to do it?

the people he worked with only looked at it once for like five minutes and said 'we don't know how this works or to maintain it'?
>>
>>57634052
I'm not trying to say you don't need 60+, I'm just curious about what you would need them to do.

Yeah, I would imagine C# is very non-standard and Windows native, and would be pretty hard to use in Emacs. I use C++ in Linux without a graphical interface, and I haven't ran into any problems.

The only things you listed that I used in Emacs are Git integration (magit) and auto completion (can't remember the name). The flexibility of Emacs Lisp makes the others possible, but those seem niche enough to be made personally.

>>57634102
>snippets
There is one right there
>quick replacing
replace-string (maybe internal regex too)
>Intellisense
You have another
>model/image viewer/editor
Emacs might be able to do this, but this seems to fall outside of what an IDE does (assuming you are using a standard language like C/C++, Java, Python, etc.)
>debugging
If you are using a compiling language, you can use Valgrind or GDB to check for errors in a terminal window (inside of Emacs), and search for the errors and fix them in another.
>Profiling
I never profile inside of the IDE itself, since I use Valgrind and kcachegrind
>auto code source
If you are looking for definitions, then use rgrep
>server explorer
There is built-in SSH support (SCP), and you can use another terminal window to open whatever you need to use
>web dev tools
Emacs 25 has a builtin web explorer. I will admit, you might want to get one or two addons for this
>references
rgrep

That's about four
>>
I have a degree from ITT Tech. I hate all of you and everyone else. I don't even know why I come here.
>>
>>57634969
>Anybody done this before?
Not with Yahoo, but 45 minutes seems short for the technical round.

My last was nearly two hours for a DBA/BI role.
>>
>>57635099
>Yeah, I would imagine C# is very non-standard and Windows native, and would be pretty hard to use in Emacs.
It's not

https://github.com/OmniSharp/omnisharp-emacs
>>
>>57635109
love you bae
>>
>>57635032
well uhh... first you would assign a variable to 0. wait no 1. you assign it to 1 and then... uhh... you need to loop until you hit 100. Wait is that including 100 or below 100? a-anyway. You need to do an if statement to check if it's a multiple of 3... wait 15 would be faster. So, wait i didn't name my variable... let's name it i. so check if i mod 15 equals to zero, print fizzbuzz. Then i mod 3 equals to zero. Print buzz. wait... are you supposed to print "fizz" for multiple of 3? wait. where was I again? I'll just start over.

It probably would have taken 35 minutes on its own
>>
>>57635120
Maybe not the core language, but a lot of the extensions and addons might hinder it (especially whatever the GUI is)
>>
I'm working on something really cool, but really simple, so I don't want to tell you guys what it is because then someone will steal it...
>>
>>57635132
you just send them binary representation of your fizbuzz.c by tapping 0 and 1 on your phone
that would be faster
>>
>>57635134
There's no standard cross platform UI for C#. If you're using linux you can use GDK+, which is cross platform.
>>
I'm an HR scrub who handles the initial screening step of the hiring process at a small software company.
I only give applicants one question, and it's over the phone, and I give them 20 minutes to email me the response.

>write a function that determines if a number is even or odd

Most of them can't fucking do it.
I even had one try to use bitwise but clearly didn't understand what bitwise & is for, I asked them to explain it and they just hung up after ummmmmmmmming me for a whole minute
>>
>>57635148
is it a 3d fizzbuzz?
>>
>>57635109
Why?
>>
>>57635160
i forgot to add, the bitwise answer was taken from stack overflow, they left the comments in and every thing
>>
>>57635160
I don't get this

I always hear about how shit like this and fizzbuzz screens out tons of applicants

Why the fuck would you apply for a programming job if you literally can't code at all?
>>
>>57635160
in Haskell this is just

import Prelude (odd, even)
>>
>>57635099
>Yeah, I would imagine C# is very non-standard and Windows native, and would be pretty hard to use in Emacs.
Not at all.

Nearly all of the frameworks and the compiler itself is completely open-sourced, and works just fine with whatever editor you want to us.

Also, I love how you only responded to the low hanging fruit of VS features, along with "I just use another program to do that" responses which only serves to prove the point that VS has more built-in, and less 3rd-party pieces and addons to maintain.

Overall, it's extremely clear that you're trying to justify your way of doing things.

I'm not saying an IDE, or a series of disjointed text editors + addons, is the best solution. The point is, I'd rather have one monolithic application take care of virtually all of my needs as a developer, rather than having to fuck with many addons and other programs (e.g. Valgrind, GDB, kcachegrind, unix shell commands)
>>
>>57635177
fake it till you make
or just fake it till you get fired, but hope to get some cash in the process
>>
>>57635160
n % 2 == 0

Can I have a job?
>>
>>57635160
>I'm an HR scrub who handles the initial screening step of the hiring process at a small software company.
>I only give applicants one question, and it's over the phone, and I give them 20 minutes to email me the response.
>>write a function that determines if a number is even or odd
>Most of them can't fucking do it.
>I even had one try to use bitwise but clearly didn't understand what bitwise & is for, I asked them to explain it and they just hung up after ummmmmmmmming me for a whole minute


you work in a shitty company.
>>
>>57635160
def isOdd(a):
return a&1
def isEven(a):
return !(a&1)

can i pls job now?
>>
>>57635193
>function
>>
>>57635160
#import even
#import odd
>>
>>57635160
bool IsEven(int n){return 0 == n%2;}
bool IsOdd(int n){return !IsEven(n);}

Did i pass?
>>
>>57635177
they didn't expect to be tested
they thought they could get away with it
they're probably day laborers who thought they could jump to a cushy office job without any additional training and thought they could bullshit their way through the entire hiring process

it's not much better for CS majors, most of them can't code worth a damn and yet every coding job at large companies insists that you NEED A CS degree.
>>
>>57635209
\n -> n % 2 == 0
>>
>>57635160
Why do I always hear about these but every job interview seems stressfull.
>>
Good source to learn swift from?
>>
>>57635233
Swift Best Blog: https://iosdevcenters.blogspot.com/

Swift Algorithms: http://shop.waynewbishop.com/

Learn Swift: https://www.codementor.io/swift

Swift Tutorial : https://www.codementor.io/swift/tutorial
>>
>>57635233
hell
>>
>>57635099
>but those seem niche enough to be made personally
Yeah, lemme just write my own damn SOAP service consuming addon and an integration for VSTS.

That's a real fuckin' great use of my time.
>>
>>57635148
It's a simple tool for people to use to make their lives .1% easier. It's a webapp, desu (I know, >>>/wdg/, but It's 99% backend) and is only a small amount less complex than an echo server
>>
>>57635160
do i win?

int is_even(int n)
{
char buf[100];
sprintf(buf, "%d", n);
int len = strlen(buf);
if (buf[len - 1] == '0' || buf[len - 1] == '2' ||
buf[len - 1] == '4' ||
buf[len - 1] == '6' ||
buf[len - 1] == '8')
return 1;
else
return 0;
}
>>
>>57635160
string function(n){
if(n == 0){
return "even";
}else if(n == 1){
return "odd";
}else if(n == 2){
return "even";
}else if(n == 3){
return "odd";
}else if(n == 4){
return "even";
}else if(n == 5){
return "odd";
}else if(n == 6){
return "even";
}else if(n == 7){
return "odd";
}else if(n == 8){
return "even";
}else if(n == 9){
return "odd";
}else if(n == 10){
return "even";
}else if...
}
}
>>
>>57635258
>

in Haskell this is just

even = flip elem [0,2..8] . read . pure . last . show
>>
>>57635278
>0
>even

0 is not a number
>>
>>57635278
Will not compile.
>>
>>57635256
small amount more* complex
>>
>>57635185
What frameworks are you talking about here?
>Also, I love how you only responded to the low hanging fruit of VS features, along with "I just use another program to do that" responses which only serves to prove the point that VS has more built-in, and less 3rd-party pieces and addons to maintain.
yes
>Overall, it's extremely clear that you're trying to justify your way of doing things.
If I didn't think it was the best, I wouldn't still be doing it
>I'm not saying an IDE, or a series of disjointed text editors + addons, is the best solution. The point is, I'd rather have one monolithic application take care of virtually all of my needs as a developer, rather than having to fuck with many addons and other programs (e.g. Valgrind, GDB, kcachegrind, unix shell commands)
That's the real disagreement here. I'm not saying that Emacs itself can do everything Visual Studio can, but instead that it doesn't have to, and you can rely on external applications to do the same job.
>>
>>57635298
The hell it isn't.
>>
File: clion.jpg (6KB, 225x225px) Image search: [Google]
clion.jpg
6KB, 225x225px
>>57633408
>Unironically not using CLion.
Lol. Okay.
>>
>>57635252
So are you creating an actual class type from the SOAP, or are you just populating a class from a SOAP datagram? I don't really understand what you are saying
>>
>>57635318
0.000000000000000000001 is a number
0 is not
>>
>>57635278
>
string function(n){
if(n == 0){
return "even";
}else if(n == 1){
return "odd";
}else if(n == 2){
return "even";
}else if(n == 3){
return "odd";
}else if(n == 4){
return "even";
}else if(n == 5){
return "odd";
}else if(n == 6){
return "even";
}else if(n == 7){
return "odd";
}else if(n == 8){
return "even";
}else if(n == 9){
return "odd";
}
return "error: the number is too large";
}

fixed
>>
Any updates on the MS making C# open source situation?

Is mono a good option?
>>
>>57635342
both are numbers
>>
>>57635342
Fuck off.
>>
>>57635355
.NET Core is already out and completely open source.

Mono is okay.
>>
>>57635357
>>57635359
t. brainlets
>>
>>57635160

BEAT THIS

python code
print ('even' if (-1)**n==1 else 'odd')
>>
>>57635306
>>57635185
If you are talking about the second post, I replied to everything you listed. I'm not disagreeing with the first guy at all, I was just interested in what his addons would be that Emacs might not be able to do.
>>
>>57635347
> n < INT_MAX
>>error: the number is too large
> n < 0
>>error: the number is too large
>>
>>57634556
Seriously though, this is my homework and I can't figure it out.
>>
>>57635399
It's a feature. Not a bug.
>>
>>57635383
*almost everything
Fine, I forgot Nuget, but what kinds of 3rd party services are you talking about?
>>
File: bronobo.jpg (575KB, 998x661px) Image search: [Google]
bronobo.jpg
575KB, 998x661px
>0 is not a number
>>
>>57635381
def isEven(a):
return [0 for _ in range(a)].count()%2 == 0

How does everyone like my one liner????
>>
File: 10722796-large.jpg (19KB, 380x244px) Image search: [Google]
10722796-large.jpg
19KB, 380x244px
>>57635424
>0 is a number
prove it.
>>
>>57635306
Xamarin, along with Xamarin.Forms and its platform-specific implementations is all open source and free now.

.NET Core is a lightweight, portable .NET implementation, open source.

Mono is a 3rd-party (although maintained by many CURRENT Microsoft developers) implementation of the .NET Framework.

The compiler for C# and Visual Basic, Roslyn, is open-source and cross-platform.

Microsoft has plans to unify .NET with .NET Standard, which, from my understanding, will be open-sourced as well.

These are all MIT licensed, which means anyone can take that code and create their own implementations of the languages and frameworks as they see fit.
>>
>>57635258
int is_even(int n)
{
//printf("Num: %d", n);
if (n % 2 == 1)
{
return 0;
}
else
{
return 1;
}
}
>>
>>57635429
>one liner
>its in fact 2 lines
>using a loop

0.2/10
>>
>>57635160

assuming unsigned 32 bit:
if(n & 0x80000000){
n = ~n + 1;
}

return !(n & 1);

>>
>>57635435
0 is the integer between -1 and 1, it is the sum of 1 and -1

integers are numbers
>>
>>57635018
8.0.1
>>
>>57635469
define integer
>>
File: gif.latex.gif (619B, 90x28px) Image search: [Google]
gif.latex.gif
619B, 90x28px
>>57635435
>>
>>57635478
who are you sokrates?
>>
>>57635478
go away
>>
>>57635478
define define
>>
Just starting CS and we were asked to write an even or odd program. How did I do?
int isOdd(long long input){
int a;
for(a=6;a;a--){
input*=input;
}
return !!input;
}
>>
>>57635177
It's not your fault the company hired poorly is the thing. Having a software developer job is better than being unemployed for most. Even if you do literally nothing and sweat over your non-existent job security.
>>
>>57635469
there are infinite numbers between -1 and 1
>>57635485
not an argument
>>
>>57635505

lol
>>
>>57635510
>there are infinite numbers between -1 and 1
1. all of those are numbers, as is 0

2. i meant there is only one whole number between 1 and -1, that is 0

retard
>>
File: 1460097005284.png (46KB, 881x685px) Image search: [Google]
1460097005284.png
46KB, 881x685px
>>57635487
>>57635490
>>57635497
>/g/ can't even define "integer"
>>
>>57635454
Why bother with the if?
int is_even(int n) {
return n % 2 == 0
}
>>
>>57635505
Did they not introduce the modulus operator?
long long isOdd(long long input){
return input%2ll; //2ll means a long long literal 2
}
>>
>>57635510
>there are infinite numbers between -1 and 1
implying what exactly?
>>
>>57635537
> == 0
Don't call us we'll call you
>>
>>57635245
Thank you, appreciate it
>>
>>57635553
;
>>
>>57635537
Doesn't compile.
>>
>>57635469
>integers
>>57635510
>numbers

not the same thing
>>
>>57635505
Inefficient.

#include <type_traits>

template <typename T, typename = typename std::enable_if<std::is_integral<T>::value, T>::type>
inline bool isOdd(T input) { return (input & 1) != 0; }
>>
>>57635574
is 0 a whole number

are whole numbers numbers
>>
>>57635572
>>57635566
>>
>>57635566
bool IsEven(int n)
{
return n % 2 == 0;
};
>>
>>57635545
Did they not introduce templates?
template <typename T>
T isOdd(T input)
{
return input % 2
}
>>
>>57635599
The guy was doing C.

No 'bool' in C.
>>
static string EvenOdd(int n) { return n % 2 == 0 ? "Even" : "odd"; }
>>
>>57635599
> == 0

>>57635586
bloat
>>
>>57635607
Yeah, and I'm NOT doing C, nerd.
>>
>>57634357
>VPS
Well there's the problem.

>on a computer with such little ram
See that doesn't exactly matter to most developers. It's 2016.

I am not against Vim or emacs. I just think it's an elective thing. And I was replying to an anon who made it clear he wasn't wanting to be a "supr srs" coder or even use vim or emacs.

I do love the keystrokes though. I, however, hate setting up config files for them.
>>
>>57635607
_Bool

-std=c11
>>
>>57635306
>and you can rely on external applications to do the same job
Isn't his point that you DON'T have to rely on a tidalwave of external applications?
>>
>>57635612
>her ints implicitly cast to a smaller datatype

No thanks, fagtron. Sounds like a shit language you're using.
>>
>>57635470
You can just do
:{
sum [] = 0
sum (x:xs) = x + sum xs
:}
>>
>>57635620
> bloat
>>
>>57635626
>implying i program

pleb
>>
>>57635616
I use a VPS because that way I can program from any computer with an ssh client installed. I personally own a chromebook because it's light and inexpensive and I can pull it out and start programming right away since it boots so quickly with a 16gb ssd. Also, 99% of my projects are web projects nowadays, so I host everything there. I used to use desktop linux with Ubuntu until I realized 99% of my programming is done over ssh anyways, so why do I need all this power?

Bonus: I run my own cloud
>>
is_odd = lambda x: x%2 
>>
>>57635633
>programming to modern standards and not ancient 1989 standards
>bloat

rms pls go
>>
stdbool is a fucking joke

enum { false = 0, true = 1 } bool;
>>
>>57635612
>not '== 0'
>compiler warning: type coercion int to bool
>>
what are we going to program in the bed?
>>
>>57635656
typedef enum { false, true } bool;
>>
>>57635612
Returns either true or false. Am I not seeing something here?
>>
>>57635648
best one itt
>>
>>57635656
printf("%d", ~false);
>>
>>57635696
thanks

it's elegant
>>
>>57631945
Why are /g/angsters so triggered by javascript?

JavaScript is obviously a very prevalent web language so there is no way that anyone could possibly suggest that it isn't used anymore.

Why does this trigger the /g/angbangers?
>>
>>57635160
lol anybody in my high school intro to programming class could have done that within two weeks of the class
>>
im new to /g/, so i wanted to ask how i can change the text format to editor oriented style?
>>
#define is_even(x)    if (x%2=int) \
return true;
else if(1) return 0
>>
http://basen.oru.se/kurser/c/2014-2015-p12-distans/tentor/thomas/tenta-2015-01-17/tenta-2015-01-17.html

>Uppgift 3 (5 p)
>>
>>57635643
>>57619783
>>
>>57635753
im only triggered when it gets called a programming language

JAVASCRIPT IS NOT PROGRAMMING
>>
>>57635773
do { ; } while(0)
>>
>>57632142
Use the code tag, please.
int avgC(int a, int b){
if((a < 0) == b <0)){
return a/2+b/2+(a%2+b%2)/2;
}
return (a+b)/2;
}
>>
>>57635753
Because it's a horrible horrible mess. You thought C++ was bad? C++ is neatness personified, compared to JS.
>>
>>57635795
thx for the indirect answer
>>57635769
>>
>>57635797
Well, I can agree that it is a mess but the overwhelming majority of the internet uses it.
>>
>>57635763
But can they still do it two months after finishing the class?
>>
>>57635797
actually C++ is about js levels but propped up by C
>>
>>57635797
how does that even happen
>>
>>57635805
I didn't see your comment but just to reitterate the point for possible others

[ c o d e ]

[ / c o d e ]

w/o spaces
>>
>>57635787
Fuck off.
>>
>>57635825
you are NOT a programmer

>>>/wdg/
>>
>>57635787
Show us your github
>>
int is_even(int n)
{
return !(n % 2);
}
>>
    Function evenodd(n As Integer)
Dim result As String = ""
If n Mod 2 = 0 Then
result = "even"
Return result
Else
result = "odd"
Return result
End If
End Function
>>
>>57635816
Mostly, i think, because JS is dynamically typed..
>>
>>57635824
thx i just checked the 4chan faq after i heard the keyword tag and "code"
>>
>>57635852
>string result
>>
>>57635850
>us
YOU are not programmerS
>>
>>57635797
Don't really see how. Javascript takes care of all the stupid shit you have to deal with in C++ and lower level languages so you can get down to the actual design aspect instead of dicking around with reinventing the wheel.

>lambdas
>event-driven programming
>classes
>inline objects
>object members addressable by strings
>untyped, weakly typed, dynamically typed
>Markup language is becoming the universal standard, even in non-js languages

Javascript is the pretty much the most flexible language ever
>>
>>57635851
>one fucking space for indentation

"no"
>>
>>57635846
C++ is my language. I don't like JavaScript.

JavaScript is still a programing language. So please fuck off, would you kindly.
>>
>>57635873
YOU don't know what programming is.
>>
in c++ is there no way to dynamically make an array of objects the require a parameter?
should i just use a vector for everything? I keep running into difficulties with plain arrays
>>
int returnsOne() {
return 1;
}

int returnsZero() {
return 0;
}

int isEven(int n) {
int *(*fptr[2])();
fptr[0] = &returnsOne;
fptr[1] = &returnsZero;
return fptr[n&1]();
}
>>
>>57635877
>Javascript is the pretty much the most flexible language ever
That's what makes it so messy.
>>
>>57635879
what do you mean with indentation?
>>
>>57635912

NEW THREAD
>>57635912

NEW THREAD
>>57635912

NEW THREAD
>>
MEME TIER:
int a()
{
//TODO
}


Decent human being tier:
int b(){
// TODO
}
>>
>>57635887
Foo* p = new Foo[N](x);


Or better:
 std::unique_ptr<Foo> p(new Foo[N](x));
>>
>>57635927
>simple.wikipedia.org
>>
with languages like C (excluding C# because windows only) you can do the same things you can do in javascript (except it not being a programming language) with just a little more effort, but when it comes to more abstract things like socket programming you have many advantages with low level languages (speed, simplicity, actual understanding of the code...)
>>
>>57635960
>sockets
>lower level languages
>more abstract
wut
>>
>>57635948
>Assuming use-case by using unique_ptr encapsulation
wew lad
>>
>>57635960
excluding C# because windows only
why is that a valid reason to exclude it from your list? Maybe exclude it because it's more similar to Java than C or C++ and high-level AF? Lol, also, a lot of socket programming is done in Java or even Python. Have you read a networking or operating systems textbook?
>>
>>57635903
Make an array of functions.

JS:

var a = [];
a.push(function(){
return 1;
});

a.push(function(){
return 2;
});

a.push(function(){
return 3;
});



C:


typedef void (*function_ptr)(void);

void foo();
void bar();
void foobar();

int main(void){
function_ptr a[2];
a[0] = foo;
a[1] = bar;
a[2] = foobar; //oops, buffer overflow!

return 0;
}

//have to give them names unless you use non-standard inline GNU ugly code. No anonymous functions in C!
void foo(){
return 1;
}

void bar(){
return 2;
}

void foobar(){
return 3;
}

C is gross
>>
>>57635450
Oh, I thought a lot of those were still closed. That's cool
>>
>>57635603
Enjoy shitty compile times and useless error messages.

Not in this trivial case obviously but in general.
Also who says this is necessarily c++?
>>
>>57636013
typedef void (*function_ptr)(void);

void foo();
void bar();
void foobar();

int main(void){
function_ptr a[2];
a[0] = foo;
a[1] = bar;
a[2] = foobar; //oops, buffer overflow!

return 0;
}

//have to give them names unless you use non-standard inline GNU ugly code. No anonymous functions in C!
void foo(){
return 1;
}

void bar(){
return 2;
}

void foobar(){
return 3;
}


forgot code tags
>>
>>57636020
It's actually amazing to see the turnaround from the Ballmer days.

It's worth noting that Xamarin was a private company, it was closed-source, and cost $1000 for a single dev license on a single platform.

Microsoft bought them and made it free, open-source, with one of the most permissive licenses.

Over the last two years, Microsoft's DevDiv has completely embraced open-source and free software, because they know that their real money is coming from Azure and corporate licensing.

Microsoft is a platinum Linux Foundation member now, too.
>>
>>57635586
>Inefficient.
Why do you have a function that only takes a single number then? Write for the general case where you have multiple. Make the input an array type and add a size.
>>
>>57635852
Why would you write in VB.NET?
>>
>>57634206

Good on you!

> python3
> clusterfuck language
lol this guy --> >>57634163 is a fucking idiot.
Having an IDE isn't a requirement, but it's always nice to be able to run or compile at the push of a button (interpreted language or not).

Calling python a 'clusterfuck'.. it's probably the ideal choice for a first language these days. Especially for engineers.
>>
>>57635623
An IDE doesn't have to do literally everything you need to be done, it just needs to be extensible enough to do what you need.
>>
>>57636056
That's really nice to hear.
>>
>>57636121
>doesn't have to
>needs

I bet you're one of those gun-grabbers.

If it CAN do virtually everything I need it to, with no further configuration or dependencies, while also being extensible if necessary, that's the best scenario for me.

Visual Studio fits the bill here.
>>
>>57636033
>//oops, buffer overflow!

User error, though.
>>
>>57632777
>>
>>57636318
kek has spoken
>>
File: yGjaPrL.png (70KB, 1857x733px) Image search: [Google]
yGjaPrL.png
70KB, 1857x733px
>>57636318
>>57636331

SEVEN IS THE MOST PowERFUL NUMBER
>>
>>57636318
>>57636331
>>57636365

>>57635999
>>
>>57636390

C# is unstoppable. Its bloodlust is insatiable. Praise kek.
>>
>>57636425
Go back to /pol/
>>
>>57631945
whats the original source for this image?
>>
>>57636508
Pretty sure it's blacked or some sort of cuck porn.
>>
File: triangfilter.png (292KB, 1216x1192px) Image search: [Google]
triangfilter.png
292KB, 1216x1192px
>>57636501

Nah, we're just having a bit of fun, lad. I have nothing to work on besides my school projects, at the moment. What should I do?
>>
>>57636501
Trump won. All boards are /pol/ now.
>>
>>57636508
http://pastebin.com/smhezNev
>>
>>57636555
Do you ever get tired of posting trips? How much is enough?
>>
File: wrong.png (221KB, 1200x630px) Image search: [Google]
wrong.png
221KB, 1200x630px
>>57636596

The god emperor is working through me.
>>
>>57636627
What does trump love OOP?
Inheritance.
>>
>>57636586
kek
>>
What are some good resources to learn about Java streams? I feel like I'm fairly confident in the basics, but I just got to I/O and have little idea what's going on or how to properly work it. Like to write something to a file you need to do declare like two different objects, and then close the stream.
How does it work?
>>
>>57636994

Java "streams" are collection streams for their functional shit. Look at the implementations of their Reader and Writer interfaces for what you actually want.
>>
>>57637257
There are so many classes for input/output, it just confuses me.
PrintWriter, FileWriter, FileInputStream, BufferedReader, FileReader, FileOutputStream- the tutorials and explanations I'm reading all use different methods to read and write from and to files.
Thread posts: 377
Thread images: 19


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