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

File: 1498386100769.png (2MB, 2560x1440px) Image search: [Google]
1498386100769.png
2MB, 2560x1440px
Old thread: >>61076117

What are you working on, /g/?
>>
copying from the end of last thread:

From a pure job security, job availability, and long-term salary point of view, would it be better to choose information security or software development in my career?

I realize that both of these are massive fields with many subfields to choose from, but I would like some general guidance. I am finishing up a CS degree from a good university, and have one internship plus a few side projects under my belt.

I am interested in both software dev work and software security stuff, and have to pick a career path. If one is equally interested in both, which do you guys feel is the best route to take? Which path won't be infested with h1b's?
>>
File: 1497857353489.jpg (239KB, 1010x1200px) Image search: [Google]
1497857353489.jpg
239KB, 1010x1200px
>>61082558
C influenced languages get an automatic F in my book.
>>
File: YotsubaNo.png (91KB, 572x349px) Image search: [Google]
YotsubaNo.png
91KB, 572x349px
>>61082596
>posting sluts
>>
File: 1492646774465.jpg (62KB, 1137x640px) Image search: [Google]
1492646774465.jpg
62KB, 1137x640px
>>61082596
AHAHAHA IO IS IMPURE
A good pure program can be replaced with a single nop instruction.
If your program can't be optimized as a single nop it's gets an automatic F in my book!!!

Pic related it's you
>>
>>61082579

Software dev. You'll always be second fiddle (at best) as a security guy because you aren't the one generating the value for a company. When the time comes to tighten the belt who do you think gets let go first? The company can still function with shit security, they can't function if they don't produce any products.

Also, its easier to do your own thing as a software dev. The closest thing as a security researcher is going full blackhat.

With that being said, you can have a great career in both so just do the one that interests you more.
>>
How do people write large programs (50k lines+) without debugging tools? I asked about Linux debuggers and it seems nobody in the thread uses any. Some anon said he didn't even use any IO when she writes software.
I don't see how you could write anything of note without debugging facilities because tracking the space of potential state in a sufficiently complex program is next to impossible. Even with the most crazy FP zealot you can't track where you're gonna run into an error based on the one input you use.
So how is it done?
And what's the best Linux debuggers (C++/C primarily but any language is fine).
>>
>>61082641
If your pure program can be optimized to no op then why not just write all of them once in asm and be done with it?
>>
>>61082641
>it's gets
>Pic related it's you
Please learn English before posting here.
>>
>>61082653
So you're saying assembly is the best functional programming paradigm programming language?
>>
>>61082648
Maybe you should try wanting
writing good code the first time.
Printf debugging always works.
You could also resort to using unit testing to prove program correctness and make sure that any changes don't suddenly break the business logic of your program.
>>
>>61082648

gdb or edb. Also, never underestimate the power of printf debugging, 99% of bugs can be solved this way imo. I only resort to debuggers when I really don't know what the fuck is going on and this is usually because I've made some sort of assumption that is terribly wrong.

>Some anon said he didn't even use any IO when she writes software.

??
>>
>>61082684
>>61082668
Why use printf when a debugger does the exact same thing with the press of a button (break)? Even better if you insert asserts in your code you can automatically have your program give you all the information you need when you've detected an erroneous state.
>unit testing
Only works for very small input spaces.
Which only really happens in situations where you don't need that aid. Like writing a simple math function.
>>
I feel like garbage by not knowing exactly what happens under the hood.
>>
File: 1490586199155.jpg (66KB, 546x618px) Image search: [Google]
1490586199155.jpg
66KB, 546x618px
>>61082668
>testing to prove program correctness
>>
>>61082596
C is cute
>>
>>61082723
>tfw too much of a brainlet to make my own compiler
>>
>>61082643
I see, thanks for the detailed post.

>easier to do your own thing as a software dev
Could you elaborate on this? Don't managers (or project managers) always make developers work on particular tasks at all times?
>>
>>61082684
>gdb
Its so weak though. Doesn't even compare to something like visual studio in convenience. Which is all you're looking for in a debugger obviously.
>edb
I'll check it out but it just looks like a gdb front-end.
>>
>>61082732
In the long run, empirical results are all that matter.
>>
>>61082579
They're both rather safe professions.
>>
>>61082788
Sounds like something a retard would say.
>>
>>61082684
>he
>she
Sorry I meant to write she in both places.
>>
File: puzzlegame.gif (100KB, 336x264px) Image search: [Google]
puzzlegame.gif
100KB, 336x264px
simple puzzle game, it's about 80% done now
>>
>>61082801
wow rude
>>
>>61082771

I mean that you can potentially build some sort of product or service on your own as a developer. Like a game or a website or some sort of app.

I guess you can do the same thing as a security guy but you would have spent a bunch of time building up a skill set that isn't the most useful for that sort of thing.
>>
>>61082596
C and Java work just fine.
>>
>>61082779
>visual studio
Let's not even go there.
>>
So whats your favorite /dpt/ related game?
Any more good ones that arent from zachtroncis?
>>
File: Hack2.jpg (463KB, 991x608px) Image search: [Google]
Hack2.jpg
463KB, 991x608px
>>61082881
>>
>>61082873
Have you used it anon? I see tons of flaws with it too but it's not as terrible as using gdb. It's even integrated so well with the OS that whenever a program stops responding to the message loop windows prompts you if you wish to open it in visual studio for debugging. It lets you freeze all the threads and read exactly what's going on without issue.

It suffers a lot in the resource usage department and in certain UI choices. But it's miles beyond anything I've tried on Linux. So that's why I'm looking.
>>
>>61082881
Minecraft tekkit. Programming mining turtles/builder turtles was a lot of fun. Lua isn't too bad either.
>>
>>61082914
Literally just use VS Code, lad. Its FOSS, and has debuggers.
>>
I can't think of any ideas for sideprojects. Id like to make something using JavaScript, thats all ive got so far.
>>
Is anyone publishing an alexa skill to get a free echo this month?
>>
>>61082953
You should make a visual basic compiler in JavaScript so people can port their excel macros to Google spreadsheet.
>>
>>61082969
>a free botnet
but why
>>
>>61082643
Top post, thanks!
>>
>>61082935
Looking at the feature set for C/C++ i might as well use gdb at that point. The only thing it gets me over just using gdb raw is breakpoints. Which I already set up for atom and gdb.

Why you'd recommend VS code over visual studio is beyond me. I'm sure its a better editor but that's not what I wanted.
Just look at how incredibly bare bones this is:
https://code.visualstudio.com/docs/editor/debugging
>>
>>61082643
You can easily be a self-employed pentester when you have the merits.
>>
Planning to develop a ram based file system that accepts mounts and automatically wipes the memory with 0's on umount / reboot (preventing cold boot)
>>
>>61083035
Because at the expense of worse debugging, you get a vastly better editor that doesnt take three years to do anything and you dont have to have to waste 20GB+ on useless shit you wont use.
>>
>>61083095
For Windows?
>>
>>61083101
>waste disk space
We don't live in the 90s anymore anon. It's not a problem. Especially not as low as 20gb even if it's not nice of them.
>nicer editor
Anon why would I use VS code as an editor? It's outmatched by every other editor.
>takes three years to do anything
Oh I'm way faster than that in emacs and I'm not even good at emacs.
I don't see any advantage really. How is VS supposedly better than other editors?
>>
>>61083153
that'd be like using a condom that u made cuts all over
for *nix
>>
>>61083154
> It's outmatched by every other editor.
How so?
>>
>>61082779
>Doesn't even compare to something like visual studio in convenience

I keep hearing this all the time, but what does it really mean?

Please list ONE feature the VS debugger has that gdb doesn't

>inb4 "convenience"
gdb integrates excellently into many IDEs, so this is a moot point.
>>
>>61083174
Will Linux already had tmpfs built in.
>>
>>61083201
true but it doesnt have wiping on unmount / reboot and I'd like this to be userspace
>>
>>61082684
I avoid IO and use recursion with manual tail call elimination... But then again C is a functional language right?
>>
>>61083185
>what does it mean
I'll give you more than one feature. I'll give you the list:
https://msdn.microsoft.com/en-us/library/sc65sadd.aspx
It's a lot. If I tell you just one feature you might say 'but I don't need that!'. But others do. The 'more debugging features' link is the most concise imo.
>convenience
Well yeah. The thing is that you can build anything on top of gdb I'm pretty sure. It's just a lot of work. To have that work done for you is why you look for a program that does this for you. Of course you could pause every project and just write your perfect debugger. But it takes time. And usually when you find debuggers lacking you're facing a problem you need to focus on. So you don't even note what your grievance is. Which is a problem I should be doing that.
>>61083183
Most other editors have far more support. VS code is a young ecosystem.
>>
>>61083281
>have far more support.
What do other editors have that VS Code does not.
>>
>>61083307
Dcd integration is something I haven't found in VS code for instance. Anon of course you can get by with VS code. The minimum is easy to get up to. You could write it in a day. But to know that you likely won't have to move to another editor for convenience reasons is a big plus. You don't get that with VS code.
>>
File: old_hag_langs.png (173KB, 600x355px) Image search: [Google]
old_hag_langs.png
173KB, 600x355px
54th for C.
>>61082596
Reminder your book is shit.
>>
File: sni.png (61KB, 844x922px) Image search: [Google]
sni.png
61KB, 844x922px
>>61083346
Are you serious?
Did you even bother typing dlang into the extensions search?
>>
>>61083346
Despite the anon mentioning >>61083381 VSCode's DCD you should install DCD, Dfmt, DScanner, Dfix and DUB manually.
>>
>>61083381
It didn't when I last checked.
Do you think it has every extention though? Frankly I feel your reaction weird. It's like you've attached your pride to VS code being good.
>>61083473
Why?
>>
>>61083511
>spout ignorant nonsense
>get proved wrong
>wow why are you proving me wrong you loser

Atom is shit.
VS is shit.
Vim is shit.
Emacs is shit.

VS Code is the first pleasant TE ive used that just works. And i dont have to fuck with an external config file for rice and QOL preferences either.

But use what you want i guess.
>>
>>61083473

> pacaur -S dlang workspace-d
> Install vscode plugin
> Config the std lib path
> ???
> Done
>>
>>61083511
>Why
1. You know where the DCD,... resides so it's easy for you to edit their config and recompile
2. In case that you remove VSCode you can still use the tools manually
>>
>>61083546
>I hate all other editors irrationally
It all makes sense now. Even why you'd suggest vs code as a debugger.
>>
>>61083546
Thanks, Rahul! 2 Rupees has been deposited into your Microsoft® Windows™ Store Account™.
>>
>>61083562
>irrationally
I used atom for awhile with C, but big projects slow it down.
VS was already slow and tedious from the start.
Vim is pure tedium and takes extensive amount of time to have anything usable for programming.
Emacs when i got tired of Vim and things werent much different.
>>
>>61083597
>Vim is pure tedium and takes extensive amount of time to have anything usable for programming.
Nah, you're just shit.
>>
File: 1471653771418.jpg (90KB, 640x480px) Image search: [Google]
1471653771418.jpg
90KB, 640x480px
my home brew search engine, if you want to look up older style websites, use my search engine wibr.me.
Its a lamp server on a vps. Good old php/sql with a bot (written in c) that scrapes the submitted sites.
>>
>>61083597
>vim
How can you complain about vims setup?
>>
>>61083546
Not him but the one and only reason I use VS Code is that it has a nice built in terminal that I can quickly focus to without having to use the mouse.

>Neo/Vim
DCD breaks Vim. Vim has other issues that hamper productivity.
>Coedit
No built in terminal, passing arguments and inputs are a pain in the ass
>Sublime kek
Well, it's got no built in terminal. Plus it's closed source.
>Atom
Didn't try it, it does not have a built in terminal but I guess you can install a plugin that allows you to switch to a terminal pane unlike sublime
>Code::blocks
I actually want to try this!
>Eclipse
Unusable
>IntelliJ
>Even though I configured everything:
1. I can't find a way to run dfmt via a shortcut
2. No bracket matching
>>
File: netrunner new logo.png (565KB, 1000x1000px) Image search: [Google]
netrunner new logo.png
565KB, 1000x1000px
>>61082558
We are making a web browser! >>61078788
>>
>>61083631
>built in terminal
Who the hell cares about that? Just fucking open a normal terminal.
>>
>>61083610
>>61083622
vimrc is ass.
Severe fragmentation with plugin managers doesnt help.
VimS is also terrible.
>>61083631
Not to mention Coedits still buggy as shit, and god forbid you accidently run an infinite loop. and trying to rice it is a nightmare.

CB is ass for D,
>>
>>61083671
>D
Oh, you're one of (the only) those fucking idiots.
Your opinion has been completely discarded. There is no point is arguing with a braindead person.
>>
>>61083660
When you have multiple windows open, depending on your window manager you may have to press a few keys multiple times. However, an easy solution to this is to develop/test in a separate workspace.

I envy IntelliJ's Rust integration. I find that combination to be very comfy
>>
>>61083681
>when you have no arguments left
>>
>>61083681
Vim is trash. Fight me.
>>
>>61083660
The ease of being able to toggle to your editor and terminal with one bind each is nice. I can also just make a new terminal, cycle between those and delete them all with a bind each. Especially when im working with different languages at once.

Multiple external windows also goes against the one good thing Vim enforces, which is dont use your mouse for programming if you dont have to.

But sure i guess i could nig-rig the same solution to emulate, but why when i already have it?
>>
File: 1482453802908.gif (49KB, 100x99px) Image search: [Google]
1482453802908.gif
49KB, 100x99px
>>61083659
Nice website for your browser. Please keep it that way. I have added it my search engine (mentioned further up), and will keep an eye on your development progress. Would love an alternative to FF.
>>
File: 1494245067733.jpg (54KB, 240x430px) Image search: [Google]
1494245067733.jpg
54KB, 240x430px
>>61083718
>He doesn't use a tiling window manager
>>
>>61083703
This is a thread about dev projects, not about arguing about your stupid text editors. Will you guys chill?
>>
>>61083737
I do cross-plat so VS Code is a dream for wangblows.
>>
>>61083718
This is the one thing I loved about Vim/Or any CLI text editor. Of course you have to use tmux or dvtm or modern tiling terminal emulators that allows multiple windows
>>
Scala is so shit it almost (ALMOST) makes C++ look a little less shit
>>
File: 1496838418693.png (108KB, 233x300px) Image search: [Google]
1496838418693.png
108KB, 233x300px
>>61082558
Why is lambda calculus so comfy?
>>
>>61083826
Even though they dont show the slides, i really enjoyed this talk just for blunt and emotional he gets.
https://www.youtube.com/watch?v=4jh94gowim0
>>
>>61083863
Dude is slightly mentally unhinged
>>
C++17 > *
https://pastebin.com/yhn9jznb
>>
>>61083907
I think you would be too if you spent 5 years chained to a shitty language,desperately trying to make it better but just watching it get worse.
>>
>>61083911
50 rupees and 16 bing points have been added to your designated Microsoft Visual C++ shilling account, vishnu
>>
>>61083926
I already am. Doing Physics and being attached to /dpt/ is t blame.
>>
Why does /dpt/ shit on C++ so much?
Is it too advanced for you?
>>
>>61083961
C++ is literally for brainlets, fuck off
>>
>>61083961
C++ killed programming.
>>
>>61083961
Being overly complex doesn't mean that it's well designed; it's actually the opposite.
Fuck off, you microsoft shill.
>>
61083961
Its templates, pajeet
>>
>There are people that think C++ is actually complex and that's why people hate it
>>
>>61083961
Because it's too thicc for its own good. I don't even get to use a quarter of everything it has to do my job.
>>
>>61083996
Take your furry shit to >>>/trash/
>>
>>61083961
>boost
>>
>>61084018
You mean std beta
>>
>>61083995
It's amazing, right? Almost every single person I asked why he is using C++ replied "C is a bit too hard"
>>
>>61084025
No you mean std::stdbeta::currstdbeta
>>
>>61083996
Why does she even need to vacuum?
She already has a huge duster trailing behind her at all times.
>>
File: smug_ran1.jpg (180KB, 1732x1593px) Image search: [Google]
smug_ran1.jpg
180KB, 1732x1593px
>>61084181
My wife's tails are for me to fluff and I don't want dust in my face.
>>
>>61084247
Is your wife ran?
>>
>>61084181
>dusting is the same as vacuuming
>>
>>61084251
Yes.
>>
>>61084257
Better go catch her!
>>
ftp. cap stone-cre ative.com
u: m ain@ca psto ne-cre ativ e.com
p: 1Capst0n3
>>
File: ran_mad.png (159KB, 365x362px) Image search: [Google]
ran_mad.png
159KB, 365x362px
>>61084261
G-good one anon.
>>
>>61084271
nice try ivan
>>
>>61083185
>https://msdn.microsoft.com/en-us/library/sc65sadd.aspx
EDITANDCONTINUE
>>
>>61084274
your waifu a shitsune
>>
>>61084371
What the fuck anon that's not nice. You need to apologize to her right now.
>>
File: anal beads.png (149KB, 609x484px) Image search: [Google]
anal beads.png
149KB, 609x484px
>>61082558
>>
File: boa-closeup2.jpg (45KB, 600x450px) Image search: [Google]
boa-closeup2.jpg
45KB, 600x450px
>>61084416
YOUR
WAIFU
A
SHITSUNE
>>
File: 1491371471303.jpg (229KB, 1920x1080px) Image search: [Google]
1491371471303.jpg
229KB, 1920x1080px
Stop posting touhou.
>>
>>61082722
>Why use printf when a debugger does the exact same thing with the press of a button
It doesn't make me feels quite as 1337.
>>
>>61082558
stop posting my gf
>>
>>61084484
You're joking I'm sure. But I'm sure there's people who genuinely do it for this reason.
It's beyond me how they think printf is more cool than inspecting memory.
Most debuggers even let you change values at runtime or move back the instruction pointer.
Mostly useless but way cooler.
>>
>>61084444
>circle scissoring the image
Is this that april fools joke UI Chan had? There were multiple userscripts to mimic it iirc. How do I find them?
>>
File: 2017-06-25-225826_679x476_scrot.png (54KB, 679x476px) Image search: [Google]
2017-06-25-225826_679x476_scrot.png
54KB, 679x476px
can somebody help me optimize this piece of shit of a code?
>>
>>61084664
- (if (> index 1000)
+ (if (not item)

oops
>>
>>61084664
>piece of shit of a code
No need to say that. It's obvious since it's written in Lisp.
>>
>>61084664
>optimize
>Step 1.
Rewrite it in C
>Step 2.
Call the C version using FFI.
>Step 3.
Consider if it's good enough
>Step 4.
If not then you improve the C version and go to step 3.
>>
Hey guys, i've been studying about data structures in C and theres one thing i don't quite understand, lets suppose i have this simple list implemented:
struct node{
void *x;
struct node *next;
};

i've made a void function do delete nodes (which is kinda big, so i'm not posting), but when theres only one node it crashes
is it because the function is void? should i make this void function call a struct node* function that will actually make the deletion? or should i stick to only one void function and try to fix it?

thanks in advance
>>
>>61084683
it's slow as fuck
it won't even finish
I'm trying to write an Scheme solution to this benchmark game
https://github.com/kostya/benchmarks/tree/master/json
>>
>>61084697
Depends on where it crashes.
The only 1 node case is special since you should just free/delete the node. Likely your delete tries to fix up the pointers around it and that fails because there's nothing there.

But I can't know without knowing the error.

The return type of the function is probably completely irrelevant. That you think it's significant makes me think you're confused about things. Which is fine, nothing wrong with being new but I just thought it'd be worth saying.
>>
>>61084697
use a debugger and remember your edge cases
>>
>>61084697
make it pure and return the altered list, lad.
>>
>>61084697
Do you understand why it crashes? It is probably trying to access next when it is null.
>>
>>61084732
if you like inefficiency you should stay with haskell
>>
>>61084741
good thing i dont use hasklet.
>>
File: 14717130.jpg (20KB, 480x480px) Image search: [Google]
14717130.jpg
20KB, 480x480px
>>61084471
>>
Not understanding lisp

SICP teaches me about the dot syntax for functions (where placing a dot between arguments has the following arguments as one list)
However, I'm very confused as to how to use it with recursive procedures.

(define (same-parity int . list)
;Print stuff for debugging
(display "-----------")
(newline)
(display list)
(newline)
(display (car list))
(newline)
(display (cdr list))
(newline)

(if (null? list) nil
(if (= (remainder (- (car list) int) 2) 0)
(cons (car list) (same-parity int (cdr list)) )
(same-parity int (cdr list)))))



(This is the output I'm getting):
-----------
(2 3 4 5 6 7)
2
(3 4 5 6 7)
-----------
((3 4 5 6 7))
(3 4 5 6 7)
()
. . -: contract violation
expected: number?
given: (mcons 3 (mcons 4 (mcons 5 (mcons 6 (mcons 7 '())))))
argument position: 1st
other arguments...:
>>
File: cnile.jpg (20KB, 260x343px) Image search: [Google]
cnile.jpg
20KB, 260x343px
>>61084693
Rewrite it in Câ„¢
>>
>>61084773
It's the easiest option really.
>>
>>61084733
>>61084722
i fixed one line and now its crashing when i try to print the empty list (it doesn't crash if i don't delete a node), after showing an absurd number like 40k
sorry if i'm talking shit but doesn't it has to do with variable scopes or something?
>>
>>61084784
Do C programmers use C because they think the speed of C will make up for their shitty algorithm?
>>
>>61084813
>anything thats not C is bloat!
>Who cares i can easily implement that!
>i can just make a macro for that!
>>
>>61084813
This sounds like me when I was just starting out, it's a beginner mistake more than anything else.
Your algorithm would have to be exceptionally shit for it to be slower than an interpreted version though.
>>
>>61084813
Yes
>>
>>61084813
It actually does a lot of the time when your problem isn't a problem where BigO doesn't becomes relevant in the C context (millions of entries).
But no I use C because the requirements I face are high and it's very easy to think about the problems in a C environment.
It's so explicit in C and you've spelled out the inefficiencies after a translation.
>>
>>61084876
>where BigO...
Eh, too tired I think you get the point. BigO has to be relevant in a big way.
>>
File: v.jpg (26KB, 400x400px) Image search: [Google]
v.jpg
26KB, 400x400px
What's the state of the art TSP approximation algorithm?
>>
When writing SIMD optimizations, should I even bother with intel intrinsics?
I feel like I would be better off writing this shit in straight asm.
>>
>>61084937
Tends to be an easier interface for the rest of your code. Depends on how much simd you're gonna write I'd say.
>>
>>61082558

Thanks for asking! Had a pretty productive month.

Wrote game of life simulator in x86 assembly: https://github.com/rpasta42/x86-life

Made a Chess Engine in Haskell: https://github.com/rpasta42/ChessKell

Lisp-like scripting language in Rust: https://github.com/rpasta42/LambdaOxide
Open-GL graphics environment which uses the aforementioned scripting language: https://github.com/rpasta42/skomakare
>>
File: 547575757.jpg (58KB, 720x480px) Image search: [Google]
547575757.jpg
58KB, 720x480px
How would you go about learning to programming if you never the kind of person to read the Manuel when building legos?Iv tried getting through programming books but all the text is just noise till I get to the code example but lose steam as I go on.
>>
>>61084967
>Wrote game of life simulator in x86 assembly
>Made a Chess Engine in Haskell
>Lisp-like scripting language in Rust
>Open-GL graphics environment which uses the aforementioned scripting language

Do you have a job yet?
>>
>>61084978
What are you having trouble with?
>>
>>61084990
If someone put that on their resume I'd probably throw it in the bin unless I was looking for a person to teach these exact things.
>>
>>61084990
>asm
>haskell
>rust
>roll-your-own lisp
>opengl

obviously not
>>
>>61085008
What's it like working retail?
>>
I don't even look at people's side projects before interviewing them

I don't care if you spend your free time programming, gardening, or jacking off
>>
>>61085012
Not the anon you're responding to, but I'm a hiring manager looking for a developer right now.

I wouldn't hire someone who's only played with toys either.
>>
File: 1457156169020.gif (2MB, 255x180px) Image search: [Google]
1457156169020.gif
2MB, 255x180px
>>61082558
Should I program something in C or Rust?
>>
>>61085008
>>61084967

No, I have been without a job for the past month, so working on fun projects.


I hope you guys are having fun killing your braincells with css and java?

>>61085011

So what have you made in the past year (decade?) that's worth showing?

Don't be jelly guys.
>>
>>61085022
>look at this guy, he does unpaid work for free
>he'll do unpaid overtime and he won't complain because he LOOOOVES programming lmao
>>
File: jldcsa.png (118KB, 825x470px) Image search: [Google]
jldcsa.png
118KB, 825x470px
Time has told that when animals become more advanced, it improves them.

So how come when programming languages become more advanced, they get worse?
>>
>>61084978
Youre the physical example kind of learner. But programming still requires extensive amount of reading.
Go get some ADD meds.
>>
>>61085030
>I hope you guys are having fun killing your braincells with css and java?

>I do useless shit, so anyone who criticizes me must be writing CSS

I must say, it's hilarious seeing someone who's unemployed doing nothing but useless trivial shit in inefficient languages.

Do you have rich parents funding your inadequacies?
>>
>>61085023

I implemented a ton of boring, closed-source projects for work, but they're nothing interesting to look at...just dumb, boring business logic.

At my last job, I felt like my life was drained out of me. I'm taking a brake to work on fun projects, so I can remind myself why I originally fell in love with computers - Hacker culture, Lisp, RMS, and tinkering with things.
>>
>>61085047
At least at my company we don't do overtime. I really don't care what my coworkers do outside working hours, it's none of my business
>>
>>61085063
>worse
Maybe in one small capacity that is becoming less and less relevant.

Developer time is quickly becoming vastly more expensive than CPU cycles.
>>
>>61085076
What do you look for in an applicant?
Do you just pick people who don't rub you the wrong way?
Or do you dock people for imagined sleights?
>>
>>61085065

>trivial shit

Do you even code? What's your github bro?

>inefficient languages

define inefficient

>Do you have rich parents funding your inadequacies?

I got several job offers lined-up, but I can afford not to work for few more month so I haven't accepted any of them yet.
>>
>>61085092
People who can demonstrate good programming ability and that we feel we'd get on with

I will dock people if they kick up a fuss about the technical questions I ask not being realistic. Yes, they're deliberately simplified versions of real problems - I only have an hour to talk to you, I don't want to spend half of it giving the background to a problem. I'll also dock people who lie on their resume if I uncover it
>>
Anyone playing around with Solidity for Ethereum Dapps?

The language itself is fairly easy but the dev tools are still pretty buggy sometimes for me.
>>
>>61085136
Note that by good programming ability I mean someone who can design systems and applications themselves, not just implement a spec, they also need reasonable math ability (which I regard as being part of programming ability but I thought I'd better be explicit about it)
>>
>>61085156

What branches of Mathematics are most important to know?
>>
>finally drop the C++ meme
>rewrite all my software in C
>no more waiting 6 hours for one project to compile
>programs run faster
>programs are smaller
>programs use less memory
It's not even that difficult to get used to C memory management apart from the odd hard-to-track memory leak, and C strings are only slightly more annoying to deal with than C++'s shitty string implementation. Why are people still using C++?
>>
>>61085136
I've had a few interviews where I was given technical challenges and I had to ask them to clarify 5-6 times because they didn't explain the problem clearly.
Is this some kind of shit test, or am I supposed to guess what you want?
I was never hired from any of these interviews, mind you.
>>
>>61085025
Do you like pattern matching?
Do you like smart pointers?
Do you like modules?
Do you like lazy iterators?
Do you like ADTs?
Yes? Then Rust
>>
>>61085171
We're you using a makefile
>>
>>61085184

Do you like fighting borrow checker?

No? Then stick with C.
>>
>>61085171
I don't even use C++, but you can cut compile times to almost nothing by recompiling only the translation units that are newer than the target.
Also, an SSD helps a lot, I mean a LOT.
>>
>>61085198
Agreeable
>>
>>61085184
Whichever one doesn't make me want to blow my head off.

Is there something better than fucking make or cmake for C projects?
>>
>>61085212
Yes!
https://doc.rust-lang.org/1.5.0/book/hello-cargo.html
>>
>>61085212
What's wrong with make?
>>
>>61085171
Something tells me you weren't really using C++, but C with classes.
>>
>>61085222
What's the difference?
>muh half assed abstraction templates that becomes unreadable in a week
>>
>>61085167
Algebra, basic stats I guess? High school stuff.

Really I think being comfortable with it is the most vital thing, a significant people just freeze up when faced with math. I don't care if you can't remember high school trig formulae, you can look them up on wikipedia. But you should be able to rearrange equations and do simple calculations without having to think too much, it should be second nature to you. Matrix math, geometry, calculus, complex numbers are all good to be at least familiar with.

>>61085177
I don't mind being asked to clarify the problem I'm being asked. If I really haven't explained something properly then you asking is a good thing.
>>
>>61085212
install D and dub
write your c code
build with dub
>>
>>61085177
Were they reading the problem off a sheet of paper?
You were probably rejected because your answers didn't match what was on their sheet of paper.
HR should NOT be conducting technical interviews by proxy.
>>
>>61085219
How the hell do you get cargo to work with a C project?
>>
>>61085276
How the hell does C have any of these:
>>61085184
>>
/dpt/ should include useful shit on OP like every general
>>
>>61085220
it's a lisp without lambdas
isn't that enough?
>>
>>61085298
/dpt/ is not meant to be taken seriously in the first place
>>
>>61085267
I wish HR departments that use keyword filters would stop it.

So sick of resumes that are nothing but keywords of everything someone's prof mentioned once

And then I say "oh cool, your resume says you know Haskell. What's a monad?" and they say "oh, I don't remember much of it, we only did one module on it in my first year"
>>
>>61085298
/dpt/ isn't a general, it's a daily
>>
>>61085308
>muh "moan ads"
>>61085301
>muh "lamb duhs"
>>
>>61085301
You can always call out to the shell if you want to do weird shit.

It's only good at manipulating lists of filenames in order to dynamically create dependencies required for the target.
>>
>>61085329
fuck yourself
>>
Is Rust ready as a language yet? Or am I just wasting my time with it?
>>
>>61085198
Only stubborn idiots fight the borrow checker. You just have to learn how it works and you'll always know how to accomodate it. Also, Rust has really helpful error messages.
>>
>>61085361
Rust is an over-hyped meme.
>>
>>61085337
>It's only good at manipulating lists of filenames in order to dynamically create dependencies required for the target.
Except that it's literally not even good at this.
The best known way of doing it without making yourself want to vomit uses dependencies that are always one compilation behind. (Makefags will tell you this doesn't turn out to ever matter. They're right, but it's still inelegant.)
Hence the two very big problems I have with make, that jointly constitute the entirety of why I despise it:
1) Its flexibility needlessly exceeds the demands of its use case. There aren't really THAT many different ways to build an application from source files in a directory tree.
2) For all the needless flexibility it grafts onto the build process, it STILL can't do what it needs to do in the best way it can be done: i) check if the source files have changed; ii) if they have, update the dependencies; iii) if there are any new files depended upon, go back to step i with them; iv) rebuild any generated components of the application that need rebuilding; v) rebuild the application from the updated components if any of them are updated.
It really seems like there should be a program that can handle this in a more intuitive, less needlessly flexible, and most importantly more correct way than make can.
>>
>>61085412
You're describing your build process in such an obtuse way that I have no fucking idea what you're trying to say.

You're either doing something very wrong, or you haven't figured out how to wildcard everything away without having to update anything every time you add a file to your project.
Even if your project builds multiple binaries with multiple mains, you can sort out your dependencies any way you want just by piping out to the shell and using sed.
>>
>>61085361
Needs more polishing, but shaping up to be very good.
>>
>>61085447
>Even if your project builds multiple binaries with multiple mains, you can sort out your dependencies any way you want just by piping out to the shell and using sed.
My point is you shouldn't have to do this. There should be a tool that can handle automatic dependencies better than make can -- i.e. without always being one build behind on them.
>>
>>61085447
Also:
>add a file to your project
This isn't what I meant by "new files depended upon." Perhaps a better phrasing would have been "files newly depended on [by the source files checked in step i]."
>>
Is SICP worth anything for an EE, or is it more for the mathfags?
>>
Or just stop using C and use a language with modules
>>
>>61085361
it's really for systems programming, really. not a good fit for applications. what are you looking to do?
>>
>>61085544
Anything and everything. I just love C but also love Rust and can't decide for my life.
>>
>>61085558
Can you not just import Rust's C libs and mix and match what you want?
>>
>>61085361
>>61085544
>>61085558
>write a kernel in rust
>publicly tout the resulting sjw telemetry as a feature
>"our operating system is so safe it won't even let you be racist"
>a man is dumb enough to use this operating system
>men of his intellect are trash
>he is garbage collected by a jew
>one man's trash is a greedy jew's treasure
>especially when that trash is a man because jews are gay
>>
>>61085624
who are you quoting?
>>
File: Danny_DeVito_by_Gage_Skidmore.jpg (15KB, 170x202px) Image search: [Google]
Danny_DeVito_by_Gage_Skidmore.jpg
15KB, 170x202px
>>61085624
>ahm da tresh mayn
>ah eat gaaahbaj
>>
File: (you).jpg (101KB, 1300x957px) Image search: [Google]
(you).jpg
101KB, 1300x957px
>>61085624
>>
File: ec6.jpg (39KB, 500x380px) Image search: [Google]
ec6.jpg
39KB, 500x380px
>>61085645
>>61085624
>>
>>61085624
4chan should really enforce >>>/global/rule/6
>>
>>61085654
if this happened 4chan would cease to exist entirely
>>
File: every day.png (1MB, 760x839px) Image search: [Google]
every day.png
1MB, 760x839px
>>61085624
>>
>>61085624
>>61085717
please i need to know so i can fap
i'm not slacking off, my code's compiling
(not slacking, just jacking LOL)
>>
>>61083671
>CB is ass for D
D looks like a nice lang but is hampered by its shitty standard library and debugging support.say what you want about Java or C# but both those languages have massive libraries and can be properly debugged without resorting to VS.
>>
>>61085624
>he is garbage collected by a jew

rust doesnt have garbage collection
>>
>>61085815
rust does too have garbage collection
it just runs on actual real life objects instead of virtual objects
it's called the jews
>>
>>61085812
>d by its shitty standard library
???
D has a very impressive std, desu. What dont you like about it?
> and debugging support.
https://wiki.dlang.org/Debuggers
You dont need VS to debug D, people just use it because its the one enterprise gem that came out of MS.
>>
>>61085829
For some reason, I recall jumping through some weird hoops to parse bytes of a file. Could have just been me being retarded though.

>its the one enterprise gem that came out of MS
Good lord don't say that. VS is a piece of bloat to me.
>>
>>61085945
I meant, specifically its debugger.
>to parse bytes of a file
std.file.slurp?
>>
>>61085970
I'll reiterate in saying that I may have been slightly retarded. I remember looking at documentation and I just remember reading a bunch of random lines of code. Idk, I feel like I'm in the wrong here. Maybe I'll try D again one day.
>>
>>61086071
No problem lad.
Even though the std is nice and small compared to many, its still a jungle, and even has its fair share of shit. As well as its still volatile in many places so you may have been right at the time.

D is nice though, youll probably like it if you ever wanted to kill yourself using C++ or wish C# had more.
>>
>>61084769
You can't really. The . notation is making a list out of the stuff you put in. Second time you call it it makes ((3 4 5 6 7)) and (car list) is (3 4 5 6 7) so (- (car list) 2) doesn't make sense.
Better to use another procedure to filter since that's really all the function does.
>>
File: 1498287226207.jpg (72KB, 644x853px) Image search: [Google]
1498287226207.jpg
72KB, 644x853px
okay nerds gimme a quote
I need an LZSS compressor
• dictionary size 2047 bytes and maximum length of 33 and minimum of 2 bytes, pseudo-RLE possible.
• bitflag is two bytes where 11 bytes are for offset and 5 for length
• once encoding is done, a two-byte little-endian word that denotes the total uncompressed size is pushed to the very beginning of the file
• once that's done, a single byte of $01 is pushed to the very beginning of the file

pls hlp
>>
>>61086579
Stand properly, little girl.
>>
>>61086625
yeah you gotta ask, what could possibly be going through her head to make her do that? like, what context

>>61086579
quote on what? time? cost? the first depends on the developer, and the second depends on more than just the developer
>>
>>61086656
>quote on what? time? cost? the first depends on the developer, and the second depends on more than just the developer
quote, meaning:
>how much paypal money i must give to you to get the tool in a week max
>>
>>61086579
>>61086579
slut
>>
>>61082558
C++ will never be replaced.
>>
>>61086755
Its getting chipped at from all sides, desu.
In the coming decade its going to face a decline i think.
>>
>>61086697
why can't you just learn how do your own homework like you'll need to in the real world? I would want too much money for it to be worth it to you I'm sure. the answer is it depends on a lot of things
>>
>>61082648
>she

As for linux debugging, gdb, valgrind and printf. What else would you need?
>>
>>61086788
Doubtful. You think any maintainer of a big C++ project is going to want to spend the time (and likely money) to migrate thousands of lines of code to another language? It'll be a last resort.
>>
>>61086826
Big bases rarely get ported all at once though. Its a gradual thing.
>hey this language is pretty cool
>okay we can incorporate it to see what happens
>lets do another thing with that language
>repeat until they eventually start porting base systems

Just like with Mozilla and Rust.
>>
>>61086825
And if you're a brainlet just get a good gdb frontend
>>
>>61086792
>why can't you just learn how do your own homework like you'll need to in the real world?
this isn't homework, i'm not a programmer, i just need a tool that does compression in a particular way
>I would want too much money for it to be worth it to you I'm sure.
okay
>the answer is it depends on a lot of things
okay
>>
>>61086853
We'll see. I wouldn't mind seeing C++ go. However, I think there is a bit of a race between languages like D and Rust becoming more mature and gaining industrial support, and the amorphous C++ blob just shoehorning the hot trends of the day into its featureset. Then again, a lot of industrial C++ is probably stuck 10-20 years in the past.
>>
>>61086904
I think D and Rust are already diverging into their own niches. But C++ just Trapperkeepering everything will be its actual death. Its kind of funny it actually has the D runtime now.
>>
>>61086864
>this isn't homework, i'm not a programmer, i just need a tool that does compression in a particular way
then what is this for? your directions are really specific.
>>
>>61085077
>Developer time is quickly becoming vastly more expensive than CPU cycles.
Not for too long tho, we are reaching to the limts of processing power, and the bloat has to stop when we hit that celing.
>>
>>61086960
The compression format for an SNES game was cracked recently
>>>/vr/4045603
https://github.com/gewballs/pocky

Extracting stuff seems trivial but recompression is beyond my understanding.
I can copy and paste stuff from a hex editor to the ROM and recalculate the pointers, sure, but getting that LZ'd data from my raw data is the bottleneck.
>>
>>61087076
current processing power*
Technology rarely follows KISS.
Were gonna get more power so the bloat can run better.
>>
>>61087129
oh, that's interesting. sorry I can't be more help, but my job is time consuming. among people who understand algorithms like LZ variants, they probably are already capable of getting high paying CS jobs, so just keep that in mind before trying freelancing sites. (unless compression is something they dove into early as a specific thing) I'd also be wary about getting code which conceptually implements LZSS with those size parameters but in some way outputs a slightly different format than the ROM expects. worst case, it might end up that a successful implementer has to read the rom's decoding routine.
>>
https://github.com/orangeduck/Cello
>>
>>61087428
>
Polymorphic Functions
Interfaces / Type Classes
Constructors / Destructors
Optional Garbage Collection
Exceptions


Look at all that POO
>>
This is truly awful.
Why dont people realize you cant staple major features onto a language that wasnt built for them
 /* Iterate over indices using "range" */
foreach (i in range($I(len(items)))) {
print("Item Range %i is %i\n", i, get(items, i));
}

/* Iterate over every other item with "slice" */
foreach (item in slice(items, _, _, $I(2))) {
print("Item Slice %i\n", item);
>>
What is the correct way to use other applications within your application?

Eg, I have a java program that does 99% of what I want, but I need to make a c++ application which uses the data.
The proper way seems to be using JNI and take all the java code and write a bunch of handlers to handle the code and prevent garbage collection.
But since all I need is to redirect the console output from the java part to a stringstream object in c++, is there an easier way?
I have the compiled java part available and I don't plan to do anything to interact with this part at all.
>>
working on my javascript free chat
>using http long polling to get new messages and put them realtime in the html body
>embedded images and videos
>no messages saved
>user roleplay actions and emojis
>>
>>61087493
>foreach (i in range($I(len(items)))) {
> print("Item Range %i is %i\n", i, get(items, i));
> }
based
>>
>>61087493
That actually looks nice. I don't see any proper arguments of you calling it "awful"
>>
>>61087758
>unironically defending
(item in slice(items, _, _, $I(2)))


If it wasnt c youd be shitting on it.
>>
>>61087799
Do that in C
>>
>>61087810
Dont know C well enough to hack it in.
In D its just
 auto r = [1,2,3,4,5];
stride(r,2).writeln;


[1, 3, 5]
>>
File: 1492831891533.png (341KB, 556x561px) Image search: [Google]
1492831891533.png
341KB, 556x561px
>>61087906
Get the fuck out of here, you subhuman necrophile scum.
>>
File: 1464231076716.jpg (44KB, 600x476px) Image search: [Google]
1464231076716.jpg
44KB, 600x476px
>>61087906
you mean
r 
.stride(1)
.writeln;
>>
>>61087915
Nani?
>>
File: 1494363339754.png (441KB, 3555x2198px) Image search: [Google]
1494363339754.png
441KB, 3555x2198px
>>61087915
>autistic metdown
>>
>>61087918
You mean
 stride(iota(1,6),2).writeln;
>>
File: 1494328224797.png (115KB, 600x315px) Image search: [Google]
1494328224797.png
115KB, 600x315px
>>61087447
>>61087493
Oh no, some useful features that may reduce tedious task
>>
File: help-153094_1280.png (438KB, 1280x1074px) Image search: [Google]
help-153094_1280.png
438KB, 1280x1074px
>>61082558
I have a programming test in C for some company. What should I be prepared for?
>>
File: ddd.png (32KB, 668x423px) Image search: [Google]
ddd.png
32KB, 668x423px
>>61083834
lambda calculus is comfy because its so logically structured and makes sense like the purelisp and s c h e m e s

for the mentioned books check:
ilammy.github.io/lisp/z1_bibliography.html
>>
File: stack.png (118KB, 781x910px) Image search: [Google]
stack.png
118KB, 781x910px
this site is almost as garbage as reddit
>>
>>61087982
[McC78b] John McCarthy. A micro-manual for LISP – Not the whole truth // ACM SIGPLAN Notices. — 1978. Vol. 13, iss. 8. — P. 215–216.


worth the read its 2 pages yet explaines lisp pretty well
>>
>>61087992
reading is hard anon, who has time for knowledge when you can just skiddie stuff in.
>>
>>61088052
time is a valuable thing
watch it fly by as the pendulum swings
>>
>>61082596
Don't reply to him, he is the io faggot.
I wonder how is he not banned.
>>
my language has assembly-like syntax and it's pretty for the most part, but i don't have a clue on how to make array, hashmap, set and struct definitions look decent. any ideas?
>>
>>61087992
i am firmly convinced that of any programming community online, and i'm including HN, leddit, even fucking random forums, nothing comes even close to the cancerousness of stackoverflow/stackexchange
>>
>>61088232
Im sure some literal pajeet c++ or JS forum could be close.
>>
File: inheritance.png (3KB, 359x325px) Image search: [Google]
inheritance.png
3KB, 359x325px
Why the fuck does Doxygen botcher my inheritance graphs for latex? Pic very much related.

The text looks like a heavily downscaled and aliased.
>>
File: 9780672329784.jpg (7KB, 137x205px) Image search: [Google]
9780672329784.jpg
7KB, 137x205px
>>61082558

python

got this book to help because I like to support books
>>
I really like programming stuff, but I can't imagine being an enterprise programmer writing boilerplate java or writing shitty web backends in php.
What are areas where I could deal with interesting stuff, that don't get too boring after a while?
I was thinking about embedded, security or data """scientist""", are these really not mundane?
>>
>>61082821
Is it written for uzebox or what?
>>
File: Display_8h__dep__incl.png (6KB, 308x216px) Image search: [Google]
Display_8h__dep__incl.png
6KB, 308x216px
>>61088448
works on my machine, the problem is probs with your latex
>>
>>61088505
shiet, truly the worst kind of bug. Time to read some doxygen logs.
>>
>>61088482
The only way to really have fun and do what you want is to either:
>be self-employed
>be a phd and coast with grants
>start your own side-project and hope it gets picked up by a big corp for funding
>>
>>61087992
>can't read date
>>
>>61088448
stop writing Greek
>>
>>61082648
>Some anon said he didn't even use any IO when she writes software.
You fell for a meme

>I asked about Linux debuggers and it seems nobody in the thread uses any
The only "debugger" that I use is the gcc sanitiser.
>>
>>61087933
>what is realloc
>>
desu ive always used print debugging.
Dont even use breakpoints.
>>
>>61082648
>How do people write large programs (50k lines+) without debugging tools?
They don't.

>Some anon said he didn't even use any IO when she writes software.
That's a Haskell meme.

>And what's the best Linux debuggers (C++/C primarily but any language is fine).
GDB
>>
>>61088670
>continuous memory area
>array
They aren't the same thing, you know. You can't realloc the stack for example.
>>
>>61088603
Yeah, at first I was puzzled. The top one actually should say "buffer<double>" and you can sort of make it out.
>>
>>61087931
nigga wtf learn my style already!
>>
>>61088799
No, i will never accept it.
It looks obnoxious most of the time.
>>
>>61088811
my style gives you line to line correspondence so you know where in the chain you fucked shit up
>>
>>61088819
I dont like extended UFCS chains.
I will never have one long enough to warrant having to comment debug.
>>
>>61088689
int n =  5;
int (*heap_arr)[n] = malloc(sizeof *heap_arr);
>>
File: Capture.png (52KB, 861x311px) Image search: [Google]
Capture.png
52KB, 861x311px
the price of freedoms
>>
>>61088914
Based GPL
>>
>>61088914
>using a cuck license
>>
>>61088914
I can contribute a patch to a GPL project, then since I still am the author/copyright owner of my contribution, I can take it by itself outside of the GPL project and distribute it under a different license though?

At least I doubt any restictions on that would hold up in court, if your code by itself does not interact with the original GPL project in any fashion.

Not to mention if you have a GPL project I see no reason if you are the sole author you could not distribute a version of your product under a new license.
>>
>>61089017
But i dont use GPL
>>
>>61082648
There is several potential problems with your program and they all have different "best" ways to be detected / corrected.

The simplest is gdb.
You can step through your code to see what is going on and you can pause and print values to probe around your code.
This is good if you know that there is an error and you can reproduce the setup to this error.

There is also valgrind.
This is good if you have any problems relating to memory.
A tool I really love is massif. I often use this with the massif visualizer so I get a nice looking graph of my heap.

While not a tool, logging is always a good way to find problems in your program.
This way, you print out variables in a way that makes sense to you and then you look at what leads up to the errors.
When you do this, set flags in your cmake (or whatever you use) to remove different tiers of logging so the end product doesn't spam the user.
The last method is documentation.
In C/C++ the normal method is to write the documentation in the header files, usually with javadoc style comments so you can make a doxygen site with pretty documentation and sometimes just to have a standard for how to document stuff.
Important stuff that seems self explanatory might not be a year later or to another person who uses your code.
eg:
/**
* @brief inCollision:
* Function to check if any objects in the scene is in collision using the bounding box method.
* @var scene - the scene to test on.
* @return true if there is a collision, false if there is no collison
*/
bool inCollison(const workspace &scene);

Here, it is clear what the function does, what it returns and what method is used.
You don't need to test this part of your code when after you have read this comment and checked the code does what the documentation says.
Programming languages which does not use headers does not have an easy way to do this, and I often see people skipping this.
Javascript is often never documented as it slows down the site.
>>
>>61089023
>I still am the author/copyright owner of my contribution,
>it under a different license though?
As long as that license doesnt break GPL. But code-ownership doesnt exist in GPL-land.
>>
>>61089023
>tl;dr can I redistribute my own code under a different license?

Yes, but the initial distributed version will still be GPL though. You can't retroactively apply a different license, but you can change the license for all new versions of your own code.
>>
>>61089049
>Yes, but the initial distributed version will still be GPL though.
yeah that is obvious to me
but with stuff like affero I was worried about how delusional some GPL-zealots are
>>
>>61089045
>But code-ownership doesnt exist in GPL-land.
but it does
if you wish to relicense you have to contact all the contributors to have them agree to it, even across GPL-versions if the original GPL license used did not permit for using later versions.
>>
>>61089071
Ownership implies privacy.
There is no privacy with GPL because thats the very thing it doesnt want.
>>
>>61082579
when applying for cs internships what topics, other than the obvious work experience and school, should go on the resume? Also how knowledgeable do companys expect you to be for an internship?
>>
>>61089062
There are some that will argue against this and claim that your own code is a derivative work of the original GPL code, and therefore must also be GPL'd. It's kind of a gray area, but as long as you are the original author and you retain the copyright.

This is part of the reason why the FSF encourages transferring the copyright to them (the other part being that only the copyright holder can take legal actions against suspected license violations, and another part being documentation and recordkeeping).
>>
>>61089081
are you arguing semantics or are you arguing what was implied?
>>
>>61089097
>but as long as you are the original author and you retain the copyright
... you are free to change the license as you see fit.
>>
>>61089101
I think we are both arguing it because i dont see authorship the same thing as ownership.
>>
>>61089117
An author is not necessarily the copyright holder though.
>>
>>61089126
thats exactly my point.
You may be the author of GPL code, but you are not the owner because there cant be one. Or its title only under GPL. Which is my original point. It doesnt matter though, no sane person should use a viral license anyway.
>>
>>61089151
>You may be the author of GPL code, but you are not the owner because there cant be one
That's wrong. The very first line of the license declare who the copyright holder is.
>>
>>61082558
Anyone help me out here? Why is this printing null? What am I missing here?
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


public class RingingCentre {
private Map<Bird,List<String>> observationList;

public RingingCentre() {
this.observationList = new HashMap<Bird,List<String>>();
}

public void observe(Bird bird, String place) {
if(observationList.containsKey(bird))
observationList.get(bird).add(place);
else{
observationList.put(bird,new ArrayList());
observationList.get(bird).add(place);
System.out.println(observationList.get(bird)); // <--- prints the list

}
}

public void observations(Bird bird) {
System.out.println(observationList.get(bird)); // <-- prints Null

}
}
>>
>>61089265
probably scope difference
t.stopped java right after hello world
>>
>>61089301
private LinkedList<Vehicle>ListV;
public Vehiclelist
this.ListV = new LinkedList<Vehicle>;
int total=0;


What am I doing worng here? Looks alright but eclipse is still giving me a fuck you.
>>
>>61089466
No idea lad, whats the error message?
>>
>>61089466
At the third line:

Multiple markers at this line
- Syntax error, insert "( )" to complete Expression
- Syntax error on token "ListaV", VariableDeclaratorId expected after this
token
- Syntax error on token "this", delete this token
- Syntax error, insert "( )" to complete ClassInstanceCreationExpression
- Syntax error, insert ";" to complete FieldDeclaration
>>
>>61089503
Meant for >>61089492
>>
>>61089466
>>61089492
>>61089503
>>61089508
Nvm put the damn thing in the constructor and it was fixed
>>
>>61088487
I wrote it using BBC Basic, for the Brandy interpreter on Linux
>>
Anyone who has written code to dynamically generate HTML output please reply to me
>>
>>61089615
Templating (ie. Handlebars) isn't enough for you?
>>
>>61089028
>Javascript is often never documented as it slows down the site.
Production code is usually minified.
>>
New thread >>61089756
New thread >>61089756
New thread >>61089756
>>
>>61086140
Alright. That's sort of what I was thinking, but wasn't sure if I should do that.
Thanks, though!!
Thread posts: 323
Thread images: 46


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

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.