[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: 345
Thread images: 31

File: hidamari_dpt_waifu2x_traps.png (2MB, 1618x1308px) Image search: [Google]
hidamari_dpt_waifu2x_traps.png
2MB, 1618x1308px
Old thread: >>60859857

What are you working on, /g/?
>>
Oh my god why doesn't gtk has things like Qtcreator
>>
what language best solves the everything is fucked and we're all gonna die problem
>>
>>60864470
have*
>>
>>60864470
It has glade.
>>
>>60864475
Hooking up signals is a pain in the ass
>>
>>60864449
Good pic.
>>
>tfw when you're trying to program a directx12 decompiler and get a BSoD followed by fatal HDD disk error
>can't recover files with linux live USB or any file recovery tools
>>
>>60864514
>fatal hard disk drive disk error
>>
Write a function that counts the number of unique elements in an array
>>
>>60864514
>>60864516
I'm in.
>>
File: dlang_chan.jpg (70KB, 349x368px) Image search: [Google]
dlang_chan.jpg
70KB, 349x368px
Threadly reminder that dlang-chan has RAII; she's quite fast in execution and compilation; she's becoming fully memory-safe; and she's super duper cute! Say something nice about her, /dpt/!

>Tour
http://tour.dlang.org/
>Books
https://wiki.dlang.org/Books
>GC
https://dlang.org/blog/2017/04/28/automem-hands-free-raii-for-d/
https://wiki.dlang.org/Libraries_and_Frameworks#Alternative_standard_libraries_.2F_runtimes
>>
>>60864532
ban yourself
>>
>>60864544
Don't hate, anon; just masturbate.
>>
ryzen or i7-7700k @ 5 GHz for programming?
>>
>>60864637
Get one of each and then shove them both up your ass and use an Apple ][ for programming
>>
>>60864637
>>
I took up Python 3 awhile ago and C++ about two weeks ago. So far, for C++, I've been reading
>Programming: Principles and Practice Using C++, 2nd Edition
>C++ All-in-One for Dummies, 3rd Edition
and for Python 3, I've been reading
>Learning Python, 5th Edition
>Starting Out with Python
Are there any other decent books or video tutorials that get more into the pragmatic stuff? I feel like I'm in that awkward middle stage between beginner and intermediate where no books, practice exercises, or tutorials cover.
>>
>>60864648
>Python
>C++
There is no hope left for you, your brain is permanently damaged
>>
https://willrobotstakemyjob.com/15-1131-computer-programmers

start worrying
>>
>>60864680
Go back to your /b/ tier shitpost thread
>>
>>60864680
Someone has to program the automation bots, anon.
>>
>>60864637
It makes no fucking difference. You can program on a toaster.
>>
>>60864680
Wagecucks BTFO
>>
>>60864637
Do you like housefires?
>>
>>60864711
>linux cuck doesn't use an IDE
>>
>>60864637
A low end machine with quality components and a keyboard you like. It's going to be you programming machine for the next decade.
>>
>>60864730
What?
>>
>>60864730
So this is the power of a wintoddler
>>
>>60864731
>low-end
>quality
lmao
>>
>>60864756
An Sempron on an Asus motherboard with on board graphics, a 500gb WD hdd and 4 GB of SamDisk Ram is low end and high quality.
>>
>>60864526
a=['a','b','c','c','d']
history=[]
unique=0
for each in a:
if each not in history:
unique+=1
history.append(each)

>>> unique
4

>>
>>60864730
>winfag needs an IDE to be able to work
>>
>>60864843
To be fair, some languages are really fucking annoying to program outside an IDE, such as Java.
>>
>>60864637
>ryzen or i7-7700k @ 5 GHz for programming?
no.
get a shitty laptop and learn to code right.
>>
>>60864849
I regularly program java in nano, but I gotta keep the java docs open in the background tho, i know what you mean
>>
>>60864849
you can use an IDE for most languages. linux C fags who aren't complete brainlets still use vim/emacs with a ton of plugins
>>
What is an ``IDE"?
>>
>>60864875
integrated development environment
a text editor with a compile button
>>
I'm starting to get bored with this corporate webdev / application bullshit. What is some interesting stuff I can get my autism on with like Koitlin, linux system programming, assembly etc? I already know those and am looking for something similarly complex and fun
>>
File: varg.jpg (6KB, 225x225px) Image search: [Google]
varg.jpg
6KB, 225x225px
>>60864526
(length (remove-duplicates #(1 2 3 2)))
>>
>>60864890
what language is that?
>>
>>60864526
import std.algorithm: count, sort, uniq;
auto result = given_array.sort().uniq.count.writeln;
>>
>>60864526
array=['1','2','2','3','4','5','5']

def count_unique(array):
return len(list(set(array)))

>>> count_unique(array)
5

>>
write a function that determines if two integers are coprime
>>
>>60864832
>>60864890
I'm assuming the answer is the number of elements without duplicates. So 3 for the Pythonista and 2 for the lithpfag.
>>
>>60864526

C#
static int uniqueElements<T>(T[] arr) {
return (new HashSet<T>(arr)).Count;
}
>>
>>60864970
>I'm assuming the answer is the number of elements without duplicates
Im pretty sure it means the number of unique elements ie total number of different elements
>>
>>60864986
Could be. Weigh in on this, >>60864526
>>
>>60864967
(defun coprime-p (a b)
(declare (integer a b))
(= (gcd a b) 1))
>>
>>60864967

def is_coprime(x,y):
while y:
x, y = y, x%y
return x==1
a = 158
b = 228
c = 777

>>>is_coprime(a,b)
False
>>>is_coprime(a,c)
True
>>
>>60864994
ugh. I see what you mean now that you point it out

Thats vaguely worded. could go either way.
>>
There is literally no need for garbage collectors anymore.
>>
>>60865076
Please elaborate.
>>
wow literally one bot and no person besides me viewed my question

https://stackoverflow.com/questions/44491684/linker-sees-wrong-version-of-pthread
>>
File: c++.png (40KB, 1620x774px) Image search: [Google]
c++.png
40KB, 1620x774px
>>60865076
dont tell that to c fags
>>
>>60865076
Your existence is proof to the contrary.
>>
>>60865085
ok i deleted it

i tried building from the command line and now it works

it works in eclipse too suddenly

JESUS CHRIST
>>
>>60864886
>a text editor with a compile button
kek its sad how true this is
>>
>>60865120
just turn it off and on again
>>
>>60865120
Have you tried unplugging your router, waiting 30 seconds, and then pluggin it back in?
>>
>>60865120
nvm it doesn't work to build it from eclipse, it works to run what i built from the command line but when i edit the code and rebuild from eclipse it doesn't work again

but it works from the command line even though it's supposed to be equivalent
>>
>>60865152
maybe this is a sign to give up your crappy IDE
>>
>>60865152
just use emacs
>>
>>60865152
>>60865120
You should reboot your router and see if it helps, those things need to be reset occasionally
>>
>>60864890
not even a function, and items have to be atomic
(compose #'length
(rcurry #'remove-duplicates :test #'equalp))
>>
How do I convert a CPU model name, a /proc/cpuinfo file or a list of cpu flags into gcc cflags?
Let's say I want to compile a program for a large number of different machines (compilation is done on a single machine so I can't just -march=native), how do I figure out the -march etc. for each without having to look each CPU model manually?

Is there some CPU database with their preferred cflags anywhere?
Or a tool that converts shit like
fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer xsave avx f16c lahf_lm epb tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm arat pln pts
into cflags?

Am I better off just installing the compiler on each machine and compiling natively? Because that seems like a waste of time.
>>
>>60865187
non standard
>>
File: OpenGL Chart.png (93KB, 3808x1037px) Image search: [Google]
OpenGL Chart.png
93KB, 3808x1037px
>>60864449
>>
>>60865279
stocks?
>>
>>60865279
Just to be clear, you're not doing this "by hand," right?
>>
Curious what some of my betters here on /dpt/ would do in the case of getting a computer virus. I know the best answer is not to get one in the first place, but say your sister/daughter did it or something.

Are you a bad enough dude to hack out the virus using your own coding? How do you do it?

I'm legitimately curious what people better than me at low-level/system stuff can do. Even hearing somebody's anecdotal bragging story would be interesting. Would/does/has your ability to program help you fight virii?
>>
>>60865298
This is actually GBPUSD.
>>60865304
What do you mean? At first I hand coded the data just as a proof of concept, but then I wrote a quick and dirty Python script to scrape real data off a broker's website.
>>
>>60865321
No. Don't even bother. Wipe it and reinstall.
>>
>>60865325
>but then I wrote a quick and dirty Python script to scrape real data off a broker's website.
Oh thank god
>>
>>60865341
You might laugh though because the Python script just prints out the data as C source code for an array which I then compile, so the OpenGL program is using a static array of data, so in a way it is kinda like doing it by hand.
>>
File: autism.png (76KB, 1080x576px) Image search: [Google]
autism.png
76KB, 1080x576px
>>60864680

Some of these are legitimately retarded. Good luck replacing TA's until you design a robot with AI that can walk around a lecture hall and act like a secondary professor.
>>
File: 1454173229305.jpg (42KB, 640x480px) Image search: [Google]
1454173229305.jpg
42KB, 640x480px
>>60865355
>>
>>60864886
>text editor with a compile button
>what is integrated documentation
>what is refractoring helpers
>what is integrated version control
>what is context aware code completion
>>
>>60865399
emacs can do all of this and more.
>>
File: 1410224779015.gif (537KB, 500x281px) Image search: [Google]
1410224779015.gif
537KB, 500x281px
>>60864449
>>>/adv/18410201
I'm still supposed to help her with her CS homework tomorrow.

What's a good java one-liner to fuck up her macbook air running under default privileges?
>>
i made a shitposting discord bot but nobody wants to use it ;c
>>
>>60865399
butthurt IDE kiddie detected
>>
>>60865410
It's called calling her on a telephone and telling her to fuck off.
>>
>>60865425
Nah, I'm at least going to try to recoup my losses by getting some fun out of this one.
>>
>>60865408
Is there anything emacs can't do? Hell, it can pleasure a man nowadays.
>>
>>60865321
Assuming I'd find the file, I'd probably check it with IDA, but I doubt I could do anything meaninfull
>>
>>60865429
you're being used, you ain't getting anything back
>>
>>60865450
That won't run without root on OSX, will it?
>>
>>60864526
C here. What type of array?
>>
>>60864526
count_uniques = lambda x: len(set(x))
>>
>>60865408
Amd howany hours do you have to spend on configuring all that, then learning hoe tonuse emacs efficently?

>>60865416
I can programm fine without an IDE, but I don't see why shouldn't I make my job easyer.
>>
>>60865474
How many hours do you have to spend on configuring all that, then learning how to use an IDE efficiently?
>>
>>60865459
OSX and linux both use bash
>>
File: 1448684707249.jpg (24KB, 745x610px) Image search: [Google]
1448684707249.jpg
24KB, 745x610px
>>60865450
You're a fucking retard.
>3DPD
>>
>>60865467
A heterogeneous one.
>>
>>60865369
it's retarded but depending on how you look at it, students are already using bullshit tablet/chromebook apps as "teaching" aids
>>
>>60865501
and i don't mean just for note taking i mean like quizzes etc that teachers tell them to do
>>
>>60864526
std::set<int> s {1, 2, 6,9};
std::cout<< s;

C++ reigns supreme
>>
>>60865450
you think abeginner would compile java from the command line?
>>
File: 1493051552889.png (427KB, 640x481px) Image search: [Google]
1493051552889.png
427KB, 640x481px
What is the holy bible of c++ learning?

Like if you were stuck on a deserted island with a laptop and a backup generator, what book would you bring?
>>
>>60865522
Why would I be on a deserted island? I never go outside!
>>
>>60865481
Literally spent about an hour in CLion, to adjust everything, from text size to the lua console. Printed out a shortcut cheetsheat and used that for a few hours of active uasage
>>
>>60865522
If you know how to program in a statically typed language, you can learn C++ in a few afternoons at most.
>>
C++ is C's distant retarded cousin
>>
>>60865152
hahahahahahahahaha this is actually google's fault not the IDE

on the command line i had an old ndk on the path because the nvidia bullshit added a bunch of shit to the path, so it worked with the old ndk through the command line

the problem was with the unified headers introduced in NDK r14. if i disable unified headers it compiles fine

fuck google
>>
>>60865539
That sounds like a waste of time.
>>
>>60865530
>>60865540

Well I've previously took Programming I and II and that was Java, but I forgot alot of stuff.

I know basic shit like a variable is a storage location in memory, compiler translates high level code into machine readable code, and an array is a container of elements marked with a starting index of 0, etc.

Right now i'm going through learncpp.com to fill in the holes and it seems readable. I just thought a book was where many C++ learners start?
>>
>>60865636
Read the ISO C++ Standard.
>>
>>60865636
C++ Primer by Stanley Lippman is very recommended.
>>
Help me understand closures.

How do local variables retain their value after the function call?

How is this not considered mutation?
>>
>>60865801
Think of it as adding new pseudoglobal fields at runtime.
>>
>>60865540
C with classes != C++
>>
Why do people have trouble understanding bitshift operations? Why does it feel like few can write their own bit array?
>>
>>60865834

Help me in compiling a non-bloated program.
>>
>>60865852
I think it's a logical problem. If they knew all they had to do was move the whole value right or left it wouldn't be some big thing but people seem to think it involves this other complicated or convoluted thing and so they assume it's bigger than just move it right or left, keep it or don't keep it.
>>
>>60865540
Knowing the syntax != knowing the language
>>
>>60865852
People are stupid, most programmers, especially degree-holding programmers, are unskilled shitheads who are proud of being little automatons who turn coffee into CRUD spaghetti code for 8 hours a day, copy pasting entire sections of code from stack overflow when convenient.

They don't know how the underlying bit representation of integers work, so they're certainly not going to know how to use bitwise arithmetic in a meaningful way.
>>
>>60865539
>CLion
>isn't about Common Lisp
>>
>>60865937
Then help me, smartie: >>60865834
>>
File: 239487363.png (83KB, 1294x681px) Image search: [Google]
239487363.png
83KB, 1294x681px
How come pubDate doesn't exist? It's in the raw rss and 'description' and 'link' work too

Is there something I can call to see all the attributes that something has already?
>>
>>60865976
Figured out it's 'published' but is there anything I can call to see all the attributes?
>>
>>60865976
>not using monospaced fonts
How do you live with yourself
>>
>>60866067
What's a good mono font then?
>>
>>60866087
consolas
>>
>>60866087
I don't know what you'd like, so take your pick: https://en.wikipedia.org/wiki/List_of_monospaced_typefaces
>>
>>60865976
>python 2
why?
>>
>>60865976
>>60866112
Also, you need to use i.published (https://pythonhosted.org/feedparser/common-rss-elements.html)
>>
>>60865230
$ sed '/model name/!d' /proc/cpuinfo

youll have to make that db yourself
>>
File: 1490591570507.png (170KB, 480x480px) Image search: [Google]
1490591570507.png
170KB, 480x480px
>>60865976
>mangafox
>>
>>60866139
why the fuck? xml is whack
>>
>>60866187
Beats me, m8
anyway, HTH
>>
>>60866175
I just know they had good rss feeds
>>
Does /dpt/ have a sticky or something?

I'm really interested in learning programming but after some quick browsing I don't seem to have found a quick 101 that would let me understand how I should go about beginning my journey.

Would appreciate any advice.

Pic unrelated
>>
>>60866417
codeacademy python.
Then 'automate the boring stuff with python'
>>
>>60866417
Learn Lisp.
>>
File: 1495850341740.jpg (48KB, 498x456px) Image search: [Google]
1495850341740.jpg
48KB, 498x456px
>>60866437
>codeacademy
>>
File: 1490392333671.jpg (18KB, 558x529px) Image search: [Google]
1490392333671.jpg
18KB, 558x529px
Can someone please explain how the holy fuck this works: http://www.sanfoundry.com/cpp-program-find-fibonacci-numbers-matrix-exponentiation/

Specifically the "power" function, as far as I know, it is just repeatedly halving n down until it reaches n==1||n==0 but while it does that the matrix F is actually being raised a power but I don't understand how?
>>
Is gdb still the way to go? Seemed buggy the last time I tried it. I'm getting into c/unix programming in my spare time.
>>
>>60866498
http://www.geeksforgeeks.org/wp-content/uploads/fibonaccimatrix.png
>>
>>60866174
I was afraid of that.
Oh well. Pic about to become related very soon.
>>
What IDEs do you fags use? Is Intellij good?
>>
>>60866585

as a fag with no money I use notepad++ , were I work I use jetbrains products..
>>
>>60866585
nano
m4
git
make
gcc
>>
>>60866521
Depends.
What are you trying to figure out?
>>
>>60866585
emacs
>>
>>60866585
I use kdevelop.
It uses kate as the backend which is the best (graphical) editor.
Some people don't like that the API is in javascript, but you can elect to not use it.
>>
>>60866623
Debugging programs, analysing binaries
>>
Different languages (OOP) refer to object's values and functions as properties, fields/methods or members.
Is there any technical reason to differentiate between terminology?
>>
>>60866585
Jetbrains products, I'm a student so they are free
>>
>>60866585
Emacs + terminal emulator.
>>
>>60866650
In theory a function shouldn't have side effects and method should be used if ot does. But a few ppl actually care
>>
>>60864526
array.uniq.length

ruby ezmode
>>
Is LaTeX /dpt/-worthy?
>>
>>60866655
I'm no longer a student, can I still get it for free if I'll just use it for some open source projects that I'll use on my resume to try and get an internship?
>>
>>60866753
Surely. /dpt/ is shit anyways.
>>
>>60866641
sure, but what specifically?
gdb can slow the program down and tell you what is happening, which is great for stepping through the program or finding out why the program chrashed, but if you want to analyze memory consumption, valgrind can make graphs over what is using up your memory and tell you about memory leaks.
Sometimes it is easier/faster to just insert a logging functionality and read the logs.
>>
>>60866753
Writing reports about programming is not programming.
>>
>>60866753
only if you write it in a monospaced font with a dark background
>>
who here brainlet
>have to literally abstract everything away to make sure I know how everything works together
>>
File: serveimage.png (202KB, 600x700px) Image search: [Google]
serveimage.png
202KB, 600x700px
Opinions on Kotlin? Good or bad and why?
>>
>>60866901
Literal reddit meme-tier.
>>
>>60866901
Android devs seems to dig it because they don't have full java 8
>>
>>60866828
But what if you program the writing of the report. I know it's technically markup.
>>
>>60866909
But why you retard? Give arguments or kill yourself.
>>
>>60866932
JVM garbage peddled by some meme IDE company.
Who fucking cares?
>>
>>60866777
If you still have acces to a uni email adress then yes. But I don't know other ways the get it for free. But if you are working, it shouldn't be that expensive
>>
>>60866585
intellij and vscode
>>
>>60866940
I was hoping to discuss language semantics but I forgot was on /g/.
>>
>>60866901
>modern features
>minimal boilerplate
>java interop
>fantastic ide support
it's pretty close to perfection
>>
>>60866978
I haven't bothered to look into the language semantics because it's JVM garbage.
Literally only redditors give a fuck about it.
>>
>>60866944
I am fucked then. I wanted to use Cursive. Any other IDE for Clojure?
>>
>>60866998
No, what you did was ignore my original question and offer bullshit. My six ITS certs give me a comfy understanding of hardware and firmware. I know some assembly stuff as well.

I was asking for programming projects in some relation to my current skill-base.

Your solution read like: "Hey, I know you're an active programmer using some of the industries top-used languages, and your question was asking for projects possibly related to said languages, but instead I'm going to offer the idea that you should ditch those interests and pursue an entirely different language that you have already worked with in college, but maybe this time you should really go deep with it. Otherwise, give up on being a real programmer."

Man, I was just looking for more serious side-projects to work on. My job has me developing software for a medical information system, which is cool and all, but I wanted to see if you guys had any ideas of what I could write, at home, as a more involved project. Instead, I got shit.

Oh well, back to the Stack Exchange / Reddit. At least the levels of glorified smart-ass are a bit lower on those sites.
>>
>>60867019
>six ITS certs
AHAHAHAHAHAHAHAHAHAHAHA.
So you're basically admitting to being a stupid fuck, and that I was right about everything.
>>
>>60866998
There are people who need to use Java in their professional work from time and
may be interested to upgrade. Regardless of their opinion on the language.
If you developed on Android you had no sensible alternative to Java until now.
>>
>>60867019
>responding to angry autists
you're doing it wrong
>>
>>60867030
(ITS guy was not the guy who first asked about Kotlin. Don't assume the person who is responding to you is the person is who you responded to on an anonymous board.)
>>
>>60867030
you replied to a pasta anon
reddit tier activity i'd say
>>
File: 1496114727751.jpg (33KB, 400x562px) Image search: [Google]
1496114727751.jpg
33KB, 400x562px
>>60867069
>Posted 4 times
>All of them roughly 2 weeks ago
>HURR YOU DIDN'T KNOW ABOUT MY OBSCURE PASTA
Wow, anon. You sure did get me good.
>>
>>60867102
is that your cat, anon? cat looks comfy af. i would want to be that cat
>>
>>60867136
>Unix timestamp filename
No, anon. That should have been obvious.
I got the picture of off /an/, and it makes a good reaction image.
>>
>>60867157
pity
>>
>know a little C++
>try out C
I know nothing. So I can write a file, include it, and use methods from it. But how am I supposed to create an instance of a file or multiple instances of it?
>>
>>60867192
>methods
>instance of a file
You've clearly misunderstood what a file/translation unit actually is.
>>
>>60867198
So can you just not program shit like that in C?
>>
>>60867233
In C, all you have are functions and data. There are no "objects" with special shit like "methods" attached to them.
It's pure procedural programming.
>>
>>60867257
So what the hell are you supposed to do if you need multiple versions of a complicated thing?
>>
>>60867277
>multiple versions
Be more specific about what you mean.
>>
>>60867157
>and it makes a good reaction image
On reddit you mean? Certainly not here.
>>
>>60867277
there are structs for that, iirc
>>
>>60867288
Multiple instances of objects. Don't know how to say it in a C friendly way.
>>
>>60867293
By making multiple instances of it?
struct thing {
int whatever;
float some_shit;
};

...

struct thing a;
struct thing b;
>>
>>60867289
I thought reddit doesn't even have images? How the hell would a reaction image be useful there?
>>
>>60867299
don't confuse him with programming, leave him to his objects
>>
>>60864449
Thank you for using anime image
>>
>>60866814
I come from C# and there debugging is common in my workflow. I thought a debugger was common practice
>>
Doc just asked me to continue with antidepressants that have really bad side effects for another two months.
For no real reason, just feels like torturing me I guess. Can't keep his story straight either, he's clearly lying to me about what we discussed.

I can't get any help if not even doctors give a shit. Do I end it?
>not programming
You're all I have /dpt/.
>>
>>60867463
Go outside. Jerk off daily, use it like reward.
Take small steps, you're gonna make it.
>>
60867463
If only we didnt live a world that had only one doctor.
Stop taking the medicated jew.
>>
>>60867463
I was on antidepressants too. Stop using them. They're worse than useless. All I ever got from them were the side effects. They didn't help at all and I took them for a couple years. Get your hands on ketamine instead. (Read slatestarcodex for more details; he sums up the research on this.) That thing actually worked for me.
>>
>>60867463
>You're all I have /dpt/.
That's pretty pathetic, anon.
>>
>>60867531
I'll look into that thanks.
I gave my doctor a paper on a Danish medical trial that had been really successful for difficult to treat patients (I classify by their standards) and virtually no side effects. Not sure if doc skimmed it or read it but he said I can't try it because the medicine isn't approved by the state. I pointed out that it is approved as anemia medicine so it'd be legal for him to give me that given my approval. He then asked what anemia was and I asked him if he was a real doctor. He then remembered what anemia was (he claims) and said that the medicine isn't a drug commonly used for treatment of depression yet. Which is plainly obvious. But it was clear I needed to move on to other matters given the slim time I got with him.
>>60867511
I've tried that. I do jerk off multiple times per day after managing to do things I struggle with. I don't feel it's quite as effective as I'd like but it has helped.
>>60867516
Yes. It's a shame.
I would stop on my own accord but then they will claim that I'm not taking my meds ok and that's why they're failing. It's just getting me trapped on the same meds without any hope of escape. I could buy them and flush them. I don't like lying but it's starting to feel morally justified.
>>60867534
I'm aware. Sorry for being disruptive. But the thread was pretty inactive anyway.
>>
File: problems.jpg (230KB, 1391x321px) Image search: [Google]
problems.jpg
230KB, 1391x321px
Hi any idea why it says module not found?
>>
>>60867587
Probably because you don't have the module. I'm not sure how python handles modules, I don't use it.

If it's a common library you could try
python -m pip install threenames
>>
>>60867587
exit, run cmd, 'pip install threenames'
>>
File: 1466577279087.png (1KB, 304x23px) Image search: [Google]
1466577279087.png
1KB, 304x23px
>>60867615
>>
>>60867599
>>60867615

Ty for responding. It is there in C://Code with the other scripts. Maybe I am not making it find it correctly
>>
>>60867646
Try copy and pasting it into where you run your python script maybe? Maybe read up on how import in python works
>>
>>60867646
Python module lookup is cwd then modules installed through pip. If your file is called threenames.py and located in the same dir as the script you can import it with import threenames. Likewise if it's a folder called threenames that contains a file named __init__.py importing threenames will import __init__.py
>>
File: 2017-06-12-064711_273x188_scrot.png (15KB, 273x188px) Image search: [Google]
2017-06-12-064711_273x188_scrot.png
15KB, 273x188px
>>60864526
>>
>>60867713
>O(n^2)
You can do better than that.
>>
>>60867672

I just started programming and I have a Python book called 'Learning Python'.

>>60867689

Bit over my head :(
>>
>>60864526
int main(int, char**) {
float arr[2];
arr[0] = 3.4f;
arr[1] = 7.3f;
return 2;
}
>>
>>60867737
Basically make sure the file you want to import is in the same folder as your main script or make sure your cwd is the correct folder before you start the interpreter. (If you're using idle you're fucked and can either use os.chdir (iirc) or run a script instead of the repl)
>>
File: 1324450619952.jpg (47KB, 419x333px) Image search: [Google]
1324450619952.jpg
47KB, 419x333px
im really good in java but now Im learning c++ and Im kinda struggling. the thing I hate most is the heap of shit that is visual studio (but I have no other choice). is it worth to power through and learn c++?
>>
>>60867918
Where are you coming from? Eclipse? cdt is a thing to make you feel at home kinda
>is the heap of shit that is visual studio
Vstudio is bretty solid if you ask me, what do you find annoying?
>>
>>60867918

depends on why you're learning C++
>>
>>60867918
>VS
>shit, coming from a Java user
Don't you guys have to deal with the nightmare that is Eclipse and Netbeans? Anyways, VS is pretty shitty but I feel like a newbie would have a hard time in something simpler like Qt Creator or CodeBlocks.
>>
>tfw never programmed in an IDE before
What's it like senpaitachi?
>>
>>60867764

ty bro I love you
>>
>>60867934
intellisense
>shows red stuff just randomly and for no apparent reason
>sometimes doesnt show errors when existent
>auto complementation is more than lacking
is actually no help at all most of the time

>>60867983
eclipse just works. never had any problems ever.

>>60867946
what good are you as a programmer if you are a one-trick pony?
>>
>>60868022
That's a good mindset to have. It's worth it, but make sure you understand the fundamentals of C and don't have to rely on doing things the C++ way.
>>
>>60867991
Most just use them for debugging.
Actually programming in an IDE is just having quick access to declarations and a list of usage sites, debugging facilities and logging.
I'd say it's better. If the editors in IDE didn't slow you down that much.
>>
>>60868038
Learning C++ while thinking C is such a bad idea. Please don't give people this kind of bad advice.
>>
>>60864526
use std::collections::HashSet;
use std::hash::Hash;

fn unique<T: Eq + Hash + Clone>(list: &[T]) -> HashSet<T> {
list.into_iter().map(Clone::clone).collect()
}

fn count_unique<T: Eq + Hash + Clone>(list: &[T]) -> usize {
unique(list).len()
}
>>
>>60868074
I'm not saying you should program C++ like you program C. But to get the best of the experience, you should either know C already or learn it as well. You should know exactly what the C++ abstractions are doing behind the scenes and be able to implement them yourself if need be.
>>
>>60867531
http://slatestarcodex.com/2014/07/07/ssris-much-more-than-you-wanted-to-know/
Read this.
Not exactly the image of 'worse than useless' your post shows but it was a good read.
I'll read on ketamine now.
This seems like a very good unbiased source. Thanks a bunch.
>>
>>60868081
Learn some real FP, nigger. Pretty sure Rust can do better
>>
Convince a D fag look into / avoid Rust with proper arguments.
>>
>>60868205
Wanna become even more of a hipster?
>>
>>60868189
>FP
What is a ``FP" though?
>>
>>60868205
They're both aiming to achieve the same goals.
Why switch when you already know one of them?
>>
>>60868205
>Convince a D fag
>with proper arguments.
Impossible. I can try to do it in your language though: "it's a pretty comfy lang".
>>
>>60868217
I'm not a hipster faggot that clings to 70's retro trash for no reason
>>
>>60868228
>They're both aiming to achieve the same goals.
Rust is trying to be a systems programming language.
D is automatically excluded from that club.
>>
>>60868205
https://www.youtube.com/watch?v=lO1z-7cuRYI
>>60868217
D is more hipstery tho.
>>60868228
>They're both aiming to achieve the same goals
Are they tho? If so, why does D have a GC?
>>
>>60868230
>Impossible
For you maybe

>>60868205
+Better build system, you don't need to use that piece of shit called make any more
+Cargo.toml, let's you add a dep with just one line
+Even better modules, you can use std::{modA, modb,...}
+More safety with no GC, probably faster too
-Syntax very ugly
-Almost no type inference
-Documentation is immature
-Makes you think differently, due to borrow checker system
>>
>>60868271
>>60868280
https://dlang.org/overview.html
>systems and applications programming language.
Also its aiming to remove the GC.
>>
>>60868280
>why does D have a GC
GCs aren't inherently bad too, Depends on what kind of GC is in use here
>>
>>60868318
>Also its aiming to remove the GC.
Fuck that shit. Non GC autism is a niche and it should remain niche
>>
>>60868330
>Systems programming with a GC
>>
>>60868340
Systems programming does not entirely consists of bootloaders and kernels
>>
>>60868259
Don't bully me.
>>
>>60868330
Well they put it as making it optional in the standard library.

I personally don't really care either way. They're both bad for systems programming, lacking conveniences where they need it or simply constraining you where they shouldn't. I hope D improves with the understanding that GC doesn't save you though.
>>
>>60868313
> -Almost no type inference
The only things that lack TI are functions signatures, for practical reasons.
> -Documentation is immature
How so? They have two books and fully documented stdlib.
>>60868318
> Also its aiming to remove the GC.
Yeah, they've been trying to jump the Rust's bandwagon, the problem is, most of their stdlib and almost all of the third-party libs are designed around GC, so once you drop it you have no libs and have to manually manage the memory, so you're just better off with C(++).
>>60868325
Not in system programming tho.
>>
>>60868366
>Not in system programming tho.
>>60868346
>>
>>60868383
Still, you don't want you high-performance custom network stack or RDMBS stop occasionally or demand unlimited memory.
>>
File: qtchan.png (233KB, 1268x863px) Image search: [Google]
qtchan.png
233KB, 1268x863px
>>60864449
who comfy here
>>
File: 1497105460590.png (698KB, 648x798px) Image search: [Google]
1497105460590.png
698KB, 648x798px
>>60867463
well bucko, you need to sort yourself out
>>
>>60868405
>custom network stacks
When will we get proper Linux modules for networking? I'm sick or this bloated shit.
>>
>>60865474
>easyer
I guess you rely on your IDE as a spell correcter too.
>>
IDE's make you a sloppy typer.
>>
>>60868661
>tfw spelling errors propagate all over
>just find and replace to fix
>it doesn't work
Fuck
>>60868670
Well we have a long drop before we're down to shameful levels.
>>
>>60868670
I hope you enjoy your basic notepad.
>>
>>60866923
Wrong. Latex is Turing complete.
>>
>>60868560
Have you heard about http://dpdk.org/ ?
>>
>>60868661
Acrually yes I do, since I have dysgraphia and I'm not a native english speaker.
>>
What anime should I watch if I'm feeling like shit?
>>
>>60868670
You'll think differently when you're an actual working adult instead of a hobbyist ""programmer"" whose day consists of leeching off his parents and/or the state and writing fizzbuzz over and over again. My time is valuable and I won't let some weird sense of pride stop me from using a tool to increase my productivity.
>>
>>60868779
https://www.youtube.com/watch?v=2-518fUhP_Q
>>
>>60868661
>correcter
As in more correct?
>>
>>60868779
Evangelion
>>
I´m trying to implement IBPP with a firebird database in c++ for a personal project
and it works flawlessly if i put everything into the main.cpp
but as soon as i try to make a class for accessing the database it all goes to shit
with two errors appearing for every function IBPP offers
I´ve gotten the suggestion that i may be a linking error, though i´m not sure how to check for it
QTProjects\build-lib-MinGW-Debug\debug\dbaccess.o:-1: In function `ZN4IBPP15DatabaseFactoryERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_':

and
QTProjects\Library-C++\core\ibpp.h:874: error: undefined reference to `IBPP::DatabaseFactory(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

I´d appreciate if someone could point me in the right direction
also here is the code maybe it is of use
https://pastebin.com/ZNTTiSWj
>>
>>60868703
No. Sounds like just what I want. Thanks.
>>
>>60868863
Don't listen to this guy. Evangelion is self-pitying bullshit. You'll just sink lower into depression.
>>
>>60869046
>He doesn't get it
>>
>>60868779
Now and Then, Here and There.
>>
someone use my discord bot pls
i spent so much time making it ;-;
>>
>>60869167
What it do?
>>
>>60864449
I was working 18h a day in a festival because I need the money.
I am now going to transfer money to a debt collector and then try to code for an assignment I have to submit in 18 hours.
And I didn't have the clarity of mind to research and understand enough to tackle that homework.
I understand some people very well when they say live is misery
>>
>>60869225
posts random funposts from 4chan in your server
>>
>>60869046
This is blatantly wrong though.
>>
What jobs pay the best? DevOps and mobile people seem to be getting the best money, at least according to Stackoverflow

What would be a smarter field to go into out of the two, or any other?
>>
>>60868902
when you're actually declaring dbaccess is it with a std::string or another type that's somehow compatible to compile.
>>
>>60869167
>discord
And what if I'm not subhuman?
>>
>>60869286
I'm not sure anyone wants that.
>>
File: 60291897.jpg (4KB, 116x124px) Image search: [Google]
60291897.jpg
4KB, 116x124px
Anyone want to sift through my spaghetti and tell me how to improve?

import random

choices = {1:'Rock', 2:'Paper', 3:'Scissors'}
print 'Rock Paper Scissors'

while True:
comp_guess = random.randint(1,3)
guess = raw_input()

if guess == 'Rock' or guess == 'rock':
guess = 1
elif guess == 'Paper' or guess == 'paper':
guess = 2
elif guess == 'Scissors' or guess == 'scissors':
guess = 3

for i in range(0,40):
print

print 'You: ' + choices[guess] + ' vs ' + choices[comp_guess] + ' :Com'

if comp_guess == guess:
print 'Tie'

elif comp_guess == 1 and guess == 2:
print 'You Win!'

elif comp_guess == 1 and guess == 3:
print 'You Lose!'

elif comp_guess == 2 and guess == 1:
print 'You Lose!'

elif comp_guess == 2 and guess == 3:
print 'You Win!'

elif comp_guess == 3 and guess == 1:
print 'You Win!'

elif comp_guess == 3 and guess == 2:
print 'You Lose!'


Seems like there could be a better way to figure out the winner than typing out most of the possible outcomes. And is there a way to call 'Rock' from the dictionary and get '1'?
>>
How do I printf the first n chars of a string in C ?
Also, the n is dynamic, so I can't encode it in the format string.
Pls halp.
>>
>>60868902
>>60869392
oh or maybe you need CONFIG += c++11 in your .pro file
>>
>>60869410
>anime
I can't help you I'm sorry.
>>
>>60869412
Simplest solution is to save the character 1 past the last one you want to print. Change it to a null byte. Printf. And then restore it.

But I'm sure there's much better ways.
>>
File: 2017-03-18-110332_270x350_scrot.png (16KB, 270x350px) Image search: [Google]
2017-03-18-110332_270x350_scrot.png
16KB, 270x350px
>>60869398
>>60869395
>>
File: 1496848599502.jpg (25KB, 421x399px) Image search: [Google]
1496848599502.jpg
25KB, 421x399px
>>60869429
I can't help you I'm sorry.
>>
>>60869392
yes i am using an std::string when declaring it
>>60869425
adding it sadly didn´t change anything
>>
>>60868779
YuruYuri
>>
>>60868779
Hidamari sketch
Yuyushiki
Kill me baby
>>60869481
>>
>>60866417
https://docs.oracle.com/javase/tutorial/

not trolling
>>
>>60869461
do you have your

IBPP::DatabaseFactory(DBName, DBPath, DBUsername, DBPassword); to look at?
>>
>>60869410

Rather than using magic numbers, use an enum.
>>
>>60869511
Database DatabaseFactory(const std::string& ServerName,
const std::string& DatabaseName, const std::string& UserName,
const std::string& UserPassword, const std::string& RoleName,
const std::string& CharSet, const std::string& CreateParams)
{
(void)gds.Call(); // Triggers the initialization, if needed
return new DatabaseImpl(ServerName, DatabaseName, UserName,
UserPassword, RoleName, CharSet, CreateParams);
}

this is the cpp
and this is from the header
Database DatabaseFactory(const std::string& ServerName,
const std::string& DatabaseName, const std::string& UserName,
const std::string& UserPassword, const std::string& RoleName,
const std::string& CharSet, const std::string& CreateParams);

inline Database DatabaseFactory(const std::string& ServerName,
const std::string& DatabaseName, const std::string& UserName,
const std::string& UserPassword)
{ return DatabaseFactory(ServerName, DatabaseName, UserName, UserPassword, "", "", ""); }
>>
>>60869410

Simplify your first conditional block
guess = raw_input().lower()


You're printing 40 newlines for some reason?
print(40 * '\n')


More readable checking of win condition imo
win = (
(comp_guess == 1 and guess == 2) or
(comp_guess == 2 and guess == 3) or
(comp_guess == 3 and guess == 1)
)
lose = (
(comp_guess == 1 and guess == 3) or
(comp_guess == 2 and guess == 1) or
(comp_guess == 3 and guess == 2) or
)
if win:
win()
elif lose:
lose()
else:
tie()
>>
>>60869555
also the second error points at the return in the header
>>
>>60869555
according to stackoverflow: inline function must be defined in the same file(compilation unit) where it is called. So inline function is ususaly defined in the header file. So I think, your file cannot have a call to an inline function that's in an object

try taking away that inline or calling the full function: DatabaseFactory(ServerName, DatabaseName, UserName, UserPassword, "", "", "")
>>
fucking pajeets and their design patterns
>>
>>60869564
Thank you.
40 newlines are just to clear the page

I don't quite understand the formatting of your win condition. Is there a name for it I can search?
>>
>>60869410
>And is there a way to call 'Rock' from the dictionary and get '1'?
choices = { "Rock": 1, "Paper": 2, "Scissors": 3 }
print(choices["Rock"]) # 1
>>
>>60869564
When you write it like this it's clear that win is when comp_guess== (guess+1)%4+1
And loss is the opposite rotation.
>>
>>60869642
win and lose are boolean variables
your original win checking conditionals evaluate with == in the line of the if/else, i just did mine beforehand so i can simplify some of them with or

don't know about a name

>>60869662
good on you
>>
>>60869591
i tried both but neither had led to any change in the error
>>
>>60869711
>good on you
I didn't mean to be rude. It just looks nicer to write it like that to me.

It's a better rock paper scissors game because you can extend it better.
>>
>>60869410
RPS is pretty contrived so it's fine to just check all the winning conditions, but you could do something like this.
rps = { "Rock": 0, "Paper": 1, "Scissors": 2 }

# r p s
# r 0 -1 1
# p 1 0 -1
# s -1 1 0
wincons = [[0, -1, 1],
[1, 0, -1],
[-1, 1, 0]]

you = "Scissors"
opponent = "Scissors"
outcome = wincons[rps[you]][rps[opponent]]

# 0 is draw, -1 is loss, 1 is win

>>
File: Mh65JLO.png (92KB, 482x488px) Image search: [Google]
Mh65JLO.png
92KB, 482x488px
>>60869736
i meant good on you sincerely anon
>>
>>60869724
try a different compiler? what compiler/flags are you using now?
>>
>>60869780
Wow. Thanks.
>>
>>60869759
I like this one
>>
File: 2017-06-12-105946_223x219_scrot.png (14KB, 223x219px) Image search: [Google]
2017-06-12-105946_223x219_scrot.png
14KB, 223x219px
>>60867727
tru
>>
>>60869800
i´ve tried two versions of MinGW and MSVC2015
MinGW keeps with the issue
but MSVC2015 doesn´t find corecrt.h though i guess my visual studio installation is broken since it has several problems so i guess it is unrelated

and i assume you mean this?
g++ -Wl,-subsystem,windows -mthreads -o debug\lib.exe debug/main.o debug/mainwindow.o debug/dbaccess.o debug/moc_mainwindow.o  -lmingw32 -L"D:\Program Files\Qt\5.8\mingw53_32\lib" "D:\Program Files\Qt\5.8\mingw53_32\lib\libqtmaind.a" -LC:\utils\my_sql\my_sql\lib -LC:\utils\postgresql\pgsql\lib -lshell32 "D:\Program Files\Qt\5.8\mingw53_32\lib\libQt5Widgetsd.a" "D:\Program Files\Qt\5.8\mingw53_32\lib\libQt5Guid.a" "D:\Program Files\Qt\5.8\mingw53_32\lib\libQt5Sqld.a" "D:\Program Files\Qt\5.8\mingw53_32\lib\libQt5Cored.a" 
>>
>>60869384
I can't ask about programming jobs but anime fags can ask for recs
K
>>
>>60870095
Because who the fuck knows anon. Do your own research.
>>
>>60870095
>/g/
>knowing anything about jobs
>>
>>60869384
something involving C++ would be the best over the long term as it requires a high level of expertise, and with newfags moving on to meme languages you won't have as much competition, but a lot of applications still use C++ so there will be jobs for it
>>
>cannot declare enum at variable declaration
what does that in c++ even mean? can I not store an enum as a member?
>>
Which one of you sick fucks did this?
https://github.com/tramplersheikhs/crocodile
>>
File: 1310477157877.jpg (14KB, 493x402px) Image search: [Google]
1310477157877.jpg
14KB, 493x402px
>>60870221
now it worked. so you have to give an identifier for every single possible object and primitive except enum?
>>
>>60870221
>>60870258
can you elaborate? post some simple example that illustrates the problem?
>>
>>60870282
enum TestEnum test;

compiler error

TestEnum test;

compiles

TestStruct test;

compiler error

struct TestStruct test;

compiles
>>
File: 1479085831914.jpg (50KB, 562x702px) Image search: [Google]
1479085831914.jpg
50KB, 562x702px
what is a good C IDE for a beginner?
>>
>>60870298

Works for me senpai.
>>
new thread
>>60870341
>>
>>60870312
>C
>beginner
What. Do you think you're special or something. Start with Python like the rest of us, scrub
>>
>>60870298
Are you sure you're compiling with a C++ compiler?
>>
>>60870356
>>60870328
maybe some speciality of the ue4 reflection shit. who knows.
>>
>>60870352
What did he mean by this?
>>
>>60869410
What about this, anon?
import random

choices = {1:'rock', 2:'paper', 3:'scissors'}
invChoices = {'rock':1, 'paper':2, 'scissors':3}
result = {0:'Tie', 1:'You lose', 2: 'You win'}

print 'Rock Paper Scissors'

while True:
comp_guessNumber = random.randint(1,3)
guess = raw_input().lower()

guessNumber = invChoices[guess]

print 'You: ' + guess + ' vs ' + choices[comp_guessNumber] + ' :CPU'

comparison = ((comp_guessNumber - guessNumber + 3) % 3)
print result[comparison] + '\n'
[\code]
>>
>>60870067
looks like it's not compiling and linking ibpp.
is ibpp.cpp in your project?
>>
>>60870312
The only good C IDE I've used is CLion, but I'd recommend avoiding an IDE for the time being. You'll want to familiarize yourself with your toolchain while you're learning the language, and an IDE can be unhelpful for that
I'd recommend using make to automate your build process, and using whichever text editor you like the most.
>>
>>60870298
C has that quirk, but not C++. make an enum class or use some other C++ specific feature to test if you're using the right compiler.
>>
>>60870067
>>60870449
or if there's already an ibpp.dll somewhere you need to add the library flag -L"D:\Path\to\ibpp.dll" i'm thinking
>>
>>60870464
IDE is really helpful for beginners, it is a lot easier to spot stupid errors like variable name mismatch, should complain about missing parenthesis and commas and overall syntax. Sometimes syntax highlighting isn't enough. I suggest emacs for C.
>>
>>60870464
you can use make and hook it up to your IDE
>>
>>60864526
Modify mergesort so that the merge routine drops duplicates. If the number of unique elements is bounded, it can run in O(n) time and in O(1) additional memory. It will be stable (always pick the first element) and cache local, possibly moreso than a hashset.
>>
>>60870545
>>60870687\
I agree that there are some advantages to an IDE for beginners. However, in my experience I've found that new programmers become over-reliant on their IDE's autocompletion, and don't bother to remember the names of frequently used functions, leaving them helpless when they can't use an IDE.

I think emacs strikes a nice balance between IDE and text editor, since out of the box emacs is very barebones, and more advanced functionality has to be manually enabled and sort of built up.
>>
>>60870838
>I think emacs strikes a nice balance between IDE and text editor, since out of the box emacs is very barebones, and more advanced functionality has to be manually enabled and sort of built up.
About this, are there some GREAT, TIME TESTED, packages that really help you out? I would love the alt+shift+R eclipse has, for example. Or ctrl+clicking a function and jumping to its definition. Or variable. A context-sensitive editor.
>>
>>60870990
I use evil-mode for everything. If I'm doing scheme or common lisp development, geiser and slime are very necessary respectively. Rainbow delimiters is also necessary for lisp development.
I like neotree, although I often forget to use it. I find smart-mode-line to be kinda comfy. Org-mode is probably the best list manager I can imagine.
For context sensitive editing like mass rename or jump-to-variable, you'll want a program called etags (usually just a symlink to ctags). The wiki for emacs is really good.
https://www.emacswiki.org/emacs/EmacsTags
>>
>>60870990
>>60871108
Oh, and I almost forgot company-mode for autocomplete
>>
>>60871108
Thanks a lot, anon, I will read up on those.
>>
Hey everyone, how do I get started with C#?
0 experience in programming languages.
>>
>>60871486
download visual studio code, go to youtube, also micro$oft has tons of resources.
>>
How do I call /dev/urandom as a random generator from Java? I'm using
SecureRandom.getInstance("SHA1PRNG");

but it looks like the seed is messed up, since the random numbers are kinda similar.
>>
>>60871530
Is there a reason you can't access /dev/random as a normal file? I believe there's an input stream method to read a number of bytes
I'll try this and post an example in a moment
>>
>>60871530
>>60871969
import java.io.*;

public class Main{
public static void main(String[] args){
try (FileInputStream fin = new FileInputStream("/dev/random")){
System.out.println(fin.read());
}
catch(IOException ioe){
ioe.printStackTrace();
}
}
}
>>
>>60870838
I´d be using Sublime Text (tm) constantly
but my biggest gripe is it does not give me an auto-complete for things that i include myself that are not the basic libraries
and i wouldn´t call this an over-reliance because it´s rarely efficient to learn the names of everything you may include at some point.
instead of just being able to work with it as soon as possible
>>
>>60872066
Far be it from me to shill any editor besides emacs, but Sublime Text does have a ctags package
>>
>>60872140
that´s actually pretty neat thanks
>>
>>60864473
not french
Thread posts: 345
Thread images: 31


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