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

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: 334
Thread images: 37

File: timetocode.webm (2MB, 1152x648px) Image search: [Google]
timetocode.webm
2MB, 1152x648px
This is /dpt/, the best subreddit of /g/

Umaru-chan edition, the best of all editions.

In this thread:
r/programming
r/compsci
r/ReverseEngineering
r/softwaredevelopment

/!\ ** Read this before asking questions ** /!\

http://mattgemmell.com/what-have-you-tried/
http://www.catb.org/~esr/faqs/smart-questions.html


What are you working on?
>>
Rewriting IDA Pro in Rust.
>https://github.com/das-labor/panopticon
>>
File: 1493422689490.png (439KB, 1024x768px) Image search: [Google]
1493422689490.png
439KB, 1024x768px
A good programmer doesn't really need general recursion.
>>
>>60527141
>both library and Qt gui in a single crate
Shit.
>>
I wonder why it's not printing dots (.)
import std.stdio;
import std.getopt;

void main(string[] args)
{
string ext;
getopt(args, "f", &ext);
foreach (arg; args[1..$])
{
writeln(arg.without(ext));
}
}

string without(string word, in string filter)
{
string result;
foreach (index, character; word)
{
if (character != filter[0])
{
result ~= character;
}
else if (word[index..$].length <= filter.length && word[index..$] == filter)
{
break;
}
}
return result;
}


./stripextension -f .abc aci.ci.abc ckse didc.cice.abc io
acici
ckse
didccice
io
>>
>>60527170
Oh I get it
>>
>>60527170
what language is that??
>>
>>60527215
D(ead)
>>
>>60527215
D
>>
File: Kotlin-logo.png (4KB, 152x151px) Image search: [Google]
Kotlin-logo.png
4KB, 152x151px
Now Goolge has officially embraced Kotlin, can we finally agree Go is dead?
>>
File: dlang_chan.jpg (139KB, 470x545px) Image search: [Google]
dlang_chan.jpg
139KB, 470x545px
Threadly reminder that dlang-chan is not dead; she's going to have her GC tumor removed (eventually); and she's super duper cute and easy to prototype in! Say something nice about her, /dpt/!
>>
>>60527170
Try using Rust.
>>
>>60527227
why is the syntax a frankenstein of the worst pieces from other languages
>>
>>60527237
Rust is too verbose for me. D is the perfect sweet spot
import std.stdio;
import std.getopt;

void main(string[] args)
{
string ext;
getopt(args, "f", &ext);
foreach (arg; args[1 .. $])
{
writeln(arg.without(ext));
}
}

string without(string word, in string filter)
{
string result;
foreach (index, character; word)
{
if (character != filter[0])
{
result ~= character;
}
else if (word[index .. $].length <= filter.length && word[index .. $] == filter)
{
break;
}
else
{
result ~= character;
}
}
return result;
}
>>
File: 1493561022817.jpg (94KB, 771x720px) Image search: [Google]
1493561022817.jpg
94KB, 771x720px
What assembly should I learn?
>>
>>60527295
Web
>>
I hate all of you.
>>
>>60527303
Please shut up.
>>
>>60527304
I hate myself already, thanks.
>>
Would it look bad to have multiple short stints at jobs on my resume? I'm talking like 6 months for each. I've heard it doesn't look as bad in the programming sector.

I kind of want to shop around and try different work cultures / development projects to see what I actually like doing, but I'm scared it will make me look really shitty.
>>
File: kot_blini.jpg (177KB, 1124x1024px) Image search: [Google]
kot_blini.jpg
177KB, 1124x1024px
>>60527227
>Kot(b)lin(i)
At last I truly see.
>>
>>60527295
none
>>
>>60527356
This isn't a good answer.
>>
>>60527295
arm first for sanity then x86
>>
>>60527374
there no point to learn assembly today
>>
>>60527329
Kind of a red flag since you could be lying about what really went down. safer just to not include anything on your resume less than 2 years. Just say all that experience you got as a hobby and your really passionate.
>>
>>60527410
Actually it can be helpful to be able to read assembly sometimes, there's no point to learn to write assembly tho.
>>
>>60527383
What assembler should I use?
>>60527410
Why is that? I just want to learn it purely out of interest. I don't care if you deem it "useful" or not.
>>
>>60527434
Writing tight-looped functions in asm is a good way to optimize, also debugging/writing a compiler
>>
>>60527449
go the middle way and learn LLVM IR
>>
>>60527449
>Why is that? I just want to learn it purely out of interest. I don't care if you deem it "useful" or not.

assembly is really useful if you plan to

- implement a compiler
- implement an emulator
- reverse engineering

outside of these, avoid assembly.

If you still want to learn assembly, then learn x64 which is the best (after VAX but VAX is now dead)
>>
>>60527449
Modern assembly is difficult as hell and not useable in any real-life situations. Learn latin instead, it's slighly more useful in real-world scenarios.

>>60527460
>Writing tight-looped functions in asm is a good way to optimize
In 99.9% of cases the performance benefits woudn't be worth the time spent.
>also debugging/writing a compiler
Why? The internet is full of good compilers, there's no need to write one yourself.
>>
>>60527460
> Writing tight-looped functions in asm is a good way to optimize
Modern compilers are much better at it than humans, t b h, the only corner case being some advanced vectorization with sse/avx.
>>
>>60527460
>Writing tight-looped functions in asm is a good way to optimize
wrong on so many points
>>
File: 9YmKi4i.jpg (319KB, 1506x2048px) Image search: [Google]
9YmKi4i.jpg
319KB, 1506x2048px
>>60527517
>being some advanced vectorization with sse/avx
compiler intrinsics
>>
>>60527449
It doesn't matter much. Just use the gnu assembler. The important thing for beginners is to get a real book. This is an decent one:
https://www.amazon.com/Raspberry-Assembly-Language-RASPBIAN-Beginners/dp/1492135283/ref=sr_1_1?ie=UTF8&qid=1495445178&sr=8-1&keywords=raspberry+pi+assembly+language
Internet is good for getting bits and pieces but when you don't know the rituals and keywords it's a lot faster and less painful to start with a guided introduction.
>>
>>60527527
Well, you're right, but I personally find asm code clearer than intrinsics-heavy C code. And in the end, you still have to know asm to use intrinsics.
>>
>>60527591
no, you just have to read the api manual**. intrinsics are type safe, work with variables, manage the registers for you, ...

** https://software.intel.com/sites/landingpage/IntrinsicsGuide/
>>
>>60527501
>learn x64
No such thing.
>>
>>60527510
>In 99.9% of cases the performance benefits woudn't be worth the time spent.
depends on the sort of work you're doing. Obviously big o is easier and more important but rewriting one or 2 functions in asm can make a huge difference. Also understanding how a machine works is useful for grokking languages like c++ that are designed around writing code that's compatible with the machine.

>>60527517
>Modern compilers are much better at it than humans
libraries are so slow it's depressing

>>60527520
please explain
>>
>>60527235
>>60527170
Alright I'll take the bait.
Can you recommend any good Dlang resources or tutorials?
>>
>>60527689
>Can you recommend any good Dlang resources or tutorials
Yes.
https://funerals.org/
>>
>>60527689
the book "Programming in D"
and the official documentation.
>>
>>60527678
>please explain
There's no valid explanation. The "compilers are better at optimizing than humans" myth is only valid on large scale. As Carmack said, you should go buy a lottery ticket when a compiler successfully implements your code using SIMD extensions.
>>
>>60527689
https://www.goodreads.com/work/quotes/646592-better-never-to-have-been-the-harm-of-coming-into-existence
>>
>>60527689
https://rust-lang.github.io/book/second-edition/index.html
>>
>>60527669
yes. x64 is the base instruction set.

implementation of x64 are amd64, intel64, via64 where each of these have their own extensions.

if you restrict yourself to x64, your code will run on any x64 compliant cpu.
>>
>>60527715
Thanks
>>
>>60527157
There is no difference between a recursive and a computable function. You can write a recursive version of any algorithm.
>>
>>60527719
reminds me of this:
>One of the things that I believe is a very big issue in software engineering is the fact that most programming languages force programmers to work out detailed knowledge about their systems in their minds, then write their programs omitting most of that detailed knowledge, and then make the compiler/development tools attempt to recompute the information that they knew in the first place.

>For example, when I was in grad school, one of the very hot research areas was compilation of scientific code for massively parallel execution. The main focus area was doing work on numerical arrays in Fortran – looking at Fortran code, analyzing it to determine the data dependencies, and then using the dependency information to figure out how to generate the fastest possible parallel code that respected those dependencies.

>The crazy thing about this was that the people who wrote scientific code for those compilers usually knew what the dependencies were. They generally knew how they wanted the code to execute. And so they were spending tons of times learning how the compiler was going to analyze it, so that they could write their code in a way that would result in the compiler generating the code they wanted it to. So they were starting with the knowledge of how they wanted the code to be parallelized. But they couldn’t write that down in the program explicitly. They had to figure out how to implicitly encode it to get the results they wanted, because the language didn’t let them express their knowledge.
>>
>>60527741
>shillling Rust
strangle yourself
>>
>>60527678
>please explain

an optimizing compiler is able to inline, to unroll, to move the invariants, and even to parallelize through technologies like OpenMP
>>
I enlarged this for you.

t. waifu2x
>>
>>60527774
#[no_strangle]
>>
>>60527774
Eh
Id actually use Rust instead but it forces too much punctuation.
D has the most elegant syntax, specially compared to C and C++
>>
>>60527767
A language which can implement every computable function is already trash though.
>>
>>60527782
I wanna fug R-chan, Ruby-chan, C-chan and Scala-chan~
>>
>>60527782
Why PHP is so fat, and why doesn't she look like it?
>>
>>60527809
> I choose languages based on punctuation
Why don't you use Lisp then?
>>
>>60527809
>specially
especially*
>>
>>60527835
Too slow, speed is also a factor
>>
>>60527782
Ruby > PHP > AS > VS > Scala > Shell > C# > R > Java > JS > Python > C++ > C > Perl
>>
>>60527777
nice quads. An optimizing compiler is great and especially useful at scale but I don't see how that would invalidate rewriting critical parts in asm. It doesn't take godlike abilities to beat the compiler, just breaking the abi where it's not needed can make a big difference. It's nice not having to push 5 more registers to extremely slow memory millions of times more than necessary.
>>
>>60527777
nice
>>
>>60527741
Why'd someone take the worst parts of C++ syntax and make a new language out of it?
>>
>>60527906
>Mozilla devs
>>
>>60527861
today optimizing compilers are very good

https://godbolt.org/g/9OIRwW
>>
$basename wasn't unix enough so I broke it down to two separate programs (basename and stripextension). Currently rewriting cat
import std.stdio;

void main(string[] args)
{
if (args.length == 1)
{
read_and_print();
}
else
{
concat_and_print();
}
}

void read_and_print()
{
while (true)
{
readln().write();
}
}

void concat_and_print()
{
//get flags
//foreach line in file in files: print
}
>>
>>60527967
They are. I'm gonna go to bed now sorry but goodnight.
>>
>>60527906
>languages are made out of syntax
Found code artisan.
>>
>>60527999
Looks very complex, Anon!
>>
>>60528021
I prefer readability, otherwise I'd use brainfuck
>>
>>60527999
Stop posting useless languages
>>
>>60527782
How do I into Perl
>>
>>60528071
You don't, it's dead.
>>
>>60528092
Ok, what's the oldest language people still use?
>>
>>60528061
Srop making pointless requests
>>
>>60528108
Fortran.
>>
>>60528115
Stop living
>>
hey /dpt/ will i get a job even if im autismo?
>>
>>60528071
perl 6 looks great but i would even say it does look too great; i am too lazy to learn everything needed to use it at its maximum. it's like the emacs of programming languages.
>>
>>60528139
maybe
>>
>>60528149
:^(
>>
What language should I learn for web design?
>>
>>60528257
Go
>>
>>60528257
>>60528302
>web "design"
Not programming related.
Take such trash to >>>/g/wdg/ or >>>/b/
>>
>>60528257
javascript
>>
>>60528328
Not programming or programming related.
Discuss it on >>>/g/wdg/ or even >>>/b/
>>
>>60527157
Indeed. Any recursive function one might need can be implemented iteratively by constructing a variadic tree.
>>
>>60528019
Found the illiterate retard.
>>
>>60528108
COBOL
>>
>>60528019
>>60528356
>arguing
Found the assmad manchildren.
>>
>>60528369
Hello! It seems you got lost. Here, don't thank me >>>/b/
>>
>>60528337
>Indeed. Any recursive function one might need can be implemented iteratively by constructing a variadic tree.
ISHYGDDT
>>
File: download (2).jpg (6KB, 262x192px) Image search: [Google]
download (2).jpg
6KB, 262x192px
>>60528389
> >>>/
found the >>>/trash/
>>
>>60528337
depth first search is recursive you fucking retard
>>
>>60527117
I'm trying to learn Go for both web and software dev, any tips?
>>
>>60528445
Stop wasting your time, even Google has dropped it and switched to Kotlin.
>>
recursion is a Jewish trick
>>
>>60528404
im-the-snake-in-my-boot.jpg
>>
I don't think I've quite understood Rust's module system yet. In Java it's one file per class. Am I right in saying that in Rust it's one file per module?
>>
>>60528422
So? DFS can be done iteratively.
>>
>>60528335
of course it's programming. would you say that javascript is not a programming language?
>>
>>60528475
No, you can define modules anywhere you like, see https://manishearth.github.io/blog/2017/05/14/mentally-modelling-modules/ .
>>
File: kon112.jpg (30KB, 640x480px) Image search: [Google]
kon112.jpg
30KB, 640x480px
>tfw to dumb for java
My head literally starts hurting everytime I try to think of the logic for a method. Usually takes me 15 minutes but by the end of it I feel like I'm going to pop a blood vessel. Help me, lads.
>>
>>60528422
struct variadic_tree {
void* data;
struct variadic_tree* parent;
struct variadic_tree* children;
int child_count;
int discovered;
/* all discovered must be
initialized to 0 before
calling dfs */
};
void dfs(struct variadic_tree vt,
void (*preorder)(struct variadic_tree*),
void (*postorder)(struct variadic_tree*)) {
struct variadic_tree* origin = vt;
origin->discovered = true;
preorder(origin);
for (;;) {
int i, c = vt->child_count;
for (i = 0; i < c; i++)
if (!vt->children[i]->discovered) {
vt = vt->children[i];
vt->discovered = true;
preorder(vt);
break;
}
if (i == c) {
postorder(vt);
if (vt == origin) break;
vt = vt->parent;
}
}
}
>>
>>60528552
>Help me, lads.
>>
>>60528569
C is such an ugly language.
>>
>>60528569
>Needing a pointer to the parent
>Needing a "discovered" flag
You're not making a good argument for iteration.

>>60528595
You can write nice looking C. He just seems adverse to whitespace for some reason.
>>
>>60528552
>>60528588
Fucking hit send too quick there...

Try solving the problem by hand using very simple steps. Write out all the steps you took to solve the problem. Now write those steps in code. Don't care if it's inefficient right away, just get the program working and optimize later if you need to.
>>
>>60528337
It doesn't have anything to do with being "iterative" or "recursive". A for loop is general recursion.
>>
>>60528458
>Google has dropped it
[citation needed]
>>
>>60528569
>void* data;
>>
>>60528458
Google embraced Kotlin for Android because Android Java can't catch up with modern Java for some reason. It has nothing to do with Go, JetBrains are the ones who's gonna try to shill Kotlin for backend stuff
>>
File: 00Fytvf.jpg (659KB, 1920x1080px) Image search: [Google]
00Fytvf.jpg
659KB, 1920x1080px
>>60528618
THanks anon
>>
>>60527157
Disagree. This is just another way smug elitist types / autists have found to feel superior to the masses.
>>
File: 1258214881798.jpg (29KB, 489x391px) Image search: [Google]
1258214881798.jpg
29KB, 489x391px
>>60528458
I think google embraces Kotlin for Android because they got a mad Oracle at their backs for stealing Java code.
>>
>>60528655
I am not seeing the problem with using void* data in a data structure in c.
>>
>>60528688
But it's true. I realize that being a poor programmer, you may lack the cognitive capacity to understand this.
>>
I am so jealous of Discord/Slack fags tbqh, 45 million users, billions of dollars, god damn it. For redesigning IRC with javascript
>>
>>60528733
Elaborate. What makes general recursion not ever needed if you are a "good programmer"?
>>
File: 1493870273764.png (302KB, 1920x1080px) Image search: [Google]
1493870273764.png
302KB, 1920x1080px
I unironically want to do something like this.
Could anyone assist me in finding the resources to go about creating some of the stuff on here?
I'd be greatly appreciative.
Thanks in advance, and have a great evening, gents.
>>
>>60528765
>For redesigning IRC with video games and memes
ftfy
>>
File: ERRRR, ERRRR, ERRRR, ERRRR.png (1MB, 1487x1371px) Image search: [Google]
ERRRR, ERRRR, ERRRR, ERRRR.png
1MB, 1487x1371px
>>60528802
>Could anyone assist me in finding the resources to go about creating some of the stuff on here?
did you even read the fucking text on the side of the image that tells you how to find resources to go about creating some of the stuff on there?
>>
>>60528802
>i want help deciding what to do
>i want help doing it
>>
>>60528802
There's literally a how-to guide in the right part of the image. Jesus fucking christ, do you need it to be spoonfed to you? Need somebody to write a bullet point list of all the steps needed to solve each problem?
Part of the fun is figuring out how to solve it on your own too. That's where the real learning and experience building comes in.
>>
>>60528728
unsafe, tedious
>>
>>60528803
>hurr I don't know anything about Javascript other than what /dpt/ circlejerkers told me!
>>
>>60528802
I'm replying to call you a retard, but other anons already summed up why you should consider suicide.

That being said, I'll make an attempt at whatever I roll with this post.
>>
>>60528775
In everyday programming you don't really need to be able to compute every computable function.
General recursion is useful mainly for research purposes, but that doesn't make you a "good programmer". Retards such as yourself think it does though, and that's mainly why it has become so popular among your kind.
>>
>>60528855
>Javascript
>hurr
Fuck off. Your ""people"" aren't welcome here.
>>>/g/wdg/
>>>/v/
>>
>>60528860
Read that everybody? If you ever use recursion at all for any purpose outside of academia / research than you are a shit programmer. Welcome to /dpt/. Also smug anime image.
>>
>>60528828
I read, but I'd like to see what more than just searching Google for "how to name generator", I want to learn some programming aspect of doing so.
>>60528830
I do believe you've mistaken me, friend. I seek no help in doing specific things, I'd just like some guidance from anyone in the direction of where to find the knowledge to make such creations.
>>60528840
I'd like to experience the fun, yet have no clue as to where to start in such a process. All I'm aware of is I need some form of knowledge in some form of programming language.
>>60528859
Okay, that's understandable. Hope you got something you wanted from the roll. I'll go tie myself to some cement blocks and get pushed in the river. Thanks for enlightening me, anon.

Have a good day, lads.
>>
>>60528860
Recursion used to be necessary to iterate over all files and folders or a given path, using C# or VB.NET.
>>
>>60528877
Nobody cares mate
>>
>>60528889
I know you're talking about the lack of
Directory.EnumerateFiles()
before 4.0, but even at the time, recursion wasn't necessary; you could formulate the behavior with loops.
>>
>>60528888
You asked a silly question as far as developers are concerned. Finding, discovering, trying, failing, refining, resolving, implementing are all parts of the (FUN) process of software development. There are no shortcuts, sorry.
>>
File: Kotlin11blogbanner1.png (97KB, 2000x1000px) Image search: [Google]
Kotlin11blogbanner1.png
97KB, 2000x1000px
So with all that recent hype around Kotlin, does /gdp/ has an opinion on it?
I'm looking in it and so far it looks decent, definitely better than Java and even Scala.
>>
>>60528887
>recursion
I didn't say anything about "recursion".
>Also smug anime image
Get the fuck out, underaged shit.

>>60528889
I knew this thread was pretty stupid, but this is just embarrassing. Read the posts you reply to more carefully next time.

>>60528912
The kind of looping you're talking about is general recursion. Please don't reply to posts you don't understand.
>>
>>60528888
Generally you should already have a solid grasp of basic programming concepts (loops, conditionals, recursion, etc...) before attempting some of these challenges.
>>
>>60528912
You understood the problem correctly, but I don't understand how you could implement the same solution without recursion, using only loops.

I point you to C:\
List all the files and directories below that path.
>>
>>60528932
>So with all that recent hype around Kotlin
Where? On >>>/r/ibbit ?
>>
>>60528569
some improvements
struct graph {
void* data;
struct graph** neighbors;
int neighbor_count;
enum { DFS_WHITE, DFS_GRAY, DFS_BLACK } dfs_color;
int dfs_discovery_time;
int dfs_finishing_time;
struct graph* dfs_parent;
};
void dfs(struct graph* g,
void (*preorder)(struct graph*),
void (*inorder)(struct graph*),
void (*postorder)(struct graph*),
void (*on_tree_edge)(struct graph*, struct graph*),
void (*on_back_edge)(struct graph*, struct graph*),
void (*on_forward_edge)(struct graph*, struct graph*),
void (*on_cross_edge)(struct graph*, struct graph*)) {
int dfs_time = 1, i, c;
struct graph* origin = g;
origin->dfs_color = DFS_GRAY;
origin->dfs_discovery_time = dfs_time;
origin->dfs_parent = 0;
if (preorder) preorder(origin);
for (;;) {
c = g->neighbor_count;
for (i = 0; i < c; i++) switch (g->neighbors[i]->dfs_color) {
case DFS_WHITE:
if (inorder && i != 0) inorder(g);
g->neighbors[i]->dfs_parent = g;
if (on_tree_edge) on_tree_edge(g, g->neighbors[i]);
g = g->neighbors[i];
g->dfs_color = DFS_GRAY;
dfs_time++;
g->dfs_discovery_time = dfs_time;
if (preorder) preorder(g);
i = c + 1;
break; case DFS_GRAY:
if (on_back_edge) on_back_edge(g, g->neighbors[i]);
break; case DFS_BLACK:
if (on_forward_edge
&& g->dfs_discovery_time
< g->neighbors[i]->dfs_discovery_time)
on_forward_edge(g, g->neighbors[i]);
else if (on_cross_edge) on_cross_edge(g, g->neighbors[i]);
}
if (i == c) {
g->dfs_color = DFS_BLACK;
dfs_time++;
g->dfs_finishing_time = dfs_time;
if (postorder) postorder(g);
if (g == origin) break;
g = g->dfs_parent;
}
}
}
>>
>>60528953
c is so gross but its fast on chinkware so we have to use it
>>
>>60528943
HN is blowing up with kotlin threads the last 2-3 days.
Made me never want to approach it.
>>
>>60528964
>gross
please explain
>>
>>60528965

it appeared on there 2 years ago

truly mediocre language
>>
>>60528934
>I knew this thread was pretty stupid, but this is just embarrassing. Read the posts you reply to more carefully next time.
Explain or fuck off
>>
>>60528934
You're the only underage one here. Also
>>60528934
>general recursion

>>60528965
>rising in popularity
eww gross, that must mean the language is shit, right?
>>
>>60528943
Yes? Also on HN, twitter, /g/ and lots of other tech sites.
>>
>>60528964
>on chinkware
i think you mean allware
>>
>>60528844
Well that's c for you.
>>
>>60528980
>that must mean the language is shit, right?
No it means that shills are out in full force in mouth and anus
>>
Java fags, come on, come out of closet and tell us what do you think about Kotlin. Nobody's gonna bully you
>>
>>60528888
with those quads you have too kill yourself, you brit fag
>>
>>60528953
hmm so i have heard a lot about this C language and now someone is doing a thing in it

hmm let's take a look then

.......
WHAT THE FUCK

REEEEEEEEEEEEEE I SHIGGY DIGGY DIGGY DIGGY DIGGY DIGGY DIGGY DIGGY DIGGY
>>
>>60528973
You started babbling on about "recursion" and "iteration" as if they were somehow not the same thing as far as this discussion is concerned.

>>60528980
>You're the only underage one here.
You have no idea what you're talking about
>general recursion
Which is not the same as "recursion".
>>
>>60528996
>shill
That has nothing to do with programming. You're kind would be more welcome in >>>/pol/

>>60528997
I wouldn't consider myself a "javafag", but Kotlin seems like it takes Java and removes a lot of the "bullshit". It's probably great for fast android development.
>>
>>60528982
>Yes
Fuck off to your shithole then.
>>>/r/abbit/
>>
What are some languages for TRUE hipsters? Prolog?
>>
>>60529022
*your

>>60529015
"recursion" by itself is implied as "general recursion". but I would expect you to have issues understanding this being that you're autistic.
>>
>>60529047
>"recursion" by itself is implied as "general recursion"
Only if you have a severe disorder which prevents you from properly communicating with people.
>>
>>60529022
When I write "shill" I use it as a commonly accepted shorthand to mean 'someone paid to promote a product'. So yes, when I see a sudden inexplicable upsurge in people writing positive articles/blog/opeds about a certain product (kotlin) within a 2 day period I consider those article writers shills.

go fuck ur'self
>>
>>60529041
true hipsters: Ruby
true hippies: C
true hiphop artists: C++
true hip doctors: Java
>>
>>60528618
>>60528683
Fuuuck that worked, was finally able to come up with this:

public void carExchange(){
int cod = Integer.parseInt(read.nextLine());
pessoa.Pessoa a = Y.procPessoa(cod);
Y.impCarros(a);
int r = Integer.parseInt(read.nextLine());
if(r == 1){
int coda = Integer.parseInt(read.nextLine());
pessoa.Pessoa b = Y.procPessoa(coda);
int ano = 0;
String modelo = " ";
ano = Integer.parseInt(read.nextLine());
modelo = read.nextLine();
carro.Carro x=a.getLC().procCarro(modelo, ano);
a.getLC().removeCarro(x);
b.getLC().addCarro(x);
}
else{
System.out.println("S'cool");
}
}
>>
>>60529063
Pajeet: C / C++
Virgins: Lisp + Lisp variants
Retards: Java
>>
>>60529066
Forgot to ask anons, how good/bad is it? Please no bully
>>
>>60529073
so apparently according to you rms is an indian virgin

uhhhhh so does that mean we can sacrifice him to stop global warming or
>>
>>60529090
>implying he isn't
>>
>>60529060
>shill
Has nothing to do with programming. Please go back to >>>/pol/, where your kind is more welcome.
>>
File: CLgm1XqVEAAQRzT.jpg:large.jpg (80KB, 1023x682px) Image search: [Google]
CLgm1XqVEAAQRzT.jpg:large.jpg
80KB, 1023x682px
>>60529041
crystal, ceylon, sapphire, racket, mercury
>>
>>60529100
I'll make you post it a third time :)
>>
>>60529041
Any functional meme languages
>>
>>60529090
>global warming
What doe this have to do with programming? You might feel more welcome in >>>/sci/
>>
>>60528953
Ew. Don't put brackets on their own line, it's ugly.
struct graph {
void* data;
struct graph** neighbors;
int neighbor_count;
enum { DFS_WHITE, DFS_GRAY, DFS_BLACK } dfs_color;
int dfs_discovery_time;
int dfs_finishing_time;
struct graph* dfs_parent; };
void dfs(struct graph* g,
void (*preorder)(struct graph*),
void (*inorder)(struct graph*),
void (*postorder)(struct graph*),
void (*on_tree_edge)(struct graph*, struct graph*),
void (*on_back_edge)(struct graph*, struct graph*),
void (*on_forward_edge)(struct graph*, struct graph*),
void (*on_cross_edge)(struct graph*, struct graph*)) {
int dfs_time = 1, i, c;
struct graph* origin = g;
origin->dfs_color = DFS_GRAY;
origin->dfs_discovery_time = dfs_time;
origin->dfs_parent = 0;
if (preorder) preorder(origin);
for (;;) {
c = g->neighbor_count;
for (i = 0; i < c; i++) switch (g->neighbors[i]->dfs_color) {
case DFS_WHITE:
if (inorder && i != 0) inorder(g);
g->neighbors[i]->dfs_parent = g;
if (on_tree_edge) on_tree_edge(g, g->neighbors[i]);
g = g->neighbors[i];
g->dfs_color = DFS_GRAY;
dfs_time++;
g->dfs_discovery_time = dfs_time;
if (preorder) preorder(g);
i = c + 1;
break; case DFS_GRAY:
if (on_back_edge) on_back_edge(g, g->neighbors[i]);
break; case DFS_BLACK:
if (on_forward_edge
&& g->dfs_discovery_time
< g->neighbors[i]->dfs_discovery_time)
on_forward_edge(g, g->neighbors[i]);
else if (on_cross_edge) on_cross_edge(g, g->neighbors[i]); }
if (i == c) {
g->dfs_color = DFS_BLACK;
dfs_time++;
g->dfs_finishing_time = dfs_time;
if (postorder) postorder(g);
if (g == origin) break;
g = g->dfs_parent; } } }
>>
>>60529100
>Complaining about /pol/
You just confirmed my suspicion that you along with most of this thread are straight from reddit. He wasn't even stating a /pol/ opinion, you have to go back.
>>
>>60528942
This appears to be working fine for me:
string sourcePath = @"C:\temp\";

var fileList = new List<string>();
void DirSearch(string path)
{
var dirs = new List<string>() { sourcePath };

try
{
for (int i = 0; i < dirs.Count; i++)
{
foreach (string f in Directory.GetFiles(dirs[i]))
{
fileList.Add(f);
}

var moreDirs = Directory.GetDirectories(dirs[i]);
if (moreDirs.Count() != 0)
{
dirs.AddRange(moreDirs);
}
}
}
catch (Exception ex)
{
fileList.Add(ex.Message);
}
}

DirSearch(sourcePath);


However, I'm not sure what distinction the other anon is making with "general recursion", but this doesn't use recursion in the sense of there's no inner call to the outer function.
>>
>>60528932
>Turing-complete trash
Not even worth considering.
>>
>>60529113
>/pol/
>>>/b/
>>
>>60529113
>reddit
Cool programming language. Not. /dpt/ is for the discussion of programming and programming languages.
>>>/v/
>>>/plebbit/
>>
@60529132
>Cool programming language. Not.
This is the most rabbit thing I have ever read in this thread. And that's saying a lot.
Fuck off.
>>>/r/ibbit/
>>
>>60529100
Literally what does /pol/ have to do with anything here? /pol/ should stay on /pol/, but you people are even worse when you scream "MUH /pol/" every time someone hurts your feelings.
>>
>>60529144
everyone who want to discuss /pol/ should gO TO:
>>>/b/
>>
@60529143
>rabbit
>>>/an/
>>
File: cpmmunism.jpg (50KB, 600x600px) Image search: [Google]
cpmmunism.jpg
50KB, 600x600px
>>60529156
> /an/
An what?
An hero?
>>
>>60529115
It looks decent but I had this breaking problem running it in RoslyPad;

Access to the path 'C:\Documents and Settings' is denied.
>>
File: 20170325_115509.png (139KB, 391x261px) Image search: [Google]
20170325_115509.png
139KB, 391x261px
>>60528953
>>60529109
>SEVEN FUCKING FUNCTION POINTERS
>>
>>60529219
yeah, but OOP is ugly and verbose, didn't ya know?
>>
>>60529115
Decent, but I made a small change

using System.Collections.Generic;
using System.IO;
string sourcePath = @"C:\";

var fileList = new StringBuilder();
void DirSearch(string path)
{
var dirs = new List<string>() { sourcePath };

try
{
for (int i = 0; i < dirs.Count; i++)
{
foreach (string f in Directory.GetFiles(dirs[i]))
{
fileList.AppendLine(f);
}

var moreDirs = Directory.GetDirectories(dirs[i]);
if (moreDirs.Count() != 0)
{
dirs.AddRange(moreDirs);
}
}
}
catch (Exception ex)
{
fileList.AppendLine(ex.Message);
}
}

DirSearch(sourcePath);
Console.Write(fileList.ToString());
>>
>>60529219
He is over engineering his code.
>>
File: great job.png (72KB, 211x244px) Image search: [Google]
great job.png
72KB, 211x244px
>>60528802
>>
>>60529247
>
AppendLine

?

Also, the issue was that the exception breaks out of the loop, so simply move the try/catch inside the loop so you can continue iterating if something goes wrong:
void DirSearch(string path)
{
var dirs = new List<string>() { sourcePath };

for (int i = 0; i < dirs.Count; i++)
{
try
{
foreach (string f in Directory.GetFiles(dirs[i]))
{
fileList.Add(f);
}

var moreDirs = Directory.GetDirectories(dirs[i]);
if (moreDirs.Count() != 0)
{
dirs.AddRange(moreDirs);
}
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
}
}
>>
>>60529247
>>60529280
Oh, I see you swapped to a stringbuilder now. Either way, you'd want to move that try/catch inside the loop.
>>
fun fizzBuzz() {
for (i in 1..100) {
when {
i % 15 == 0 -> println("FizzBuzz")
i % 3 == 0 -> println("Fizz")
i % 5 == 0 -> println("Buzz")
else -> println(i)
}
}
}
>>
>>60529238
that's not even OOP
>>
>>60529311
That's the joke.
>>
>>60529290
I was only bitching about not outputting the result and SB was the quickest way I know.

Honestly, I didn't know you could alter the length of a List<T> inside a loop over the same list. I feel like that wasn't allowed at the time when I had to write my first recursion (vs 2008 days) but maybe it was.
>>
>>60529321
>I feel like that wasn't allowed at the time
It's always been allowed with a regular for loop, but if you attempt to do this during a foreach, it does break.

If you wanted to output the result, you could simply do
fileList.ForEach(WriteLine);
and call it a day.
>>
File: shot0010.jpg (153KB, 1280x720px) Image search: [Google]
shot0010.jpg
153KB, 1280x720px
>>60527117
I'm so happy that Umaru is really back now. No more "season 2 when?" desperation.
>>
machine learning isn't pr-
>>> for i in range(3):
... for j in range(5):
... c[(i, j)] = b[(2-i, 4-j)]
...
>>> c
array([[-14, -13, -12, -11, -10],
[ -9, -8, -7, -6, -5],
[ -4, -3, -2, -1, 0]])
>>> b
array([[ 0, -1, -2, -3, -4],
[ -5, -6, -7, -8, -9],
[-10, -11, -12, -13, -14]])
>>
>>60529372
>not even machine learning
>>
>>60529387
basically all machine learning is is working with big arrays
>>
>>60529342
>It's always been allowed with a regular for loop, but if you attempt to do this during a foreach, it does break.
It was a long time ago but it's likely the problem was either that I used a foreach or (as I was also writing javascript at the time) I was using a pattern which prevented recalculating the length of the list like so (js cos forgot my .net syntax);

for(i = 0, max = list.length; i < max; i++) {
dostuffiwith(list[i]);
}


In that case adding stuff the end of the list was a waste of time. Live and learn. Thanks for the dialogue.
>>
I'm going to learn android development. Should I use java or kotlin?
>>
>>60529440
Both. Any Java code can easily be transformed into Kotlin code.
>>
>>60529440
Java or C# would probably have the most support for Android dev.
>>
File: druckt.png (16KB, 488x464px) Image search: [Google]
druckt.png
16KB, 488x464px
How to trigger /g/dpt in seven lines or less:
(defstruct scoop type)
(defstruct ice-cream)
(defun scoop-of-ice-cream ()
(make-scoop :type #'make-ice-cream))
(defun two-scoops-of-ice-cream ()
(mapcar #'funcall
(make-list 2 :initial-element #'scoop-of-ice-cream)))
>>
>>60529490
((
((
))
))
>>
>>60529496
You are wrong, though
>>
Beginner here. How do you guys come up with shit to do?
>>
>>60529571
My manager tells me what to do.
>>
File: gorg.png (50KB, 632x611px) Image search: [Google]
gorg.png
50KB, 632x611px
>>60529496
foo::bar::baz<::foo::bim::burp<derp<int, int, int, int, char**********> > >

foo_bar_baz_________bibbly

if { for { while { if { } } } }

{ { ->->->->->->->(((((()))))); }; };

@Override

@
fucking
Override
>>
>>60529571
Have a job
>>
>>60529592
oh almost forgot:
std::cout << << << << << << << << << std::endl;
>>
>>60529592
> lisp-fag is mad no-one hates himself as much as he does to use lisp
>>
File: 1495051891022.jpg (70KB, 505x490px) Image search: [Google]
1495051891022.jpg
70KB, 505x490px
>>60529490
>>
>>60529606
not even a lispfag m9, the whole point of the post was it's supposed to trigger /dpt/ because everyone else is a lispfag here and that's bad lisp
>>
>>60527227
A) That is the most hideous syntax I think I've ever seen. Even Perl looks nicer.
B) What the fuck is it with every hipster language coming up with some stupid name for func? Just call it fucking func. Not fn. Not fun. Not fu. Func. For FUCKING FUNCTION. DO YOU SPEAK ENGLISH?
C) No, that looks like Dart attempt 2
>>
>>60529636
>B) What the fuck is it with every hipster language coming up with some stupid name for func? Just call it fucking func. Not fn. Not fun. Not fu. Func. For FUCKING FUNCTION. DO YOU SPEAK ENGLISH?
No, I speak Greek.
It's called a lambda.
Get over it.
>>
>>60529636
the number of languages that don't call functions as func is greater than the inverse so who's truly hipster?
>>
>>60529636
> That is the most hideous syntax I think I've ever seen. Even Perl looks nicer.
I think you're confusing it with something, Kotlin's syntax is pretty clean and close enough to Java's to be perfectly readable.
>>
>>60529636
'f*nction' is exclusionary because there are some people who might use this language that don't know what a function is and would feel upset.

writing this language should be fun and if someone might not have fun then this language isn't fun. i'm literally shaking right now.
>>
>>60529674
I know this is supposed to be mocking similar sentiments in politics, particularly from the left, but I would like to mention, regardless of the fact that no one asked, that I stand by such sentiments. Some of them are unnecessarily restrictive, but unnecessary restriction is, in the general case, a superior policy to allowing the possibility of injustice, especially in light of how particular demographics have been treated in past decades. To anyone who is about to call me "mentally ill," "subhuman," a "millennial," a "nigger," a "jew," a "faggot," "Karlie," an "SJW," a "Muslim," "anti-white," "un-American," a "troll," etc, I have only four bytes to say to you: Inb4. Hahaha, now you can't use that argument for some reason.
>>
File: asdasdjaskdak.png (16KB, 492x160px) Image search: [Google]
asdasdjaskdak.png
16KB, 492x160px
pajeet was a mistake
>>
>>60529783
Forgot pic related
>>
>>60529798
Without context, that could be reasonable.

It sounds like he's annoyed by the video saying to some degree that C++ is primarily only used for games nowadays; however, that's an unknown without the video in question.
>>
File: dead.webm (924KB, 720x404px) Image search: [Google]
dead.webm
924KB, 720x404px
>windows
>Mingw-w64
>Install pkg-config
>Works by itself
>Can't figure out how to use it and g++ to actually compile code
Can somebody save me from my retardation?
>>
>>60529830
>Mingw
>g++
There is your problem. Fucking commie software made by a paedophile.
>>
>>60529818
Nice facebook image, mate.
>>
>>60529830
Just install Linux
>>
>>60529783
Do you subscribe to the Jewish faith by any chance :^)
>>
>>60529847
15 rupees and a plate of curry has been dispatched to your designated shitting street, pajeet.
>>
>>60529874
Lol I already inb4'd you, that means you can't use that argument
No though, I'm a strongly agnostic spiritualist, I believe in an ambiguous higher power but acknowledge its existence is logically unknowable
>>
>>60529851
thanks m9 :^)
>>
>>60529783
>but I would like to mention, regardless of the fact that no one asked,
4chan in a nutshell everyone
>>
>>60529889
No, Miss Red-Ridinghood, I'm not a wolf.
Now, ask your next question :3
>>
>>60529915
pardon
>>
>>60529571
>How do you guys come up with shit to do?
If you're lacking ideas, just try messing around trying to solve project euler problems or doing other various programming challenges. It'll keep you busy and keep you learning.

As you go through what you do everyday, try and think of what you're doing and if some type of program or app or something could help you out with it. Do you have a notepad file of all the shows you're currently streaming? Make a program to do that. Put it on your phone, or as an extension in your browser.

Do you regularly go over your finances to make and adjust your budget? To you always look up when bills are due again or when to expect them? Write a program to help you with that.

Not sure what to make for supper tonight? Write a program to offer suggestions based on the ingredients you have or what you're craving.
>>
>>60529875
Can't handle me being right can you?
Also me and my family don't have any traces of Pajeet blood in us. We also don't live near India but nice try.
>>
>>60529953
>Also me and my family don't have any traces of Pajeet blood in us.
>me and my family don't
>me don't
Nice try pajeet
>>
>>60529953
Pajeet my son
>>
>>60529961
P** in l**
>>
>>60529953
>>60529847
https://www.youtube.com/watch?v=nIayOPPW1yE
>>
Does writing in Java make you are pajeet even if you don't have any traces on India blood in you?
>>
>>60530050
I tried out Java to write some simple programs. The next day I went out to a restaurant and saw they curry on the menu and felt the urge to order it.

It happens quick
>>
>>60530050
You might already have some Indian blood in you if you consider using java.
Does your breath smell like curry?
>>
>>60530075
You don't have to be a pajeet to eat mainly curry. I do and me and my family don't have any traces of Pajeet blood in us. We also don't live near India.
>>
>>60530075
Try writing in Kotlin, see if it makes you drink vodka and eat pirogi.
>>
>>60530075
>>60530081
>hahaha pajeets like curry
this is the extent of FP fags' delusion, they don't even realize how self defeating they're being right now
>>
>>60530093
>me and my family don't have any traces of Pajeet blood in us
>me and my family don't
>me don't
nice try Pajeet
>>
>>60530104
>FP are not also Pajeets
You have never heard of Haskell Curry?
>>
pakijeets out
>>
>>60530139
that was the point i was making because you faggots were making fun of Java so i assumed you were fp fags

if you're not an fp fag and also hate java then clearly you're a Web dev

>>>/g/wdg/
>>
>>60530155
>the extent of knowledge of a currynigger
>>
>>60530171
It's not a matter of extent of knowledge, it's a fact. There's FP, there's OOP, there's a broad category of pathetic things which are not programming really, and there's literally nothing else. You have to be clinically insane or two years old to believe otherwise.
>>
>>60530201
>>60530171
>>
>>60530227
>>60530201
>>
>>60530201
>hate java
>do FP and IP
>not a webdev
checkm8 agnostics
>>
File: 1455950055870.jpg (32KB, 300x470px) Image search: [Google]
1455950055870.jpg
32KB, 300x470px
>>60530201
>There's FP, there's OOP
>>
>>60530201
How is your intro to CS with Jawa 101 bootcamp youtube videos coming along, pajeet?
>>
>>60530242
FP doesn't even really exist. It's OOP all the way down.
>>
File: gellar.jpg (327KB, 800x1215px) Image search: [Google]
gellar.jpg
327KB, 800x1215px
>>60530242
>we're doing images now
ok
>>
File: 4chan user.jpg (11KB, 220x154px) Image search: [Google]
4chan user.jpg
11KB, 220x154px
>>60530264
>>
File: 1455954055666.jpg (49KB, 600x900px) Image search: [Google]
1455954055666.jpg
49KB, 600x900px
>>60530264
>There's FP, there's OOP
>>
>>60530239
>IP
no such thing
>>60530257
what are you on about you delusional thumb sucking manchild
>>
>>60530259
In javascript everything is an object, so it's OOP
>>
>>60530278
>Pajeet doesnt even know his own paradigm
>>
Fact: you don't know what OOP is if you never tried Smalltalk.
>>
>>60530286
>paradigm
there's only two of those, FP and OOP
ONLY TWO GENDERS
>>
>>60530278
It's about your first week into coding bootcamp. How is it going, pajeet?
>>
File: 1455953544842.jpg (34KB, 300x470px) Image search: [Google]
1455953544842.jpg
34KB, 300x470px
>>60530298
>there's only two of those, FP and OOP
>>
>>60530296
Smalltalk is slow and gay
>>
>>60530298
its a spectrum shitlord
>>
>>60530298
My program identifies as procedural-kin
>>
Is there any reason to use vs solutions instead of cmake in vs 2017?
>>
>>60530298
>there's only two of those, OOP and more OOP
FTFY
>>
>>60530298
>>60530259
>>60530201
Typical newbie on /g/ who's entire knowledge base comes from the latest /g/ norm. Such a cringe worthy bastard we gave birth to
>>
>>60530299
what are you on about you delusional thumb sucking manchild
>>60530302
>we're doing pictures now
ok
>>60530308
hi sarah from google i mean ya no disrespect ok hun
>>60530309
so FP then? got it
>>
>>60530325
You want those spyware telemetry modules in your shitty useless programs
>>
>>60530335
hes just pretending for (you)s
>>
>>60527117
>What are you working on?
g_tetris
>>
>>60530335
FP will never outlast OOP. You better get to studying your design patterns.
>>
>>60530358
Are you unable to read? Or do you lack the mental stability to hold a coherent conversation?
>>
>>60530367
Get to work. Apply yourself.
>>
>>60530358
Fp and oop are not even exclusive
>>
>>60530383
That's because OOP is superior to FP by a longshot. I wonder why everybody uses OOP and not FP? Oh wait, it's because OOP is clearly better.
>>
>>60530399
Do they even teach English these days in your shitting streets?
>>
anyone knows of something like codewars, codingame or really just some site with programming challanges for x86 assembly?
>>
>>60530443
You tell me, Mr. poojeet
you would know :^)
>>
File: 1472738289449.jpg (90KB, 1280x720px) Image search: [Google]
1472738289449.jpg
90KB, 1280x720px
>>60530383
>Fp and oop are not even exclusive
>>60530399
>hat's because OOP is superior to FP
That's some grade A autism right there
>>
>>60530399
>Fp and oop are not even exclusive
>That's because *unrelated rambling*
Explain yourself
>>
>>60530459
256box, TIS-100
>>
>>60530463
>autism
Illiteracy*
>>
>>60530443
Me and my family don't have any traces of Pajeet blood in us. We also don't live near India but nice try.
>>
>>60530463
>hat's because OOP is superior to FP
>tfw you are a poojeet and company policy require you to wear "hats because OOP is superior to FP"
>tfw ur poojeet company is this insecure
>>
File: x86 Original Instruction Set.png (299KB, 1349x3544px) Image search: [Google]
x86 Original Instruction Set.png
299KB, 1349x3544px
>>60527295
What the other guy said: ARM first, x86 second.
And full disclosure: I have never used or programmed in assembly; I'm just going off what I read while looking to apply for jobs in this area.

The R in ARM stands for RISC (reduced instruction set computing) so, basically, less instructions to learn and remember.
On top of being a good place to start learning, it's used in a variety of small devices (less instructions -> less transistors -> less of a drain on the battery).

After that, x86 as that's the architecture that most PCs use. Their instruction sets apparently vary depending on the specific CPU but I've screencapped what all x86 sets should have in common. The rest of the instructions are here: https://en.wikipedia.org/wiki/X86_instruction_listings

As for assemblers: https://en.wikipedia.org/wiki/Comparison_of_assemblers
If you've got GCC/MinGW, you can using as.exe in the bin folder as that's the GNU assembler. Should recognise most assembly languages.
>>
>>60530476
>>60530459
https://www.youtube.com/watch?v=vpoJbIaBg8E
>>
>>60530486
>Me and my family don't have any traces of Pajeet blood in us.
>Me and my family don't
>Me don't
nice try Pajeet
>>
>>60530474
Let me explain it in terms even your peasized brain can understand:
*Everybody uses OOP
*Nobody uses FP
*OOP good
*FP trash
Let me know if I need to dumb it down some more. I'm a disabled-friendly poster.
>>
>>60530463
I have studied PLT quite a lot. If you want to explain how a data abstraction technique is exclusive to a code abstraction technique, then be my guest.

>>60530492
RISC doesn't mean anything anymore. IBM power has more instructions than a i7 , for example. The best ISA to start learning is x86_64.
>>
>>60530506
>>60530533
It's okay, you can stop embarrassing yourself while pretending to be "trolling". Newfag.
>>
>>60530548
>trolling
>Newfag
>>>/r/ibbit
>>
>>60530548
>yourself
Yourselves.

i am not >>60530506
>>
>>60530443
>>60530463
>>60530474
You are responding to a false flag.

This person is not actually advocating for OOP; rather, they're "advocating for OOP" in an annoying way on purpose.
>>
Vim is great they said.
Still can't figure out how to get it to work correctly while programming drivers for Linux.
>>
>>60530601
Use emacs.
>>
>>60530601
Vim is a meme
install VS Code
>>
>>60530601
Spacemacs
>>
I'd like to make a simple program that tracks how long I've use another program. Would something like that be easy to do in python?
>>
>>60530618
https://unix.stackexchange.com/questions/29800/how-does-time-command-work
>>
>>60530616
I am using putty to ssh into a vm so I don't think VS Code is not going to work.
>>
>>60530618
Yes. Get a list of the running processes and start counting till the said program process is running.
>>
>>60530638
>he doesn't know how to tunnel X over ssh
>>
>>60530638
VSC is cross-platform my friend.
>>
>>60530646
This is not programming. Please redirect yourself to the nearest >>>/g/wdg
Thanks!
>>
>>60530646
What for? To forward XTerm?
>>
can I become an anime girl through programming?
>>
>>60530652
what bothers me about vs code is its autocomplete. it isn't good at all
>>
>>60530658
To forward VS Code.
>>
>>60530675
its default is ass, but you can configure it to behave like a normal one.
>>
>>60530675
There are plugins to install alternative completion engines.
>>
Ada
>>
>>60530750
>the language for disabled
>>
>>60530750
>a language named after a female "programmer"
Go back to >>>/r/abbit with your SJW shit.
>>
>>60530750
Most over engineered programming language ever
>>
>>60530506
No one needed you to explain the unrelated rambling. What I'm asking you to explain is why you said "that's because," considering what came after was unrelated to the phenomenon of which you claimed it as the cause.
>>
New thread:

>>60531022
>>
>>60530661
Yes!
>>
>>60529830
Have you added "C:\MinGW\bin" to your PATH?
To find PATH: Computer -> Properties -> Advanced Systems Settings -> Environment Variables.
Variables are separated by semi-colons.
>>
>>60530155

So all C programmers are web devs? Good to know then.

>>60530201

Procedural Programming (as one might use in C) is neither FP nor OOP. Same goes for Logic Programming (which is typically done in Prolog).
>>
>>60531302
Most of OOP is procedural.
>>
>>60531798

But not all procedural languages are object oriented.
>>
>>60532244
Absolutely irrelevant. Like ruby.
>>
>>60532283
Ruby is an OOP language, though.
Thread posts: 334
Thread images: 37


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