logs archiveBotHelp.net / Freenode / #ada / 2015 / August / 10 / 4
antranigv
wow
darkestkhan
!quote
Allegra--
Pointers are the GOTO of data structures
-- P. J. Moylan
Visaoni
darkestkhan: maybe you should get some aircon for your power plants :P
darkestkhan
Visaoni: maybe, seems like watercon is not sufficient [due to lack of water]
relentless heatwave... possibility of blackouts...
charlie5
GOTO's are the noodles ends of spaghetti code
mm, nooodles
darkestkhan
for now restrictions affect only big energy consumers, but if it continues then everyone will be affected
sparre
antranigv: Check out my video on case statements. There's a diagram showing how types are classified in Ada.
darkestkhan
we also had a shootout spree in last few days [yes, it is legal to posses guns in Poland, as long as you fulfill some requirements [use training, no criminal past]]
antranigv
sparre: sorry, where can I check your videos about Ada in general? (:
sparre
antranigv: Only one so far: http://www.jacob-sparre.dk/ada/videos/case-statements.mp4
antranigv
tnx (:
charlie5
joakim: just watching vid now .. denmark accent ?
Visaoni
darkestkhan: yeah, heatwaves probably don't bring out the best in people...
Shark8
!Last
antranigv
ah, sparre, so I can make a case, if i is A, then i:=B, and it will print B, and then again, if i is B, then i:=A, and etc
kinda?
darkestkhan
wow, just wtf... biggest river in Poland - current depth of just 61cm... and going down
Visaoni
you might want to look at upgrading to a bigger river
joakim
charlie5: swedish accent. but you got right it's a nordic accent
Visaoni
antranigv: Actually... you can loop over subtypes restricted with Static_Predicate, even if they aren't contigugous. Although I think you might have repeats, which probably means it doesn't work :)
sparre
antranigv: kinda ;)
egilhh
antranigv:
with Ada.Text_IO;
with Ada.Characters.Latin_1;
procedure Loading is foo : constant array(Positive range <>) of Character :=
('/', '-', '\', '|');
begin for i in 1..10 loop
for j in foo'Range loop
Ada.Text_IO.Put(foo(j));
delay 0.1;
Ada.Text_IO.Put(Ada.Characters.Latin_1);
end loop;
end loop;
end Loading;
hmmm... plus formatting that got lost in the paste...
antranigv
ohh,, tnx all ^_^
charlie5
joakim: enjoyed it :) ... nice to see ahven mentioned/used ... i use ahven for the (pathetically few) tests i do
joakim
charlie5: thanks for you feedback. I also have a threshold for writing tests.
I prefer Ahven over AUnit. I like the API more.
but of course, in time the AMock project should support both!
charlie5
there's no denying they are invaluable ... yet it is a huge job to do well/properly ... each subprog needs tests which covers all 'logic' paths
ugh, did i just say 'logic paths' ?
well, i guees you know what i meant
joakim
yeah, sure :)
charlie5
joakim: good luck with amock and contest
for me it's well past sleep o'clock
n8
joakim
charlie5: thanks.
ok, good night!
charlie5
godnatt :)
joakim
:-o
:-)
antranigv
yay I did it, well', in a difference way
different*
^_^
Lucretia
hooj backlog today
Visaoni, charlie5: prolly, it's based on an english word and has a y at the end, as opposed to oz's o
antranigv
what is did is http://paste.antranigv.me/pztxyt1xg , now I need to loop the variable setting statement, kinda.
Visaoni
antranigv: an array of characters is probably the easiest thing (if I understand you correctly)
antranigv
Visaoni: yes, now I will try to understand egilhh's code, and try with an array of chars (: however, I don't know what does and array of something mean (:
Visaoni
if you are familiar with python, think of it like a list
just, of only a single kind of thing, and with a particular size
antranigv
Visaoni: aha~, I see
nerdboy
anybody got a good technical term for "interface specifications that would kill a forest"?
sukaeto_
not a technical term, but maybe "this interface is doing too much"
nerdboy
not really, this was legacy (stove-pipe) metric data processing interface for launch range
DoD-2167A interface spec
« prev 1 2 3 4 next »