I'm looking into mobile development, and Ruby looks really nice, but I heard it's fairly slow. Is it really as bad as they say? If I don't use Ruby, and I absolutely hate Java, what's a good language for developing software for Android?
Ruby is fairly slow, but much of what you see on the internet about it is exaggerated.
> If I don't use Ruby, and I absolutely hate Java, what's a good language for developing software for Android?
Clojure or C.
This is rather cool:
"Quantum Computing and the Limits of the Efficiently Computable - 2011 Buhl Lecture"
http://www.youtube.com/watch?v=8bLXHvH9s1A
Link contribs?
if you care so much about those real people i suppose you give them your lunch money, not mine
I'd really like to use the site http://www.codecademy.com to start learn Javascript and then go on to either Python or Ruby. To more experienced programmers or anyone who has tried the site, what do you think of it? I realize I'm not going to be a Ruby wizard in a month, but is it good for what it does?
Also, I am somewhat concerned about their privacy policy. ( http://www.codecademy.com/policy ) It seems really ambiguous and their signup page has built-in Facebook/google integration. So I feel kind of wary to sign up of give them any of my information.
I'm using it at the moment OP, I think it's a good introduction, and the Q&A forum is helpful if you get stuck.
OP, the most important thing is that you do it consistently. Just keep practicing. I haven't used codeacademy, but I'm sure it's just fine for an introduction.
Although, OP, you would probably be just fine jumping right into Python or Ruby, because they're relatively user friendly.
>>4
They are equally capable of web-related things. Ruby is more popular for such things, but that's mostly because Ruby on Rails is more or less what made the language famous.
I suggest trying some small things (puzzles, toy applications) in both and choosing the one you like.
I use code academy, i gotta read that privacy policy :p
Hello Guys,
i am progamming android apps for 2 month. Now i already have 2 apps. I
am progamming android apps because i want to improve my java
knowlegde.
My apps are free and there is no advertisement in it. So i dont make
any money with these apps, but that is not important for me. I focus
on learning programming and its great!
If more people would download my apps and give me feedback, i would be
able to improve it. Besides that it would give me more motivation to
make more and even better apps! :)
My first app is called "BONGI" and my second is called "GROBI".
>>7
cool beans
... .... ..... . .................. ........... . ..
..+$?I777I?$... ...+====:::~=?,.. . ....++======+...
....Z7ZZZZ$$$$ZZ$I....$=I7$$ZZ$7+=::+........I=:,::,,,,..:+,....
..:7ZZZ$7?+~,,~+ZZI..$IZ$ZZZZZ$=..++:+......?$O+,,:I=+=~:,.:?..
..7OOZ$7?+++=:,,+Z77.?8ZZZZZZZ$+..:?=~I....+~=+~,~+?O=:,.,:.=,..
.$OOZ$77?++++=:,=$$?778ZZZZ$ZZZ$=.:+I==O..,DD?+==+=++=:,..:,,?..
.$OO$$$$I?++++::+$$I$$8$ZZZZZZZZ$I+?7$8$,.N$NMMONMNNNO=:.:~:,?..
+8OO$$$$7I++++~~?$Z7778Z$+ZZZO8OZ$I?8D+++.8ZNM?+?MNNDOMD?~:,,?..
Z8OZ7$ZZ$7I+D8ND?$N8?78ZDOZZZZNDO7ZZZ$7=+:I,+7ZI+?NN$O~,~+:,,?..
. ..NM877$ZZZ88$??==I$Z$,I8Z$Z$ZMMMNOI8Z777I=?+~?ZMNN+++++=,~~,.:+..
...ZNNZO8OOO8888DZ=IZ$N8D8NNMMN8MMMN8Z$777$=O$ZII887++++++~,~,.:O..
....$8ZI7ZDNMNNNMD$$MNMNN8MDNMMD7$O$$8$$$$$$$?DZ7Z$?+++++++=:~,.I?..
Would you say it's easier for a newbie to pick up programming by learning an interpreted language ?
Two good docs for would-be programmers:
http://www.catb.org/~esr/faqs/hacker-howto.html
http://www.catb.org/~esr/faqs/smart-questions.html
ITT: Pussies who don't have the brain plasticity to learn assembly
>>17
I wasted all my grey matter on eroge and 4chan, leave me alone.
>>13
ASM is not a clusterfuck. C and its undefined behavior is a clusterfuck.
>Would you say it's easier for a newbie to pick up programming by learning an interpreted language ?
I would say it depends on what are you like/want to do more.
I'd recommend starting with PHP and continuing with C. Because it's easy.
I dare to object. Every self-respecting C compiler should spill warnings about UB, until you bend over. To top it off for a bit, stronger typing of C++ treats some UB as hard errors (while creating plethora of new ones in it's wild-west approach to OO).
>>20
Please don't start with PHP, for the love of God. That is the worst thing anyone could do.
>>22
I mean, feel free to learn it at some point as I fully understand it is necessary to know in some lines of work, but to learn it as a first language will give you bad habits that are hard to drop if they're the first things you learnt.
I recommend learning Scheme while reading SICP. It will start you off with a nice, high standard. Python is okay too if you would rather.
>>20
No, oh my god no. PHP is no. Just no.
Is you want to pick up an actual language that is easy, go with Python or Ruby.
PHP is an actual programming language. It is, however, not a general-purpose programming language.
Sup. Can you guys show me a list of PL's that have fast/easy matrix operations. I am thinking of languages like Matlab where you can play with matrices, multiply, do eigen analysis, etc. without having to do loops and so on. I am working with mostly 3D data right now, so the ability to view 3D images would be nice too. Also nice would be if it came with libraries that have geometry stuff like triangulation, convex hull, and so on.
>>4
I am doing research in 3D vision. I actually do use R for the simple statistics stuff that I do. It's quite useful in that regard but I don't think I can write larger programs using it. It's too messy. For the 3D stuff, right now I am using C++ with VTK and sometimes OpenCV. And trying to use Ocaml whenever possible. Though from the looks of it, I am just going to end up with Matlab due to the amount of relevant code that I can use.
Openframeworks seems interesting, I'll look into it, thanks.
>>5
The concepts used in J is pretty amazing but no way will I be able to use it and be sane.
How about Fortran? :-þ
With C++ you can try the Eigen library, it seems pretty good.
u w0t m8
If you buy MATLAB, you can call MATLAB functions...I don't know how.
A crusty old neckbearded Unix hacker I knew a few years back had very fond memories of programming in APL as a university student. I wish I could have told him about J at the time, as he wasn't even aware that anyone had made an open source APL interpreter.
Pure looks nice, what do you guys think? It's a functional language, so that's nice, and has matrix support. It interfaces with lots of things including OpenCV and Octave (an open source attempt at Matlab).
As a general policy, the more niche a language is, the more problems you'll have using it -- more compiler bugs, fewer libraries, less documentation, fewer debug and profiling tools, and so forth. As such, Pure isn't in the running yet.
in layman's terms what is the difference between the two ?
Functional programming isn't the direct opposite of OOP, but of imperative programming. Imperative programming operates on the principle that programs have a global 'state' which should be manipulated to produce the desired results, while functional programming attempts to avoid state and treat all data and program flow as interactions between functions. Having no state is often described as being "functionally pure" or "no side effects."
To use an example, consider possible programs in an imperative and functional style:
def x_plus_three(x):
y = 42 # this would be a side effect
# it's poor programming, but the language won't stop you
return x + 3Algebra, while not technically a programming language, is indeed functional:
f(x) = x + 3Notice that using algebra, you couldn't change the value of y from within a function that operates only on x. Purely functional languages are subject to the same constraint- in fact, they don't actually 'change' anything at all, they merely produce brand new outputs by performing calculations on their inputs. This prevents errors in case you didn't want y to become 42 or x to permanently increase by three.
Functional isn't opposite of OO, because there is functional OO.
OO with immutable objects is functional. (States can still be represented by creating new objects based on old ones.)
From a functional point of view, OO is a way of organizing the types into classes which are tuples of properties optionally linked by inheritance relationships, and of dispatching methods based on class-based pattern matching over the argument lists.
Functional OO is "cleaner" than regular OO in some ways. For instance circle-ellipse issues don't arise, because you can't mutate a circle or ellipse once it is constructed.
> circle-ellipse issues don't arise, because you can't mutate a circle or ellipse once it is constructed.
I don't believe you here. You can still make a copy of some object A, and call it B. Hell, you can even call it A with a let statement.
I had an interesting realization on the nature of OOP once. When you think about it, it effectively models multiple computers running programs and interacting with each-other.
Even in game programs you have the 'view' model where one ticks each registered object in the main loop - it can be viewed as multiple processors being 'ticked' to the next CPU cycle.
>>3
Pure OOP [i]is[/i] the opposite (dual) of pure FP. OOP is modeled by terminal coalgebras, FP by initial algebras. The distinction you're making is imperative vs declarative.
To solve the ``Expression Problem'', you need both.
>>6
is
OOP is not needed in most small projects as it only complicates understanding of the code and, as a result, increases time spent on its' reading and monies spent on its' support.
OOP makes life easier when dealing with something really obstructive. Instead of making clusterfuck of dynamically loaded modules and thousands functions in the global namespace, you simplify (or trying to) program structural organization, dividing it into classes and objects. Saves lots of time when amount of actual developers is more than 3.
Oh, and, of course:
object->doSomething(whatever);
doSomething(object, whatever);Note that variables captured in closures/continuations are technically equivalent to instances of which all members, including methods are private - and only visible to child classes defined in it's own scope (NOT derived classes, protected: is a sideffect).
In the same vein closures are just class instances without sideffects (are we comparing to pure-functional, right?).
Btw, this is clearly visible in C++11 and it's implementation of lambdas.
However nobody uses pure functional style, nor OO with such a rigid encapsulation. Both are most widely deployed in multi-paradigm systems, on that level, they could be IMO treated as equal.
Hi, so a friend made this for me after I linked them to the Nyaruko-san OP on YouTube. He said that using the + and - buttons, it ought to sync up with any beat.
My apologies if I mesed up the indentation in the following copypaste:
<html>
<head>
<title>(」・ω・)」うー!(/・ω・)/にゃー!</title>
<script type="text/javascript">var speed = 250;
var looper = setInterval(function(){ u.style.display="inline";
nya.style.display="none";
setTimeout(function(){ u.style.display="none";
nya.style.display="inline";
},speed);
},speed*2);
function unya(){
I should probably add that the title of the Nyaruko-san OP is 太陽いわく燃えよカオス.
err, not 太陽いわく, but 太陽曰く. My apologies.
I think Audacity has a beat-matcher built in. That is, it can detect the BPM of a song. I used it to make StepMania simfiles.
Also, you should send this to Tokiko when it's finished (if you're not him).
roujinkai dip.jp pass//// 4rfv6yhn1qak
sir database is not working. there is a problem with the "ban" table
Oh hey, I remember this thread. It was stupid.
Thanks >>96 for letting us relive stupid moments of internet history.
Okay here is some software that supposedly does imageboard, forum and cms all rolled into one, they went offline for like 2 days but their back check it..
www.rateitstar.com/software.php
some guy who calls himself Ere wrote it, lol, but the software is some serious hot shit..
>>98
I'd be embarrassed if my name was associated with something that bad.
Lets talk about the state of things in the imageboard script world today.
Is it true TinyIB was another attempt at making an imageboard script by the guy who made Trevorchan, Kusaba, etc.?
Is TinyBoard's development halted forever? Did anyone ever find out where it stands compared to Wakaba in terms of both speed and security?
Has anyone found any unpatched security holes in Wakaba yet?
What exactly happened to STI?
Are there any new contenders (not forks of other scripts) in the great imageboard script race?
>>103
Jesus fuck I'd love to see this thing in action.
There's this now http://onlinebargainshrimptoyourdoor.com/2012/07/22/glaukaba/
I don't know too much about programming, but I am curious about this: Is it possible to make a 4chan (or any *chan) site, however simple it may be, in fortran? I seriously doubt it, but hey, that's what I asked for.
FOOGERTS
frogettes
Baguettes
fat gits
FAT GITS
Gadgots
If you want to be cool and challenge yourself, write the website not in "modern" Fortran, but in Fortran 66 or Fortran 77 <- DUBS languages!!!
7^2 GET
check out Factor http://factorcode.org/
Well, it's obvious there is just not enough love for trans-fortran programmers. Every link google knows for "THE" operation (C->F translator, so you can compile regular cgi/php) is 404.
So I'm trying to add spoiler support in Wakaba, and I'm having a lot of trouble that I think is stemming from regex. I'm new to perl, so this is a bit hard for me. I'm adding the following to sub do_wakabamark($;$$) to accomplish this:
elsif(/^\[spoiler\]/) # spoilers{
if ($lines[0]=~/^\[spoiler\](.*)/){
while !($lines[0]=~/\[\/spoiler\]$/){
push @spoiler,$1; shift @lines;
}
}
$res.="<span class='spoiler'>".(join "<br />",@spoiler)."</span>";
}Thanks in advance!!
>>135-141
So I FINALLY got spoilers working properly. I don't remember who told me, but the only way to get this to work without completely rewriting wakabamark was to hold off on the spoiler function until AFTER all wakabamark related things were completed. Anyways, I went ahead and put my code right after:
# restore >>1 references hidden in code blocks
$comment=~s/>gt;/> >/g;...which was on line 846 in my version of wakaba.pl. Next is the actual spoiler code:
# new spoiler code (can't put it in 'do_wakabamark' because of 'do_spans' messing with the order of tags
if($comment=~/.*\[spoiler\].*/){
$comment=~s/\[spoiler\]*/\<span class\=\'spoiler\'\>/g;
$comment=~s/\[\/spoiler\]*/\<\/span\>/g;
$comment=~s/\<span class\=\'spoiler\'\>\<br \/\>/\<span class\=\'spoiler\'\>/g;
$comment=~s/\<\/span\>\<br \/\>/\<\/span\>/g;
>>7
I use Kareha so it is probably not useful to me, but I am thankful that you came back to share the code with other Wakaba users.
Don't fucking parse BBCode with regex!
I actually wasn't aware that this was doing this until I read this post. After changing some code around (thanks to your example) I have fixed the problem with my bbcodes that I didn't even know was a problem until now.
Thank you!
>>9
It's just one BBCode tag and it creates SPAN tags. You should take your meme-spewing elsewhere.
Bump, hopefully someone has gotten spoiler tags in Kareha.
I found a 2006 post:
# do <span class="spoiler">
$line=~s{ (?<![0-9a-zA-Z\*_\x80-\x9f\xe0-\xfc]) (~~) (?![<>\s\*_]) ([^<>]+?) (?<![<>\s\*_\x80-\x9f\xe0-\xfc]) \1 (?![0-9a-zA-Z\*_]) }{<span class="spoiler">$2</span>}gx;
Sorry.
Please, use %%spoiler%% instead of BB-like tags.
Percent symbols feel better.
>>14
But then how would you do nested spoilers? They are fun.
Now you have two problems.